<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <tt>Hello Priyaranjan,<br>
      <br>
      You mean to use a different port at IP level ?? why should you do
      that ??<br>
      <br>
      Regards,</tt><br>
    <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>
    <br>
    On 05/14/2013 04:59 PM, Priyaranjan Nayak wrote:
    <blockquote
cite="mid:CAACv2Pm5rfvFo9gjn35edBiv8wEfOqkeSgp=K_v6iybvXLi_wg@mail.gmail.com"
      type="cite"><br>
      <pre cols="72">Hi All,

    Now opensips is forwarding to next hop(Server).While sending REGISTER message to server it is using only one port opensips.This is happening after modifying below statement in routing logic of opensips.cfg. 


        if(is_method("REGISTER"))
        {
                #sl_send_reply("400","priyaranjan");
                t_relay("tcp:<a moz-do-not-send="true" href="http://116.114.34.56:443" target="_blank">116.114.34.56:443</a>");

                exit();
        }
        else
        {
                xlog("incoming request\n");
                t_relay("tcp:<a moz-do-not-send="true" href="http://116.114.34.56:443" target="_blank">116.114.34.56:443</a>");
                exit();
        }

     But my requirement is while sending REGISTER message to server it should use one port from opensips  for one user.i.e For different user opensips should send from different port to server. kindly let me know what could be change in opensips.cfg's file ?



Bogdan-Andrei Iancu, thanks for reply.


Thanks
Priyaranjan

</pre>
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div text="#000000" bgcolor="#ffffff">
            <blockquote type="cite">
              <div>
                <div class="h5"> <br>
                  <br>
                  <br>
                </div>
              </div>
              <pre><fieldset></fieldset>
_______________________________________________
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>
          </div>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Thanks<br>
      Priyaranjan<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>