<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div class="" style=""><span class="" style="">Hi Bogdan,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style=""><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style=""><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class="">I am
using following lines (just sharing related part of the script) to check first if the method is REGISTER and sending to .3 (open ims node 1) and .5(open ims node 2) if it is coming from .11(ims bench traffic generator).</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class="">Otherwise I am sending directly to the set destination.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><br class="" style=""></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><br class=""
style=""></div><div class="" style="background-color: transparent;"> else if (is_method("REGISTER")) {</div><div class="" style="background-color: transparent;"><br></div><div class="" style="background-color: transparent;"> xlog("xlog_initialregister");</div><div class="" style="background-color: transparent;"><br></div><div class="" style="background-color: transparent;"> if($si=="192.168.2.11") {</div><div class="" style="background-color: transparent;"> <span style="background-color: transparent;" class=""> t_relay("udp:192.168.2.3:4060");</span></div><div class="" style="background-color: transparent;"> t_relay("udp:192.168.2.5:4060");</div><div class="" style="background-color: transparent;">
exit;</div><div class="" style="background-color: transparent;"> }</div><div class="" style="background-color: transparent;"><br></div><div class="" style="background-color: transparent;"> if (!t_relay()) {</div><div class="" style="background-color: transparent;"> xlog("xlog_route1error");</div><div class="" style="background-color: transparent;"> sl_reply_error();</div><div class="" style="background-color: transparent;"> };</div><div class="" style="background-color: transparent;"> </div><div class="" style="background-color: transparent;"> exit;</div><div class="" style="background-color: transparent;"><br class="" style=""></div><div
class="" style="background-color: transparent;"> }</div><div class="" style=""><br class="" style=""></div><div class="" style=""><br class="" style=""></div><div class="" style=""><br class="" style=""></div><div class="" style=""><br class="" style=""></div><div class="" style="">Kind regards,</div><div class="" style="">Kaan</div> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" class=""> <div dir="ltr" class="" style=""> <hr size="1" class="" style=""> <font size="2" face="Arial" class="" style=""> <b class="" style=""><span style="font-weight:bold;" class="">From:</span></b> Bogdan-Andrei Iancu <bogdan@opensips.org><br class="" style=""> <b class="" style=""><span style="font-weight: bold;" class="">To:</span></b> Kaan
Dandin <kaandandin@yahoo.com>; OpenSIPS users mailling list <users@lists.opensips.org> <br class="" style=""><b class="" style=""><span style="font-weight: bold;" class="">Cc:</span></b> Gunes Kurt <gkurt@itu.edu.tr>; "Ibrahim Hokelek, (BİLGEM-UEKAE)" <ibrahim.hokelek@tubitak.gov.tr> <br class="" style=""> <b class="" style=""><span style="font-weight: bold;" class="">Sent:</span></b> Monday, October 13, 2014 5:26 PM<br class="" style=""> <b class="" style=""><span style="font-weight: bold;" class="">Subject:</span></b> Re: YNT: Re: YNT: Re: YNT: Re: [OpenSIPS-Users] RFC3261 transaction matching failed error for the second 401 Unauthorized - Challenging the UE<br class="" style=""> </font> </div> <div class="" style=""><br class="" style=""><div id="yiv7922995386" class="" style=""><div class="" style="">
<div class="" style=""><tt class="" style="">Hi Kaan,<br clear="none" class="" style="">
<br clear="none" class="" style="">
In OpenSIPS, how do you script to have the REGISTER sent to both
.3 and .5 ?<br clear="none" class="" style="">
<br clear="none" class="" style="">
Regards,<br clear="none" class="" style="">
</tt>
<pre class="" style="">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a rel="nofollow" shape="rect" class="" target="_blank" href="http://www.opensips-solutions.com/" style="">http://www.opensips-solutions.com</a></pre>
On 13.10.2014 13:11, Kaan Dandin wrote:<br clear="none" class="" style="">
</div>
<blockquote type="cite" class="" style="">
</blockquote></div><div class="" style=""><div class="" id="yiv7922995386yqt71887" style=""><div class="" style="">
<div class="" style="">Hi Bogdan, </div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style="">Following 401 messages are coming from .3 , but not passed
to .11</div>
<div class="" style="">by opensips (.141)</div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style="">Kind regards, </div>
<div class="" style="">Kaan</div>
<div class="" style="">
<blockquote type="cite" class="" style="">
<blockquote type="cite" class="" style="">
<blockquote type="cite" class="" style="">
<div style="color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;" class="">
<div class="" style=""><a rel="nofollow" shape="rect" class="" style="" href="">63 1.233561</a> <a rel="nofollow" shape="rect" target="_blank" href="http://192.168.2.3/" class="" style="">192.168.2.3</a> <a rel="nofollow" shape="rect" target="_blank" href="http://192.168.2.141/" class="" style="">192.168.2.141</a>
SIP Status: 401 Unauthorized - Challenging the
UE (0 bindings)<br clear="none" class="" style="">
<a rel="nofollow" shape="rect" class="" style="" href="">64 1.241624</a> <a rel="nofollow" shape="rect" target="_blank" href="http://192.168.2.3/" class="" style="">192.168.2.3</a> <a rel="nofollow" shape="rect" target="_blank" href="http://192.168.2.141/" class="" style="">192.168.2.141</a>
SIP Status: 401 Unauthorized - Challenging the
UE (0 bindings)</div>
</div>
</blockquote>
</blockquote>
</blockquote>
</div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style="">
<div style="font-size:8px;color:#575757;" class="">Samsung Mobile
tarafından gönderildi</div>
</div>
</div></div>
<br clear="none" class="" style="">
<br clear="none" class="" style="">
<div class="" style="">-------- Orjinal mesaj --------</div>
<div class="" style="">Kimden: Bogdan-Andrei Iancu <a rel="nofollow" shape="rect" class="" ymailto="mailto:bogdan@opensips.org" target="_blank" href="mailto:bogdan@opensips.org" style=""><bogdan@opensips.org></a> </div>
<div class="" style="">Tarih:13 10 2014 10:09 (GMT+02:00) </div>
<div class="" style="">Alıcı: Kaan Dandin <a rel="nofollow" shape="rect" class="" ymailto="mailto:kaandandin@yahoo.com" target="_blank" href="mailto:kaandandin@yahoo.com" style=""><kaandandin@yahoo.com></a>,OpenSIPS
users mailling list <a rel="nofollow" shape="rect" class="" ymailto="mailto:users@lists.opensips.org" target="_blank" href="mailto:users@lists.opensips.org" style=""><users@lists.opensips.org></a> </div>
<div class="" style="">Cc: Gunes Kurt <a rel="nofollow" shape="rect" class="" ymailto="mailto:gkurt@itu.edu.tr" target="_blank" href="mailto:gkurt@itu.edu.tr" style=""><gkurt@itu.edu.tr></a>,"Ibrahim Hokelek,
(BİLGEM-UEKAE)" <a rel="nofollow" shape="rect" class="" ymailto="mailto:ibrahim.hokelek@tubitak.gov.tr" target="_blank" href="mailto:ibrahim.hokelek@tubitak.gov.tr" style=""><ibrahim.hokelek@tubitak.gov.tr></a> </div>
<div class="" style="">Konu: Re: YNT: Re: YNT: Re: [OpenSIPS-Users] RFC3261
transaction matching failed error for the second 401
Unauthorized - Challenging the UE </div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style=""><tt class="" style="">Hi Kaan,<br clear="none" class="" style="">
<br clear="none" class="" style="">
OK, you fork to .3 and .5 and I see only .5 answering -
nothing back from .3 . So OpenSIPS sends back to IMS .11 the
reply from .5, the 401.<br clear="none" class="" style="">
Where is the problem?<br clear="none" class="" style="">
<br clear="none" class="" style="">
Regards,<br clear="none" class="" style="">
</tt>
<pre class="" style="">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a rel="nofollow" shape="rect" class="" target="_blank" href="http://www.opensips-solutions.com/" style="">http://www.opensips-solutions.com</a></pre>
On 10.10.2014 23:48, Kaan Dandin wrote:<br clear="none" class="" style="">
</div>
<blockquote type="cite" class="" style="">
</blockquote></div><div class="" style=""><div class="" style="">
<div class="" style="">Yes 141 is opensips I am sending both 3 and 5 register
messages when I get from 11 which is ims bench</div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style="">
<div style="font-size:8px;color:#575757;" class="">Samsung Mobile
tarafından gönderildi</div>
</div>
</div>
<br clear="none" class="" style="">
<br clear="none" class="" style="">
<div class="" style="">-------- Orjinal mesaj --------</div>
<div class="" style="">Kimden: Bogdan-Andrei Iancu <a rel="nofollow" shape="rect" class="" ymailto="mailto:bogdan@opensips.org" target="_blank" href="mailto:bogdan@opensips.org" style=""><bogdan@opensips.org></a>
</div>
<div class="" style="">Tarih:09 10 2014 13:45 (GMT+02:00) </div>
<div class="" style="">Alıcı: Kaan Dandin <a rel="nofollow" shape="rect" class="" ymailto="mailto:kaandandin@yahoo.com" target="_blank" href="mailto:kaandandin@yahoo.com" style=""><kaandandin@yahoo.com></a>,OpenSIPS
users mailling list <a rel="nofollow" shape="rect" class="" ymailto="mailto:users@lists.opensips.org" target="_blank" href="mailto:users@lists.opensips.org" style=""><users@lists.opensips.org></a>
</div>
<div class="" style="">Cc: </div>
<div class="" style="">Konu: Re: YNT: Re: [OpenSIPS-Users] RFC3261 transaction
matching failed error for the second 401 Unauthorized -
Challenging the UE </div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style="">Hi,<br clear="none" class="" style="">
<br clear="none" class="" style="">
Is .141 your OpenSIPS ? I see .141 is sending the REGISTRAR to
both nodes ( .3 and .5) .<br clear="none" class="" style="">
<br clear="none" class="" style="">
Regards,<br clear="none" class="" style="">
<pre class="" style="">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a rel="nofollow" shape="rect" class="" target="_blank" href="http://www.opensips-solutions.com/" style="">http://www.opensips-solutions.com</a></pre>
On 09.10.2014 10:00, Kaan Dandin wrote:<br clear="none" class="" style="">
</div>
<blockquote type="cite" class="" style="">
</blockquote></div><div class="" style=""><div class="" style="">
<div class="" style="">Hi Bogdan, </div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style="">Thanks for your response. </div>
<div class="" style="">In this situation how can I configure opensips to pass
this message to the destination. Is it a configuration
change or should I use another function instead of t_relay
?</div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style="">Kind regards</div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style="">
<div style="font-size:8px;color:#575757;" class="">Samsung Mobile
tarafından gönderildi</div>
</div>
</div>
<br clear="none" class="" style="">
<br clear="none" class="" style="">
<div class="" style="">-------- Orjinal mesaj --------</div>
<div class="" style="">Kimden: Bogdan-Andrei Iancu <a rel="nofollow" shape="rect" class="" ymailto="mailto:bogdan@opensips.org" target="_blank" href="mailto:bogdan@opensips.org" style=""><bogdan@opensips.org></a>
</div>
<div class="" style="">Tarih:07 10 2014 16:29 (GMT+02:00) </div>
<div class="" style="">Alıcı: Kaan Dandin <a rel="nofollow" shape="rect" class="" ymailto="mailto:kaandandin@yahoo.com" target="_blank" href="mailto:kaandandin@yahoo.com" style=""><kaandandin@yahoo.com></a>,OpenSIPS
users mailling list <a rel="nofollow" shape="rect" class="" ymailto="mailto:users@lists.opensips.org" target="_blank" href="mailto:users@lists.opensips.org" style=""><users@lists.opensips.org></a>
</div>
<div class="" style="">Cc: </div>
<div class="" style="">Konu: Re: [OpenSIPS-Users] RFC3261 transaction matching
failed error for the second 401 Unauthorized - Challenging
the UE </div>
<div class="" style=""><br clear="none" class="" style="">
</div>
<div class="" style=""><tt class="" style="">Hi Kaan,<br clear="none" class="" style="">
<br clear="none" class="" style="">
The log you refer to is a DBG and not an ERR (error) -
when a new request is received, opensips (inside the
t_relay) tries to match it against existing transactions
to see if it a retransmission on not. The fact your
request does not match means it is not a retransmission,
but rather a new request.<br clear="none" class="" style="">
<br clear="none" class="" style="">
Regards,<br clear="none" class="" style="">
</tt>
<pre class="" style="">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a rel="nofollow" shape="rect" class="" target="_blank" href="http://www.opensips-solutions.com/" style="">http://www.opensips-solutions.com</a></pre>
On 04.10.2014 11:18, Kaan Dandin wrote:<br clear="none" class="" style="">
</div>
<blockquote type="cite" class="" style="">
<div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" class="">
<div class="" style="">Hi all,</div>
<div class="" style=""> </div>
<div class="" style="">I am making registration to the Open IMS
nodes(192.168.2.3 and 192.168.2.5) simultaneously from
IMS bench(192.168.2.11). Registration messages are going
through OpenSIPS load balancer(192.168.2.141).</div>
<div class="" style=""> </div>
<div class="" style="">Registration messages which are going to first Open
IMS node(192.168.2.5) completed succesfully.</div>
<div class="" style=""> </div>
<div class="" style=""> </div>
<div class="" style="">But registration to second IMS node(192.168.2.3) is
not completed successfully since t_relay() function in
OpenSIPS load balancer is giving "DBG:tm:matching_3261:
RFC3261 transaction matching failed" error and not
passing the "Status: 401 Unauthorized - Challenging the
UE (0 bindings)" messages to IMS bench.</div>
<div class="" style=""> </div>
<div class="" style="">Below please find wireshark log and opensips logs in
debug level=6.</div>
<div class="" style=""> </div>
<div class="" style="">Do you have any idea for this problem.</div>
<div class="" style=""> </div>
<div class="" style="">BR,</div>
<div class="" style="">Kaan</div>
<div class="" style=""> </div>
<div class="" style=""> </div>
<div class="" style="">o. Time Source
Destination Protocol Info<br clear="none" class="" style="">
55 1.186495 192.168.2.11
192.168.2.141 SIP Request: REGISTER
sip:open-ims.test<br clear="none" class="" style="">
56 1.188443 192.168.2.141
192.168.2.3 SIP Request: REGISTER
sip:open-ims.test<br clear="none" class="" style="">
57 1.189001 192.168.2.141
192.168.2.5 SIP Request: REGISTER
sip:open-ims.test<br clear="none" class="" style="">
58 1.215792 192.168.2.5
192.168.2.141 SIP Status: 401 Unauthorized
- Challenging the UE (0 bindings)<br clear="none" class="" style="">
59 1.216974 192.168.2.141
192.168.2.11 SIP Status: 401 Unauthorized
- Challenging the UE (0 bindings)<br clear="none" class="" style="">
60 1.217486 192.168.2.11
192.168.2.141 SIP Request: REGISTER
sip:open-ims.test<br clear="none" class="" style="">
61 1.218516 192.168.2.141
192.168.2.3 SIP Request: REGISTER
sip:open-ims.test<br clear="none" class="" style="">
62 1.218804 192.168.2.141
192.168.2.5 SIP Request: REGISTER
sip:open-ims.test<br clear="none" class="" style="">
63 1.233561 192.168.2.3
192.168.2.141 SIP Status: 401 Unauthorized
- Challenging the UE (0 bindings)<br clear="none" class="" style="">
64 1.241624 192.168.2.3
192.168.2.141 SIP Status: 401 Unauthorized
- Challenging the UE (0 bindings)<br clear="none" class="" style="">
65 1.246112 192.168.2.5
192.168.2.141 SIP Status: 200 OK - SAR
succesful and registrar saved (1 bindings)<br clear="none" class="" style="">
66 1.246919 192.168.2.141
192.168.2.11 SIP Status: 200 OK - SAR
succesful and registrar saved (1 bindings)</div>
<div class="" style=""> </div>
<div class="" style=""> </div>
<div class="" style=""> </div>
<div class="" style="">Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]: xlog method:
[REGISTER] totag: [<null>] sipid: [192.168.2.11]
messageid: [68] callid: [<a rel="nofollow" shape="rect" class="" ymailto="mailto:56-6888@192.168.2.11" target="_blank" href="mailto:56-6888@192.168.2.11" style="">56-6888@192.168.2.11</a>]
callsequence: [2]<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:uri:has_totag: no totag<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
xlog_initialregister<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:core:comp_scriptvar: str 20 : 192.168.2.11<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:tm:t_newtran: transaction on
entrance=0xffffffffffffffff<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:core:parse_headers: flags=ffffffffffffffff<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:core:get_hdr_field: content_length=0<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:core:get_hdr_field: found end of header<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:core:parse_headers: flags=78<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:tm:t_lookup_request: start searching: hash=35746,
isACK=0<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:tm:matching_3261: RFC3261 transaction matching
failed<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:tm:t_lookup_request: no transaction found<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:tm:run_reqin_callbacks: trans=0x7fcda4739918,
callback type 1, id 1 entered<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:tm:run_reqin_callbacks: trans=0x7fcda4739918,
callback type 1, id 0 entered<br clear="none" class="" style="">
Oct 3 10:01:35 ubuntu
/usr/local/opensips/sbin/opensips[8938]:
DBG:core:check_ip_address: params 192.168.2.11,
192.168.2.11, 0<br clear="none" class="" style="">
<br clear="none" class="" style="">
</div>
</div>
<br clear="none" class="" style="">
<fieldset class="" style=""></fieldset>
<br clear="none" class="" style="">
<pre class="" style="">_______________________________________________
Users mailing list
<a rel="nofollow" shape="rect" class="" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org" style="">Users@lists.opensips.org</a>
<a rel="nofollow" shape="rect" class="" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" style="">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br clear="none" class="" style="">
<br clear="none" class="" style="">
<br clear="none" class="" style="">
<br clear="none" class="" style="">
</div></div><br class="" style=""><br class="" style=""></div> </div> </div> </div></body></html>