<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Rahul,<br>
    <br>
    What presence event is there ? Maybe the Notifies (first and second)
    are the result of the same event and triggered from the same process
    (this explaining the serial processing of them).<br>
    <br>
    What OpenSIPS version are you using ? as normally, for sequential
    presence requests, the opening of new TCP conns is forbidden.<br>
    <br>
    Regards,<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>
    <div class="moz-cite-prefix">On 08.05.2015 19:56, Gupta, Rahul
      wrote:<br>
    </div>
    <blockquote
cite="mid:5D7DF326E497124DACCD6F9DD6A1A2A089C979AD@NWKNJEXMBX1.corp.root.ipc.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1601597623;
        mso-list-type:hybrid;
        mso-list-template-ids:1612328920 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">One of the UAC changed its listen port from
          5060 to 5070 and sent a new subscription however before the
          subscription made it to UAS, UAS sent a NOTIFY to UAC to port
          5060 and then immediately another NOTIFY to UAC to port 5070<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Old setup:<o:p></o:p></p>
        <p class="MsoNormal">UAC (5060) &lt;---&gt; opensips(proxy)
          (5060) &lt;---&gt; UAS (5059)<o:p></o:p></p>
        <p class="MsoNormal">New Setup:<o:p></o:p></p>
        <p class="MsoNormal">UAC (5070) &lt;---&gt; opensips(proxy)
          (5060) &lt;---&gt; UAS (5059)<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Opensips attempted to forward the first
          NOTIFY to UAC at port 5060 which obviously timed out with tcp
          connect failed as expected<o:p></o:p></p>
        <p class="MsoNormal">First NOTIFY :<o:p></o:p></p>
        <p class="MsoNormal">NOTIFY
          sip:user1@IPADDRESS:5060;transport=tcp SIP/2.0<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Opensips sent the 2<sup>nd</sup> NOTIFY
          after 10 seconds to UAC at port 5070. If the port specified in
          SIP URI is different then why the second request is put into
          the queue and had to wait for 10 sec blocking timeout ?
          <o:p></o:p></p>
        <p class="MsoNormal">Seconf NOTIFY:<o:p></o:p></p>
        <p class="MsoNormal">NOTIFY
          sip:user1@IP_ADDRESS:5070;transport=tcp SIP/2.0<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Is there any flag/param I can specify in my
          opensips.cfg file to fix this ?<o:p></o:p></p>
      </div>
      <p><font size="2" color="#808080" face="Arial"><font size="2"
            color="#808080" face="Arial">------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</font></font></p>
      <font size="2" color="#808080" face="Arial">
      </font>
      <p><font size="2" color="#808080" face="Arial"><font size="2"
            color="#808080" face="Arial">DISCLAIMER: This e-mail may
            contain information that is confidential, privileged or
            otherwise protected from disclosure. If you are not an
            intended recipient of this e-mail, do not duplicate or
            redistribute it by any means. Please delete it and any
            attachments and notify the sender that you have received it
            in error. Unintended recipients are prohibited from taking
            action on the basis of information in this e-mail.E-mail
            messages may contain computer viruses or other defects, may
            not be accurately replicated on other systems, or may be
            intercepted, deleted or interfered with without the
            knowledge of the sender or the intended recipient. If you
            are not comfortable with the risks associated with e-mail
            messages, you may decide not to use e-mail to communicate
            with IPC. IPC reserves the right, to the extent and under
            circumstances permitted by applicable law, to retain,
            monitor and intercept e-mail messages to and from its
            systems.</font></font><br>
      </p>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>
    <br>
  </body>
</html>