[SR-Users] Return code after fr_inv_timer hit

Mino Haluz mino.haluz at gmail.com
Tue Jan 18 10:54:26 CET 2011


So

failure_route[FAIL_ONE] {
 ...
 if (t_check_status("408")) {
     t_reply("480","Temporarily Unavailable");
     exit;
  }
}

Thank you, but I am encountering particular problem, that there are 2
messages stored in the radius, the original 408 and my 480 Temporarily
unavailabe. Can I force to do not write that original 408 to radius?

On Fri, Jan 14, 2011 at 10:39 AM, Klaus Darilion
<klaus.mailinglists at pernau.at> wrote:
> Am 14.01.2011 10:28, schrieb Mino Haluz:
>>
>> Hi,
>>
>> I would like to force kamailio to send another code as Request timeout
>> when fr invite timeout is hit. Is there some nice way how to achieve it,
>> or I have to edit the code ? :(
>
> activate a failure route: t_on_failure("foo")
>
>
> then in failure route check for the status (e.g. 408):
>
> failure_route[foo] {
>  ...
>  if (t_check_status("487")) {
>      t_reply("499","or what ever you want");
>      exit;
>   }
>  ...
> }
>
>
> regards
> klaus
>



More information about the sr-users mailing list