[Serdev] [Patch] Ability to check negative reply code in the failure_route

Dan Pascu dan at ag-projects.com
Tue Mar 8 18:31:43 UTC 2005


On Tuesday 08 March 2005 20:20, Juha Heinanen wrote:
> Dan Pascu writes:
>  > This implies that you know which of fr_timer or fr_inv_timer expired and
>  > generated the 408 when you hit failure route.
>
> i don't see any problem there, because normally fr_inv_timer is set to
> a rather large value (tens of seconds), whereas ft_timer can be set to a
> small number of seconds before t_relay to pstn gw.

Maybe I'm overlooking something obvious, but how do you implement this:

failure_route[1] {
  if (t_check_status("408")) {
     if (is_gateway_dead_test) {
        revert_uri();
        rewritehostport(SECOND_PSTN_ADDRESS);
        append_branch();
        t_relay();
     } else {
        # callee didn't answer. just fail.
        break;
     }
  }
  ....
}


More exactly how does the is_gateway_dead_test look like to be able to 
distinguish the kind of 408 you received. How you encode in that test the 
knowledge that fr_timer expired or fr_inv_timer expired?

>
> -- juha

-- 
Dan




More information about the Serdev mailing list