Hello there,<br><br>I&#39;m using dispatcher to serial fork a call through many gateways. <br>For a call to number 2XXXXXXXXX , first a try to connect through gateways A,B,C after that D,F , after that E,R , after that M,N and finally after those K,L.<br>
<br>When the call is trying gateway N then I&#39;m getting the ERROR:tm:add_uac: maximum number of branches exceeded.<br><br>I found on internet that I&#39;m exceeding the MAX_BRANCHES:<br><br style="font-family: arial,helvetica,sans-serif;">
<pre style="font-family: arial,helvetica,sans-serif;"><font style="font-family: tahoma,sans-serif;" size="2">branch=t-&gt;nr_of_outgoings;<br>        if (branch==MAX_BRANCHES) {<br>                LOG(L_ERR, &quot;ERROR:tm:add_uac: maximum number of branches exceeded\n&quot;);<br>
                ret=E_CFG;<br>                goto error;<br>        }<br><br>From </font>a trace I got , I see that kamailio is sending to each destination IP 8 INVITES and if there is no answer to that is continuing with next destination gateway sending also there 8 INVITES.<br>
When the number of INVITES is 52 then I get this error.<br><br>Does anyone can suggest a way to change the MAX_BRANCHES MAX number ?<br>Is is important to keep open the INVITEs from the first gateways because is an LCR scenario and if I get an answer from these gateways is important to complete through them.<br>
<br>Any help is apreciated<br><br>Thanks<br><br>Alexandros<br><br><br></pre><br>