<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">&lt;<a href="mailto:jorge-h-pinho@ext.ptinovacao.pt" target="_blank">jorge-h-pinho@ext.ptinovacao.pt</a>&gt;</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:&quot;Arial&quot;,&quot;sans-serif&quot;">Hi, I am using opensips with b2b module with topology hiding.</span><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">I am trying to terminate a call when i receive the 200OK response to a Re-Invite. To accomplish this i am using the &#39;terminate_call&#39; 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:&quot;Arial&quot;,&quot;sans-serif&quot;">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:&quot;Arial&quot;,&quot;sans-serif&quot;">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:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">A ----------------- Opensips (B2B) ------------------------ B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">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:&quot;Arial&quot;,&quot;sans-serif&quot;">            |             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:&quot;Arial&quot;,&quot;sans-serif&quot;">           B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">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:&quot;Arial&quot;,&quot;sans-serif&quot;">          B *Bad formatted 200OK<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">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:&quot;Arial&quot;,&quot;sans-serif&quot;">                    |                                            B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">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:&quot;Arial&quot;,&quot;sans-serif&quot;">                    B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">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:&quot;Arial&quot;,&quot;sans-serif&quot;">                    B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">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:&quot;Arial&quot;,&quot;sans-serif&quot;">                    B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">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:&quot;Arial&quot;,&quot;sans-serif&quot;">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:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">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:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">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>