Help needed when handling a 408 timeout

2008-11-13
2013-05-09
  • Nobody/Anonymous

    Hi - we're using opensips as a proxy relaying call traffic between two other gateways but we seem to have a problem handling Request Timeouts.  Here's the relevant bit of our config:

    failure_route[3] {

    if ( t_check_status("408") ) {
    # Relay to other party
    append_branch();
    t_on_failure("2");
    t_relay();
    }

    Our fr_timer is set to 3.

    Without any code in the if block opensips sends a 408 to one side of the conversation, but not the other side.  So I tried adding the t_on_faliure and t_relay() but it complains that about there not being a branch.  Adding the append_branch fixed the error but it's still only sending to one gateway.  Any help greatly appreciated as this is having a major impact on our billing.

     
    • Bogdan-Andrei Iancu

      Hi,

      before append_branch() set the address of the new gateway you want to try (use rewritehostport("IP:port")).

      Regards,
      Bogdan