<div dir="ltr">So how do I define what is used? Again when I did call "record_route" I need one of the records to have "transport=tcp" param and not the default UDP.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 15, 2017 at 12:09 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hello,<br>
</p><span class="">
<br>
<div class="m_-3948069276664820086moz-cite-prefix">On 13/02/2017 19:43, Andy Chen wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">So the INVITE coming in (TLS) don't have
Record-Route. When Kamailoi received the INVITE, I call
record_route() and adds the two entry. However, one of the
entry I need to have transport=tcp. When I added it as this:
<div><br>
</div>
<div>record_route(";transport=tcp")</div>
</div>
</blockquote></span>
you don't need to force a transport protocol via the parameter of
record_route(), it is added by kamailio rr module by default in this
case, each of the two record-route header having the appropriate
transport depending what was used (udp, tcp, tls or sctp).<span class=""><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>It adds it to both Record-Route therefore messes up the
call.</div>
</div>
</blockquote>
<br></span>
Just remove the parameter with the transport, use record_route().<span class=""><br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Kamailio forwards to endpoint device via tcp using the
following function:</div>
<div><br>
</div>
<div>t_replay_to_tcp();</div>
</div>
</blockquote>
<br></span>
I guess you meant t_relay_to_tcp(). The 'replay' doesn't exit in tm
function names, there are functions with 'reply', but those send sip
responses back, not forwarding requests.<br>
<br>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<blockquote type="cite">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 13, 2017 at 10:16 AM,
Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>hmm, some confusion there. So the request is sent over
tcp, but the record route doesn't have transport=tcp?
What function do you use to send the request out?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>
<div class="m_-3948069276664820086h5"> <br>
<div class="m_-3948069276664820086m_-2957463213430219242moz-cite-prefix">On
13/02/2017 17:39, Andy Chen wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi Daniel,</div>
<div><br>
</div>
<div>To answer your earlier question, Kamailio
receive the request via TLS, but need to forward
the method to endpoint device via TCP with those
Record-Route entries. I used
record_route_preset() but that broke my call so
I ended up using appened_hf to get around this
problem.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 13, 2017 at
3:18 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>No, you should use either record_route()
or record_route_preset(), not both of them
for the same request.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>
<div class="m_-3948069276664820086m_-2957463213430219242h5"> <br>
<div class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422moz-cite-prefix">On
10/02/2017 20:44, Andy Chen wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">One other question. Do
I need to run record_route() after I
run record_route_preset(string1,
string2)? I tried this and the
Record-Route doesn't show presets I
defined.
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri,
Feb 10, 2017 at 9:25 AM, Andy
Chen <span dir="ltr"><<a href="mailto:achen@fuze.com" target="_blank">achen@fuze.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">So the ingress
is actually TLS -> our
VIP address and I see that
as the second record.
<div><br>
</div>
<div>The first record shows
the physical interface of
the system with no
transport value so it's
always defaulting to UDP.
I need to set this
particular header to use
transport=tcp so
subsequent UPDATE messages
from the server will use
TCP throughout the call.</div>
</div>
<div class="gmail_extra">
<div>
<div class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422h5"><br>
<div class="gmail_quote">On
Fri, Feb 10, 2017 at
9:05 AM, Alex Balashov
<span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What
is the actual goal?
If one of the RRs is
generated by an
ingress<br>
out of a TCP
listener, it should
already have
;transport=TCP in
it.<br>
<div>
<div class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422m_3145623654317020994h5"><br>
On Fri, Feb 10,
2017 at
08:53:56AM
-0800, Andy Chen
wrote:<br>
<br>
> Hi all,<br>
><br>
> I need some
advise on how to
use the
record_route()
function. So I
make<br>
> that call
when the first
method comes in
and there are
two Record-Route<br>
> headers
created.
However, one of
of the headers I
want to add<br>
>
transport=tcp.
What is the best
way to do this?<br>
><br>
> I've tried
adding that
string per
documentation
within the ()
and added it<br>
> to both.<br>
><br>
> Thanks.<br>
><br>
><br>
> --<br>
> Andy Chen<br>
<br>
</div>
</div>
>
______________________________<wbr>_________________<br>
> SIP Express
Router (SER) and
Kamailio (OpenSER) -
sr-users mailing
list<br>
> <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><br>
<span class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422m_3145623654317020994HOEnZb"><font color="#888888"><br>
<br>
--<br>
Alex Balashov |
Principal |
Evariste Systems
LLC<br>
<br>
Tel:
+1-706-510-6800
(direct) /
+1-800-250-5920
(toll-free)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>,
<a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
______________________________<wbr>_________________<br>
SIP Express
Router (SER) and
Kamailio
(OpenSER) -
sr-users mailing
list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><br>
</font></span></blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
</div>
</div>
<span class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422HOEnZb"><font color="#888888">-- <br>
<div class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422m_3145623654317020994gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div dir="ltr" style="font-size:12.8px">Andy
Chen</div>
<div dir="ltr" style="font-size:12.8px">
<div>Sr. Telephony
Lead Engineer</div>
<div>415 516 5535
(M)</div>
<div><a href="mailto:achen@thinkingphones.com" target="_blank">achen@thinkingphones.com</a><br>
<div><img></div>
</div>
</div>
</div>
</div>
</font></span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div dir="ltr" style="font-size:12.8px">Andy
Chen</div>
<div dir="ltr" style="font-size:12.8px">
<div>Sr. Telephony Lead
Engineer</div>
<div>415 516 5535 (M)</div>
<div><a href="mailto:achen@thinkingphones.com" target="_blank">achen@thinkingphones.com</a><br>
<div><img></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a>
</pre>
</blockquote>
</div></div><pre class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422moz-signature" cols="72"><span class="m_-3948069276664820086m_-2957463213430219242HOEnZb"><font color="#888888">--
Daniel-Constantin Mierla
</font></span><span><a class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_-3948069276664820086m_-2957463213430219242m_-2854220617356336422moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></span></pre>
</div>
______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a>
</blockquote></div>
<div>
</div>--
<div class="m_-3948069276664820086m_-2957463213430219242gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr" style="font-size:12.8px">Andy Chen</div><div dir="ltr" style="font-size:12.8px"><div>Sr. Telephony Lead Engineer</div><div>415 516 5535 (M)</div><div><a href="mailto:achen@thinkingphones.com" target="_blank">achen@thinkingphones.com</a>
<div><img></div></div></div></div></div>
</div>
</blockquote>
<pre class="m_-3948069276664820086m_-2957463213430219242moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_-3948069276664820086m_-2957463213430219242moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-3948069276664820086m_-2957463213430219242moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="m_-3948069276664820086m_-2957463213430219242moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_-3948069276664820086m_-2957463213430219242moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre></div></div></div></blockquote></div>
<div>
</div>--
<div class="m_-3948069276664820086gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr" style="font-size:12.8px">Andy Chen</div><div dir="ltr" style="font-size:12.8px"><div>Sr. Telephony Lead Engineer</div><div>415 516 5535 (M)</div><div><a href="mailto:achen@thinkingphones.com" target="_blank">achen@thinkingphones.com</a>
<div><img></div></div></div></div></div>
</div>
</blockquote>
<pre class="m_-3948069276664820086moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_-3948069276664820086moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-3948069276664820086moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="m_-3948069276664820086moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_-3948069276664820086moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr" style="font-size:12.8px">Andy Chen</div><div dir="ltr" style="font-size:12.8px"><div>Sr. Telephony Lead Engineer</div><div>415 516 5535 (M)</div><div><a href="mailto:achen@thinkingphones.com" target="_blank">achen@thinkingphones.com</a><br><div><img src=""></div></div></div></div></div>
</div>