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;
 
 

}





_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to