[OpenSIPS-Users] max branches count error

kaiser at gentrice.net kaiser at gentrice.net
Fri Oct 26 06:30:00 CEST 2012


HI,all:


We try to make a call to a server and try as many as possible, but we find we can try around 10 times then errors happen (we expect 20 times):

ERROR: tm:add_uac: maximum number of branches exceeded
ERROR: tm:t_forward_nonack: failure to add branches
ERROR: tm:w_t_relay: t_forward_nonack failed



route[1]
{

  $avp(i)=0;

  t_on_failure("1");
  t_relay("1.2.3.4");
  exit;
}

failure_route[1] 
{
  if ( $avp(i) < 20 ) {    # max try 20 times

   xlog( " i=$avp(i) \n") ;  
   $avp(i)=$avp(i)+1;

    remove_branch(1);
    t_on_failure("1");
    t_relay("1.2.3.4");
  }
  
  exit;
 
 

}







More information about the Users mailing list