<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<pre>Hi Razvan,</pre>
<p>It's my opensips generate second BYE:</p>
<p><span style="text-decoration: underline;">First BYE not generate, just transmit to provider:</span></p>
<p><em>U 1.1.1.1:5060 -> 3.3.3.3:5060</em><br /><em>BYE sip:3.3.3.3:5060;transport=udp SIP/2.0.</em><br /><em>Via: SIP/2.0/UDP 1.1.1.1;branch=z9hG4bK6f1e.1ae76cf3.0.</em><br /><em>Via: SIP/2.0/UDP 1.1.1.1:5060;received=1.1.1.1;rport=5060;branch=z9hG4bKc70647f52389844ecd8d1103e651514c.</em><br /><strong><em>Route: <sip:1.1.1.1;lr=on;ftag=9592a99927b4cd21;xyz=d32.73032395>.</em></strong><br /><em>From: "Direction" <sip:+33326793005@2.2.2.2>;tag=9592a99927b4cd21.</em><br /><em>To: <sip:+33262626262@1.1.1.1>;tag=sip+1+347c0010+ea2ac41.</em><br /><em>Call-ID: c2fb7803cb9af9e4d85b965d731259a0@192.168.254.200.</em><br /><em>CSeq: 1613414671 BYE.</em><br /><em>Contact: "Direction" <sip:+33326793005@1.1.1.1:5060;transport=udp>.</em><br /><em>Max-Forwards: 69.</em><br /><em>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, INFO, UPDATE.</em><br /><em>Supported: timer.</em><br /><em>Content-Length: 0.</em><br /><em>.</em></p>
<p><span style="text-decoration: underline;">Second BYE generate by my proxy:</span></p>
<p><br /><em>#</em><br /><em>U 1.1.1.1:5060 -> 3.3.3.3:5060</em><br /><em>BYE sip:3.3.3.3:5060;transport=udp SIP/2.0.</em><br /><em>Via: SIP/2.0/UDP 1.1.1.1;branch=z9hG4bK6f1e.1ae76cf3.1.</em><br /><em>Via: SIP/2.0/UDP 1.1.1.1:5060;received=1.1.1.1;rport=5060;branch=z9hG4bKc70647f52389844ecd8d1103e651514c.</em><br /><em>From: "Direction" <sip:+33326793005@2.2.2.2>;tag=9592a99927b4cd21.</em><br /><em>To: <sip:+33262626262@1.1.1.1>;tag=sip+1+347c0010+ea2ac41.</em><br /><em>Call-ID: c2fb7803cb9af9e4d85b965d731259a0@192.168.254.200.</em><br /><em>CSeq: 1613414671 BYE.</em><br /><em>Contact: "Direction" <sip:+33326793005@1.1.1.1:5060;transport=udp>.</em><br /><em>Max-Forwards: 69.</em><br /><em>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, INFO, UPDATE.</em><br /><em>Supported: timer.</em><br /><em>Content-Length: 0.</em></p>
<p>After this message, my provider (3.3.3.3) send error 500 (SIP/2.0 500 Server Internal Error).</p>
<p><span id="result_box"><span class="hps">The</span> <span class="hps">senario</span> <span class="hps">is repeated at each</span> <span class="hps">call</span><span>, even with</span> <span class="hps">different</span> <span class="hps">UAC.</span><br /> <span class="hps">If the</span> <span class="hps">BYE</span> <span class="hps">is generated by</span> <span class="hps">my provider</span> <span class="hps atn">(</span><span>3.3.3.3</span><span>)</span> <span class="hps">there is no</span> error<span class="hps">.</span></span></p>
<p><br />Ex:</p>
<p>My customer BYE --> Proxy --> Provider = Not OK error 500</p>
<p>Provider BYE --> Proxy --> My customer = OK</p>
<p>regards.</p>
<p> </p>
<p>On Fri, 29 Jul 2011 16:57:25 +0300, Razvan Crainea wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored --> Hi Mickael,<br /><br /> Try to start a ngrep on the proxy. You will see exactly who sends the second BYE.<br /> Does this scenario happen for every call?<br /><br /> Regards,<br />
<pre class="moz-signature">Razvan Crainea
OpenSIPS Developer</pre>
<br /> On 29.07.2011 16:33, <a class="moz-txt-link-abbreviated" href="mailto:mickael@winlux.fr">mickael@winlux.fr</a> wrote:
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">
<pre>Hi Razvan,
I crated:
<em>#The local route is executed automatically when a new SIP request is generated by TM, internally (no UAC side)
local_route {
xlog("L_INFO","Local Route Method $rm - fu : $fu , ru : $ru , si : $si \n");
if (is_method("BYE") ) {
xlog("L_INFO","internally generated BYE");
}
}
</em>
<span id="result_box"><span class="hps">But</span> <span class="hps">I see no</span> <span class="hps">BYE</span> <span class="hps">sent by my</span> <span class="hps">proxy</span><span>!</span>
<span class="hps">Function</span> <span class="hps">is working correctly</span> <span class="hps">because I see</span> <span class="hps">the</span> <span class="hps">local OPTIONS</span> <span class="hps">drouting</span> <span class="hps">generated</span><span>.
</span></span><span id="result_box"><span class="hps">And yet, with</span> <span class="hps">wireskark</span><span>, I see that</span> <span class="hps">the second</span> BYE, <span class="hps">comes from my</span> <span class="hps">OpenSIPS</span><span class="hps"> </span><span>.</span></span>
<span id="result_box"><span><span class="hps">I don't understand</span> <span class="hps">...</span></span>
On Fri, 29 Jul 2011 15:38:47 +0300, Razvan Crainea wrote:
> Hi Mickael,
>
> The function was also added in OpenSIPS 1.6.4 in svn revision 8195.
> If you script is dialog aware, then using this function will work.
> You can catch the locally generated BYE in a local_route. There you
> can use this function to test if the BYE has already been relayed.
>
> Regards,
>
> Razvan Crainea
> OpenSIPS Developer
>
>
> On 29.07.2011 15:20, <a class="moz-txt-link-abbreviated" href="mailto:mickael@winlux.fr">mickael@winlux.fr</a> wrote:
>> Thanks Razvan,
>> my version is 1.6.4-2-tls (svn revision: 2:8151)
>> but this function will work in ? knowing that my OpenSIPS generate this second BYE.
>>
>> Ex:
>> - UAC --> BYE --> Opensips --> BYE --> provider
>> after 0,01s
>> - Opensips --> BYE --> provider
>> after
>> - provider --> 500 error -> opensips
>>
>> Regards,
>>
>> On Fri, 29 Jul 2011 15:11:29 +0300, Razvan Crainea wrote:
>>> Hi Mickael,
>>>
>>> What version of OpenSIPS are you using? You can find a useful
>>> function on trunk: test_and_set_dlg_flag [1]
>>> This function is executed atomically, so you can set a flag for the
>>> first BYE. When the second BYE comes, if the flag is set you can
>>> ignore it.
>>>
>>> Regards,
>>>
>>> [1]
>>> <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/devel/dialog.html#id294480">http://www.opensips.org/html/docs/modules/devel/dialog.html#id294480</a>
>>> [3]
>>>
>>> Razvan Crainea
>>> OpenSIPS Developer
>>>
>>> On 29.07.2011 14:54, <a class="moz-txt-link-abbreviated" href="mailto:mickael@winlux.fr">mickael@winlux.fr</a> [4] wrote:
>>>
>>>> I'm sorry if you receive this message twice, I had a problem sending
>>>> mail to users mailing list
>>>>
>>>> So ....
>>>>
>>>> I list,
>>>>
>>>> I have a little problem with my proxy
>>>> (OpenSIPS/1.6.4-2-tls/i386/freebsd) and my voip provider
>>>> (CISCO-SBC/2.x and CS2000_NGSS/9.0).
>>>>
>>>> In fact, my opensips send 2 BYE (Screenshot below)
>>>>
>>>> 2.2.2.2, 1.1.1.1, 3.3.3.3 are public IP
>>>>
>>>> - My UAC (2.2.2.2) send BYE to my proxy Opensips (1.1.1.1), Opensips
>>>> resend this BYE to my provider (3.3.3.3).
>>>> - But after 0.01s my proxy send second BYE to my provider.
>>>> - Therefore my provider answer with 500 error.
>>>> - I think my proxy hangup dial and transfer this error to my UAC.
>>>> - But my provider send a 200OK after this error.
>>>>
>>>> Why my proxy send 2 BYE ? Timer is to short ? how to change this
>>>> timer? Is T1 default value 500ms ?
>>>>
>>>> -- BYE configuration (simple configuration):
>>>>
>>>> _if (is_method("BYE"))_
>>>> _ {_
>>>> _ t_on_reply("4");_
>>>> _
>>>>
>>>
>>> xlog("L_INFO","################################################################################
>>>
>>>> n");_
>>>> _ xlog("L_INFO","END OF CALL : call-id $ci n");_
>>>> _ if($avp(s:debugcall)=~"yes"){ xlog("L_INFO","In HAS_TOTAG - Method
>>>> BYE - fu : $fu , ru : $ru , si : $si n"); }_
>>>> _
>>>>
>>>
>>> xlog("L_INFO","################################################################################
>>>
>>>> n");_____
>>>>
>>>> _ setflag(1); # do accounting ..._
>>>> _ setflag(2); #missed call ..._
>>>> _ setflag(3); # ... even if the transaction fails_
>>>> _ setflag(4); #flag dialog___
>>>>
>>>> _ if(is_present_hf("Proxy-Authorization"))_
>>>> _ {_
>>>> _ remove_hf("Proxy-Authorization");_
>>>> _ }_
>>>>
>>>> _ t_relay();_
>>>> _ }_
>>>>
>>>> -- On reply configuration (for a test I wanted to delete the 500
>>>> message, but impossible to remove) :
>>>>
>>>> _onreply_route[4]_
>>>> _{_
>>>> _ xlog("L_INFO","$ci In ONREPLY ROUTE 4 - fu : $fu , ru : $ru , si :
>>>> $si , status : $rs n");_
>>>> _ if( t_check_status("500") ){_
>>>> _ xlog("L_INFO","DROP 500n");_
>>>> _ drop();___
>>>> _ }_
>>>> _}_
>>>>
>>>> After several days of searching, Im stranded. So Id like your
>>>> opinion about it.
>>>>
>>>> PS: complete sip capture.
>>>>
>>>> thank in advance
>>>>
>>>> Mickael
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> <a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> [1]
>>>> <a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a> [2]
>>>
>>>
>>> Links:
>>> ------
>>> [1] <a class="moz-txt-link-freetext" href="mailto:Users@lists.opensips.org">mailto:Users@lists.opensips.org</a>
>>> [2] <a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
>>> [3] <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/devel/dialog.html#id294480">http://www.opensips.org/html/docs/modules/devel/dialog.html#id294480</a>
>>> [4] <a class="moz-txt-link-freetext" href="mailto:mickael@winlux.fr">mailto:mickael@winlux.fr</a>
>>
>
> _______________________________________________
> Users mailing list
> <a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
> <a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</span></pre>
</blockquote>
</blockquote>
</body></html>