This is an interesting question. The requests should have different tags .I'm not sure how OpenSIPs handles the individual requests..<div><br></div><div>I'd tend to expect a 491 Request Pending or a 500 Requests Merged. But maybe that's B2BUA behavior.</div>
<div><br></div><div>Since opensips isn't replying to the "second" INVITE, it's almost like it's absorbing it as a retransmission. I'm not sure what your expected behavior is, but it seems that you're going to constantly have race conditions on this and that the outcome will be "random" (ie: does INVITE(1) hit first, or INVITE(2))</div>
<div><br></div><div>What's the larger picture here? Why do you have two INVITEs from the same call hitting your proxy?</div><div>-Brett</div><div><br></div><div><br><div class="gmail_quote">On Thu, Jan 21, 2010 at 8:50 AM, Yannick LE COENT <span dir="ltr"><<a href="mailto:yannick.lecoent@nexcom.fr">yannick.lecoent@nexcom.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="FR" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">Hello,</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""> </span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">The next figure describes my
problem.</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""> </span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
openSIPS</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
+------+</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">-- INVITE(1)
-->| |--- INVITE(1) --></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
| |</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">-- INVITE(2)
-->| |--- INVITE(2) --></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""><-- 180(2)
------| |<-- 180(2) ------</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""><-- 200(2)
------| |<-- 200(2) ------</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""> |
|</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">-- CANCEL(1)
-->| |</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""><-- 200(CANCEL)
-| |</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""><-- 487(1)
------| |</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">-- ACK(1)
----->| |</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
| |</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">-- ACK(2)
----->| |--- ACK(2) -----></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
| |</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
+------+</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
|</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
|</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
+------+</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
| |</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
| |</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
+------+</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">
RTP proxy</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""> </span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">I use RTP proxy to relay
media streams.</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""> </span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">INVITE (1) and (2) have been
forked from an upstream proxy, thus they have the same Call-ID and From tag,
and a different branch ID.</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">INVITE (2) is accepted, but
INVITE (1) has no response.</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">The upstream proxy cancels
INVITE (1).</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""> </span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">In my script, on CANCEL(1)
request I close the RTP session, but I should not dot that since INVITE(2) has
been accepted.</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""> </span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">My questions are:</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">How can I know when I received
CANCEL(1) that INVITE(2) has been accepted?</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">Do I need to use flags? Which
ones ?</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""> </span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">Thanks for any help,</span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">Yannick</span></font></p>
</div>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>