[SR-Users] Return code after fr_inv_timer hit

Klaus Darilion klaus.mailinglists at pernau.at
Fri Jan 14 10:39:37 CET 2011


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