<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi,<br>
<br>
The patch is part of the latest release on 1.11 branch, the 1.11.7
version.<br>
Here is the commits for that:<br>
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/f91441d43e814d06ebf325e637206be411112879">https://github.com/OpenSIPS/opensips/commit/f91441d43e814d06ebf325e637206be411112879</a><br>
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/d39cfb73ed01b349c235949a16ccc5b559003a81">https://github.com/OpenSIPS/opensips/commit/d39cfb73ed01b349c235949a16ccc5b559003a81</a><br>
<br>
Apply them both !<br>
<br>
Or simply use 1.11.7<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 07.06.2016 16:10, Ravitez Ravi
wrote:<br>
</div>
<blockquote
cite="mid:CANs_LF8eXB3Kto3xDqJASOmYuALBpmU52d4jg2uNi+SQmp8ALw@mail.gmail.com"
type="cite">
<div dir="ltr">Hello Bogdan,
<div> Good Morning,</div>
<div> I missed to updated that we are using
1.11.5 and not sure if the patch was targeted for that.</div>
<div> can you please share a patch for
"OpenSIPS (1.11.5-tls (x86_64/linux))"</div>
<div> Thank you for the help.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Ravitez.D</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, May 17, 2016 at 11:51 AM,
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <tt>Hi,<br>
<br>
That is a great catch, thank you for finding and
reporting this. See the attach patch that should address
the problem. Could you please give it a try to see if it
really solves the problem ?<br>
<br>
Best Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>On 13.05.2016 22:30, Ravitez Ravi wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi All,
<div> Good Day,</div>
<div> Here's the problem i'm facing and would
be a great help if you could comment.</div>
<div> Thank you.</div>
<div><br>
</div>
<div>
<div>is_myself() does not check for SIPS port if
connection type is TLS</div>
<div><span style="white-space:pre-wrap">        </span></div>
<div><b>Configuration :</b></div>
<div>- Opensips V1.11.5 running in secure mode on
port 5061</div>
<div>- Avaya trying to communicate with Opensips
server.</div>
<div>- Opensips server ip 192.168.1.11</div>
<div>- Avaya ip : 192.168.1.20</div>
<div><br>
</div>
<div><br>
</div>
<div><b>Steps :</b></div>
<div>- Avaya sends INVITE to Opensips with route
header</div>
<div><span style="white-space:pre-wrap">        </span>Route:
<sip:192.168.1.11;transport=tls;lr;phase=terminating></div>
<div> </div>
<div>- Opensips tries to process it but fails.</div>
<div><span style="white-space:pre-wrap">        </span><b><font
color="#ff0000">DBG:rr:is_preloaded:
is_preloaded: Yes</font></b></div>
<div><b><font color="#ff0000"><span style="white-space:pre-wrap">        </span>DBG:core:grep_sock_info:
checking if host==us: 14==14 &&
[192.168.1.11] == [192.168.1.11]</font></b></div>
<div><b><font color="#ff0000"><span style="white-space:pre-wrap">        </span>DBG:core:grep_sock_info:
checking if port 5061 matches port 5060</font></b></div>
<div><b><font color="#ff0000"><span style="white-space:pre-wrap">        </span>DBG:core:check_self:
host != me</font></b></div>
<div><b><font color="#ff0000"><span style="white-space:pre-wrap">        </span>DBG:rr:after_loose:
Topmost URI is NOT myself</font></b></div>
<div><span style="white-space:pre-wrap">        </span>....</div>
<div><span style="white-space:pre-wrap">        </span>....</div>
<div><span style="white-space:pre-wrap">        </span>....</div>
<div><span style="white-space:pre-wrap">        </span>SIP/2.0
403 Preload Route denied</div>
<div> </div>
<div><b>Code Snippet :</b></div>
<div>/*</div>
<div> * Check if URI is myself</div>
<div> */</div>
<div>#ifdef ENABLE_USER_CHECK</div>
<div>static inline int is_myself(str *_user, str*
_host, unsigned short _port)</div>
<div>#else</div>
<div>static inline int is_myself(str* _host,
unsigned short _port)</div>
<div>#endif</div>
<div>{</div>
<div><span style="white-space:pre-wrap">        </span>int
ret;</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap">        </span><b><font
color="#ff0000">ret = check_self(_host, _port
? _port : SIP_PORT, 0);/* match all protos*/</font></b></div>
<div><span style="white-space:pre-wrap">        </span>if
(ret < 0) return 0;</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap">        </span></div>
<div><b><font color="#38761d">Should is_myself()
check for connection type and then decide to
either use SIP or SIPS port.</font></b></div>
</div>
<div><b><font color="#38761d"><br>
</font></b></div>
<div><b><font color="#38761d"><br>
</font></b></div>
<div><b><font color="#38761d"><br>
</font></b></div>
<div><font color="#000000">Regards,</font></div>
<div><font color="#000000">Ravitez.D</font></div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>