[OpenSIPS-Users] max branches count error

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Oct 26 11:19:08 CEST 2012


Hi,

The total number of branches per transaction is limited to 12 . If you 
need more, you need to change in config.h, line 143, the MAX_BRANCHES 
define. And re-compile that.

Regards,
Bogdan

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 10/26/2012 07:30 AM, kaiser at gentrice.net wrote:
> 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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list