<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 class="" style="background-color: transparent;"><span class="" style=""><br clear="none" class="" style=""></span></div><div class="" style="background-color: transparent;"><span class="" style=""><br clear="none" class="" style=""></span></div><div class="" style="background-color: transparent;">I am using following lines (just sharing &nbsp;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) &nbsp;if it is coming from .11(ims bench traffic generator).</div><div class="" style="background-color: transparent;">Otherwise I am sending directly to the set destination.</div><div class="" style="background-color: transparent;"><br clear="none"
 class="" style=""></div><div class="" style="background-color: transparent;"><br clear="none" class="" style=""></div><div class="" style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; else if (is_method("REGISTER")) {</div><div class="" style="background-color: transparent;"><br clear="none" class="" style=""></div><div class="" style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog("xlog_initialregister");</div><div class="" style="background-color: transparent;"><br clear="none" class="" style=""></div><div class="" style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($si=="192.168.2.11") {</div><div class="" style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="" style="background-color: transparent;">&nbsp;t_relay("udp:192.168.2.3:4060");</span></div><div class="" style="background-color:
 transparent;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_relay("udp:192.168.2.5:4060");</div><div class="" style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;</div><div class="" style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div class="" style="background-color: transparent;"><br clear="none" class="" style=""></div><div class="" style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; if (!t_relay()) {</div><div class="" style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog("xlog_route1error");</div><div class="" style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_reply_error();</div><div class="" style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; };</div><div class="" style="background-color: transparent;">&nbsp;
 &nbsp; &nbsp; &nbsp;</div><div class="" style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp;exit;</div><div class="" style="background-color: transparent;"><br clear="none" class="" style=""></div><div class="" style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; }</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=""><br clear="none" class="" style=""></div><div class="" style="">Kind regards,</div><div class="" style=""><span class="" style=""></span></div><div class="" style="">Kaan</div><div class="" style=""><br class="" style=""></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 &lt;bogdan@opensips.org&gt;<br class="" style=""> <b class="" style=""><span style="font-weight: bold;" class="">To:</span></b> Kaan Dandin &lt;kaandandin@yahoo.com&gt;; OpenSIPS users mailling list &lt;users@lists.opensips.org&gt; <br class="" style=""><b class="" style=""><span style="font-weight: bold;" class="">Cc:</span></b> Gunes Kurt &lt;gkurt@itu.edu.tr&gt;; "Ibrahim Hokelek, (BİLGEM-UEKAE)" &lt;ibrahim.hokelek@tubitak.gov.tr&gt; <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,&nbsp;</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,&nbsp;</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>&nbsp;&nbsp;&nbsp;&nbsp;<a rel="nofollow" shape="rect" target="_blank"  href="http://192.168.2.3/" class="" style="">192.168.2.3</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a rel="nofollow" shape="rect" target="_blank"  href="http://192.168.2.141/" class="" style="">192.168.2.141</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    SIP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Status: 401 Unauthorized - Challenging the
                    UE&nbsp;&nbsp;&nbsp; (0 bindings)<br clear="none" class="" style="">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a rel="nofollow" shape="rect" class="" style="" href="">64 1.241624</a>&nbsp;&nbsp;&nbsp;&nbsp;<a rel="nofollow" shape="rect" target="_blank"  href="http://192.168.2.3/" class="" style="">192.168.2.3</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a rel="nofollow" shape="rect" target="_blank"  href="http://192.168.2.141/" class="" style="">192.168.2.141</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    SIP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Status: 401 Unauthorized - Challenging the
                    UE&nbsp;&nbsp;&nbsp; (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=""></div></div></div> </div> </div>  </div></body></html>