<div dir="ltr">Why just not to fix 200 OK?<br><div class="gmail_extra"><br clear="all"><div style>--</div><div style>Nick<br></div><br><div class="gmail_quote">2013/3/7 Jorge Henrique Pinho <span dir="ltr"><<a href="mailto:jorge-h-pinho@ext.ptinovacao.pt" target="_blank">jorge-h-pinho@ext.ptinovacao.pt</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="PT" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">Hi, I am using opensips with b2b module with topology hiding.</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">I am trying to terminate a call when i receive the 200OK response to a Re-Invite. To accomplish this i am using the 'terminate_call' function defined in b2b_logic module.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">The dialog is establish and an user sends an in dialog Invite to renegotiate codecs, but the 200OK reply is mal formed. In consequence I need to terminate the call at this stage.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">To accomplish this I am using the terminate_call function present in b2b_logic module. When I receive the 200OK bad formatted message, I invoke the terminate_call function. The behavior of b2b is this :<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">A ----------------- Opensips (B2B) ------------------------ B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">A Re-Invite </span><span lang="EN-US" style="font-size:12.0pt;font-family:Wingdings">à</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""> | Re-Invite </span><span lang="EN-US" style="font-size:12.0pt;font-family:Wingdings">à</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""> B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">A | 200 OK* </span><span lang="EN-US" style="font-size:12.0pt;font-family:Wingdings">ß</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""> B *Bad formatted 200OK<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">A BYE </span><span lang="EN-US" style="font-size:12.0pt;font-family:Wingdings">ß</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""> | B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">A | BYE </span><span lang="EN-US" style="font-size:12.0pt;font-family:Wingdings">à</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""> B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">A | ACK </span><span lang="EN-US" style="font-size:12.0pt;font-family:Wingdings">à</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""> B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">A | BYE </span><span lang="EN-US" style="font-size:12.0pt;font-family:Wingdings">à</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""> B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">It seems that b2b is sending a first BYE to B that was not supposed to.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">Can you help me fix this?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">Kind regards<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888"><p class="MsoNormal">
<span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">Jorge Pinho<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></font></span></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></div>