<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    first, such race can happen always and it is ok from sip rfc point
    of view. The carrier UA should have received the BYE from the other
    side and close the dialog, then ignore the rest. So it is a broken
    UA implementation imo.<br>
    <br>
    Let's say you just drop the 481, then the BYE will time out (408)?
    Is the carrier UA still complaining? You can make a failure route
    for BYE and if it is 481, then use t_reply("408", "Timeout") if that
    makes the UA happier.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    &nbsp;<br>
    <div class="moz-cite-prefix">On 7/28/12 8:42 PM, Brandon Armstead
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACr1DbCJ+9mvtGNgev+xrAPaGg3K4nuqzeAf6RsB7FEvfAJ7hg@mail.gmail.com"
      type="cite">Hello,
      <div><br>
      </div>
      <div>&nbsp; &nbsp;I am running into an issue where there is a race condition
        happening. &nbsp;I am looking for opinions / ideas on how to handle
        the following below scenario.</div>
      <div><br>
      </div>
      <div>Scenario.</div>
      <div>
        <br>
      </div>
      <div>UAC places an outbound call -&gt; upstream carrier.</div>
      <div><br>
      </div>
      <div>The call is disconnected on both ends at the exact same time,</div>
      <div><br>
      </div>
      <div>UAC -&gt; sends BYE upstream</div>
      <div><br>
      </div>
      <div>Upstream Carrier -&gt; sends BYE downstream</div>
      <div><br>
      </div>
      <div>Upstream 200 OK's the BYE</div>
      <div><br>
      </div>
      <div>UAC sends 481 back to Upstream Carrier for their generated
        BYE.</div>
      <div><br>
      </div>
      <div>
        The upstream carrier is complaining about receiving the relayed
        481 responses -- so my first thought was simply to drop() these
        from relaying upstream.</div>
      <div><br>
      </div>
      <div>I am curious how other people are handling this?</div>
      <div><br>
      </div>
      <div>Would you suggest simply dropping the relay from being sent
        back upstream on the 481?</div>
      <div><br>
      </div>
      <div>Would you simply always 200 OK a downstream BYE from trusted
        carriers regardless of UAC response, and create separate
        transaction to send BYE downstream?</div>
      <div><br>
      </div>
      <div>Thank you as always. &nbsp;Look forward to your thoughts /
        suggestions / ideas.</div>
      <div><br>
      </div>
      <div>Sincerely,</div>
      <div>Brandon Armstead</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a>
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kpw">http://asipto.com/u/kpw</a></pre>
  </body>
</html>