<div dir="ltr">Hello,<div><br></div><div>I tried this, but it didn't work. The second 200 Ok is still sent to the caller.<br><br>I tried the simplest script, like this.<span class="gmail-im" style="color:rgb(80,0,80)"><br><br>onreply_route[handle_nat] {<br> if (t_check_status("200")) {<br></span> drop();<br> }<br>}<br><br>But the drop doesn't seem to work for 200 Ok. According to the document, the drop only discards the provisional reply.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">volga629 <<a href="mailto:volga629@networklab.ca">volga629@networklab.ca</a>> 於 2021年8月30日 週一 下午8:35寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#ffffff">
<br>
<font size="+1"><font face="Cantarell">Hello Fulo,<br>
Bogdan provided work around some time ago.<br>
Inside onreply route <br>
<br>
# Drop other 200 OK <br>
if(isbflagset("RETRY_200OK_BFLAG")) {<br>
if(is_method("INVITE|UPDATE") &&
t_check_status("200")) {<br>
drop();<br>
}<br>
}<br>
<br>
# mark first INVITE<br>
if(is_method("INVITE|UPDATE") &&
t_check_status("200")) {<br>
setbflag("RETRY_200OK_BFLAG");<br>
<br>
volga629<br>
<br>
</font></font>
<div>On 8/30/21 4:22 AM, Fulo Lin wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>When the user has two devices answering the phone at the
same time, I expect the first device to answer the call and
the second device to be cancelled.<br>
<br>
The current opensips will indeed cancel the second call, but
the first call will have no sound, and the call will be
disconnected after a few seconds.<br>
<br>
I found that opensips sends all 200 Ok (SDP) to the caller,
and I expect that the second 200 Ok (SDP) should not be sent
to the caller.<br>
<br>
</div>
<div>I try to block the second 200 Ok(SDP) in onreply_route,
like this.</div>
<div><br>
onreply_route[handle_nat] {<br>
if (t_check_status("200")) {<br>
# t_cancel_branch(); No effect<br>
# drop(); No effect<br>
#exit;<br>
}<br>
}<br>
<br>
But this seems to have no effect.<br>
<br>
Is there a way to block the second 200 Ok (SDP) in
onreply_route?<br>
<br>
Or is there any other way to handle concurrent answering
calls?<br>
<br>
I use opensips 3.1.5 and rtpproxy 2.2.0.</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div>