Hello Bogdan,<br><br>Right now, the server is in production.<br>So I could not get the trace for the same.<br>Whenever I would get chance, I would post it here.<br><br>Thanks for your support.<br><br>--<br>Krunal<br><br><br>
<div class="gmail_quote">On Wed, Oct 14, 2009 at 2:39 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Alex,<br>
<br>
That is correct, but I was interested to see the logs to see why the<br>
parallel processing of CANCEL and INVITE leads to an 500....it would<br>
rather be a local 487 cancelled....But I need the logs to see how the<br>
processing takes place.<br>
<br>
Regards,<br>
<font color="#888888">Bogdan<br>
</font><div><div></div><div class="h5"><br>
Alex Massover wrote:<br>
> Hi!<br>
><br>
> I think we experienced something similar, as far as I remember the following fixes the issue in conjunction with the code below that Bogdan suggested:<br>
><br>
> For INVITE you do:<br>
><br>
> t_newtran();<br>
> t_reply("100","Trying");<br>
> ....<br>
> ....<br>
> if(!t_relay("0x05"))<br>
> {<br>
> #sl_reply_error(); # do not send error<br>
> }<br>
><br>
> The idea is to create transaction as fast as possible, and do not reply if t_relay() fails.<br>
><br>
> For CANCEL you do, like Bogdan said:<br>
><br>
> if (is_method("CANCEL"))<br>
> {<br>
> if (t_check_trans())<br>
> t_relay();<br>
> exit;<br>
> }<br>
><br>
> You get an error in log, but 500 is not sent. As far as I remember, there was no way to fix it more cleanly.<br>
><br>
> The situation can be easy reproduced if you "slow down" processing of INVITE and then send CANCEL, for example with exec_dset("very_slow_script").<br>
><br>
><br>
> --<br>
> Best Regards,<br>
> Alex Massover<br>
> VoIP R&D TL<br>
> Jajah Inc.<br>
><br>
>> -----Original Message-----<br>
>> From: <a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> [mailto:<a href="mailto:users-">users-</a><br>
>> <a href="mailto:bounces@lists.opensips.org">bounces@lists.opensips.org</a>] On Behalf Of Bogdan-Andrei Iancu<br>
>> Sent: Tuesday, October 13, 2009 4:17 PM<br>
>> To: OpenSIPS users mailling list<br>
>> Subject: Re: [OpenSIPS-Users] ERROR:tm:t_forward_nonack: discarding fwd<br>
>> for a cancelled/6xx transaction<br>
>><br>
>> Hi Krunal,<br>
>><br>
>> could you send me (off list if necessary) a trace of the call and the<br>
>> output of opensips in debug mode 6 ?<br>
>><br>
>> Regards,<br>
>> Bogdan<br>
>><br>
>> Krunal Patel wrote:<br>
>><br>
>>> Hello Bogdan,<br>
>>><br>
>>> I have your suggested code block , in my cfg.<br>
>>> But still getting the same.<br>
>>><br>
>>> --<br>
>>> Krunal Patel<br>
>>><br>
>>> On Mon, Oct 12, 2009 at 9:04 PM, Bogdan-Andrei Iancu<br>
>>> <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>>> wrote:<br>
>>><br>
>>> Hi Krunal,<br>
>>><br>
>>> Looks like a race between the INVITE and CANCEL.....typical way<br>
>>><br>
>> to<br>
>><br>
>>> deal<br>
>>> with that is by processing the CANCEL only if it matches an<br>
>>><br>
>> INVITE<br>
>><br>
>>> transaction:<br>
>>><br>
>>> # CANCEL processing<br>
>>> if (is_method("CANCEL"))<br>
>>> {<br>
>>> if (t_check_trans())<br>
>>> t_relay();<br>
>>> exit;<br>
>>> }<br>
>>><br>
>>><br>
>>><br>
>>> do you have this in your script ?<br>
>>><br>
>>> Regards,<br>
>>> Bogdan<br>
>>><br>
>>> Krunal Patel wrote:<br>
>>> > Hi,<br>
>>> ><br>
>>> > I am getting issue like :<br>
>>> > ERROR:tm:t_forward_nonack: discarding fwd for a cancelled/6xx<br>
>>> transaction<br>
>>> ><br>
>>> > Here is the SIP trace.<br>
>>> ><br>
>>> > U 2009/10/12 11:24:19.127160 XXX.XXX.XXX.XXX:5060 -><br>
>>> YYY.YYY.YYY.YYY:5060<br>
>>> > INVITE sip:[EMAIL PROTECTED] SIP/2.0.<br>
>>> ><br>
>>> > U 2009/10/12 11:24:19.127237 XXX.XXX.XXX.XXX:5060 -><br>
>>> YYY.YYY.YYY.YYY:5060<br>
>>> > CANCEL sip:[EMAIL PROTECTED] SIP/2.0.<br>
>>> ><br>
>>> > U 2009/10/12 11:24:19.127276 YYY.YYY.YYY.YYY:5060 -><br>
>>> XXX.XXX.XXX.XXX:5060<br>
>>> > SIP/2.0 100 ci Trying...<br>
>>> ><br>
>>> > U 2009/10/12 11:24:19.130913 YYY.YYY.YYY.YYY:5060 -><br>
>>> XXX.XXX.XXX.XXX:5060<br>
>>> > SIP/2.0 200 canceling.<br>
>>> ><br>
>>> > U 2009/10/12 11:24:19.142229 YYY.YYY.YYY.YYY:5060 -><br>
>>> XXX.XXX.XXX.XXX:5060<br>
>>> > SIP/2.0 500 Server error occurred (19/SL).<br>
>>> ><br>
>>> > U 2009/10/12 11:24:19.182452 XXX.XXX.XXX.XXX:5060 -><br>
>>> YYY.YYY.YYY.YYY:5060<br>
>>> > ACK sip:[EMAIL PROTECTED] SIP/2.0.<br>
>>> ><br>
>>> > This happens when OpenSIPS gets CANCEL from caller before it<br>
>>> sends 100<br>
>>> > Trying to CALLER for the INVITE.<br>
>>> ><br>
>>> > Please let me know how to resolve it.<br>
>>> ><br>
>>> > I have put t_was_cancelled in onreply & failure route both.<br>
>>> ><br>
>>> > Thanks in advance,<br>
>>> ><br>
>>> > --<br>
>>> > Krunal Patel<br>
>>> ><br>
>>> ><br>
>>><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
</div></div><div><div></div><div class="h5"><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>