<div dir="ltr"><div>In the log, I see that 'uri' does not have ';transport=tls', but the 'ruri' does have ';transport=tls' :</div><div><br></div><div>DBG:core:parse_msg: uri: <sip:<a href="http://mydomain.com">mydomain.com</a>></div><div><br></div><div><div>DBG:core:parse_to: display={}, ruri={<a href="mailto:sip%3Ausername@mydomain.com">sip:username@mydomain.com</a>;transport=tls}</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 July 2015 at 07:33, Nabeel <span dir="ltr"><<a href="mailto:nabeelshikder@gmail.com" target="_blank">nabeelshikder@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 dir="ltr"><div class="gmail_extra"><font face="arial, helvetica, sans-serif">I checked the SIP capture in Wireshark and it seems the client is using the wrong port:</font></div><div class="gmail_extra"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, helvetica, sans-serif">"Src port 3921 (3921) [Client IP]</font></div><div class="gmail_extra"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, helvetica, sans-serif">Dst port 5061 (5061) [OpenSIPS IP]"</font></div><div class="gmail_extra"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, helvetica, sans-serif">The client is set to use port 5061 in its settings and I have the following in OpenSIPS config:</font></div><div class="gmail_extra"><font face="arial, helvetica, sans-serif"><br></font></div><font face="arial, helvetica, sans-serif"><tt>$<span>rp</span> = 50</tt><tt>61</tt><tt><br></tt><tt>add_uri_param("transport=tls");</tt><tt><br>force_send_socket("tls:ip:port");</tt></font><div class="gmail_extra"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, helvetica, sans-serif">So how can I add the route header to fix this?</font></div><div class="gmail_extra"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_extra"><br></div></div>
</blockquote></div><br></div>