<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 11/29/12 1:32 PM, Freddy C wrote:<br>
</div>
<blockquote
cite="mid:CALZFe_tj9dZOpDWbq-fHV8d9r1xP9-ad7SToaJNfKJeR3G3n+A@mail.gmail.com"
type="cite"><br>
Hi,<br>
<br>
<span lang="en"><span>TLS</span> <span>work</span> <span>on</span>
<span>TCP</span> <span>5061</span><br>
<span>To view the</span> <span>header</span> <span>you can</span>
<span>use $</span> <span>hdr</span> <span>(</span><span>HEADER_NAME</span><span>)</span><span>.</span><br>
<br>
<span>Not</span> <span>much English</span><span>, sorry</span><span>.</span></span><br>
<br>
<br>
<br>
<div class="gmail_quote">2012/11/29 Kamal Palei <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:palei.kamal@gmail.com"
target="_blank">palei.kamal@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear All<br>
I ma trying to have all SIP signalling through TLS. Using
Kamailio 3.1.5.<br>
<br>
In a typical setup, endpoints initiates call, messages reach
Kamailio proxy, Kamailio proxy forwards these packets to main
proxy.<br>
<br>
In Kamailio.cfg, I have added below code.<br>
<br>
<br>
route {<br>
<br>
# per request initial checks<br>
route(REQINIT);<br>
setflag(FLT_NATS);<br>
<br>
if(is_method("REGISTER"))<br>
{<br>
t_relay_to("tls:<a moz-do-not-send="true"
href="http://115.114.48.19:443" target="_blank">115.114.48.19:443</a>");<br>
exit();<br>
}<br>
else<br>
{<br>
xlog("incoming request\n");<br>
<br>
route(WITHINDLG);<br>
route(RTPPROXY);<br>
t_on_reply("REPLY_ONE");<br>
t_on_failure("FAIL_ONE");<br>
t_relay_to("tls:<a moz-do-not-send="true"
href="http://115.114.48.19:443" target="_blank">115.114.48.19:443</a>");<br>
exit();<br>
}<br>
<br>
..............<br>
<br>
I am finding most of the messages are getting transmitted in
TLS. But few ACK and REFER / REFER response packets are still
being transported in UDP.<br>
<br>
Can somebody tell me whats the wrong I am doing here.<br>
<br>
By any chance <br>
route(WITHINDLG);<br>
route(RTPPROXY);<br>
<br>
before t_relay_to("tls:<a moz-do-not-send="true"
href="http://115.114.48.19:443" target="_blank">115.114.48.19:443</a>");<br>
<br>
can cause this ????<br>
</blockquote>
</div>
</blockquote>
<br>
If you are using route[WITHINDLG] from default config file, then the
request are route via it if they have To tag and record route. The
transport protocol is chosen based on next hop address.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
cite="mid:CALZFe_tj9dZOpDWbq-fHV8d9r1xP9-ad7SToaJNfKJeR3G3n+A@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
And one more doubt.., 115.114.48.19 I get in route header. How
can I extract the value of route header, so that I do not have
to hard-code <br>
<br>
Many thanks in advance.<span><font color="#888888"><br>
<br>
-kamal<br>
<br>
</font></span><br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<br style="font-family:trebuchet ms,sans-serif">
<i style="font-family:trebuchet ms,sans-serif">Freddy Condori
Chura<br>
Ingeniero Civil en Computación e Informática<br>
Magister en Ingeniería de Software</i><br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>