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(&quot;REGISTER&quot;))<br>        {<br>
                t_relay_to(&quot;tls:<a href="http://115.114.48.19:443">115.114.48.19:443</a>&quot;);<br>                exit();<br>        }<br>        else<br>        {<br>                xlog(&quot;incoming request\n&quot;);<br>
<br>                route(WITHINDLG);<br>                route(RTPPROXY);<br>                t_on_reply(&quot;REPLY_ONE&quot;);<br>                t_on_failure(&quot;FAIL_ONE&quot;);<br>                t_relay_to(&quot;tls:<a href="http://115.114.48.19:443">115.114.48.19:443</a>&quot;);<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(&quot;tls:<a href="http://115.114.48.19:443">115.114.48.19:443</a>&quot;);<br>
<br>can cause this ????<br><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.<br><br>-kamal<br>
<br>