[Kamailio-Users] break a call?

Alex Balashov abalashov at evaristesys.com
Thu Feb 4 16:07:23 CET 2010


t_on_failure()

On 02/04/2010 08:20 AM, BERGANZ Francois wrote:

> Where can I activate it?
>
> -----Message d'origine-----
> De : Klaus Darilion [mailto:klaus.mailinglists at pernau.at]
> Envoyé : jeudi 4 février 2010 14:09
> À : BERGANZ Francois
> Objet : Re: [Kamailio-Users] break a call?
>
> probably the problem is that you can not use tm module functions in
> onreply_route.
>
> You have to handle the responses in the failure route (every final response
>> =300 triggers the failure_route (if activated)).
>
> regards
> klaus
>
> Am 04.02.2010 13:40, schrieb BERGANZ Francois:
>> Line 254 is    t_reply("406", "Not Acceptable");
>>
>>
>>
>> -----Message d'origine-----
>> De : Klaus Darilion [mailto:klaus.mailinglists at pernau.at]
>> Envoyé : jeudi 4 février 2010 13:08
>> À : BERGANZ Francois
>> Objet : Re: [Kamailio-Users] break a call?
>>
>>
>>
>> Am 04.02.2010 12:37, schrieb BERGANZ Francois:
>>> I have that error:
>>>
>>>
>>> onreply_route[1] {
>>>      if(t_check_status("3[0-9][0-9]")){
>>>      xlog("L_ERR", "3XX!!!!!!!!!!!\n");
>>>            t_reply("406", "Not Acceptable");
>>>            exit;
>>>      }
>>> }
>>>
>>> Feb  4 12:36:41 [4584] CRITICAL:core:yyerror: parse error in config
>>> file, line 254, column 16-17: Command cannot be used in the block
>>
>> How will I know what line 254 is?
>>
>> The code I sent uses the failure-route, not the reply-route.
>>
>> klaus
>>
>>
>>>
>>>
>>> Any idea?
>>>
>>> Thank you
>>>
>>>
>>>
>>> -----Message d'origine-----
>>> De : Klaus Darilion [mailto:klaus.mailinglists at pernau.at]
>>> Envoyé : jeudi 4 février 2010 08:59
>>> À : BERGANZ Francois
>>> Cc : users at lists.kamailio.org
>>> Objet : Re: [Kamailio-Users] break a call?
>>>
>>> e.g.:
>>>
>>> failure_route[1] {
>>>             if(t_check_status("302")) {
>>>                     xlog("L_INFO","302 redirect received\n");
>>>                     t_reply("403","received 302 from downstream client");
>>> 		exit;
>>>             }
>>> }
>>>
>>> klaus
>>>
>>> Am 04.02.2010 08:37, schrieb BERGANZ Francois:
>>>> Hello,
>>>>
>>>> I know that we can break a call with sl_reply().
>>>>
>>>> But, in the on_reply route, how can I break a call if I receive a
>>>> 3XX (I cant use a sl_reply() function!) ?
>>>>
>>>> Thank you
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Kamailio (OpenSER) - Users mailing list Users at lists.kamailio.org
>>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>>
>>
>
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users


-- 
Alex Balashov - Principal
Evariste Systems LLC

Tel    : +1 678-954-0670
Direct : +1 678-954-0671
Web    : http://www.evaristesys.com/



More information about the Users mailing list