<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
On 12/2/09 6:15 PM, alex pappas wrote:
<blockquote
 cite="mid:88b5e74c0912020915y3ab99094ua618e4c7db58dd9e@mail.gmail.com"
 type="cite">That was the SOLUTION,<br>
  <br>
I had configure in my FAILURE route <b>append_branch();</b> (in the
configuration that Panagiotis gave me ;-)&nbsp; ) and also the <b>ds_append_branch</b>
had the default value <b>1</b>. When I changed the <b>ds_append_branch=0
  </b>i had NO errors.<br>
  <br>
I got also a trace to be sure and everything looks good now!<br>
In the trace i see again many INVITEs but this time I don't get any
error. I understand that in the failure route with my original settings
I was appending actually 2 new branches , but that was the problem or
something else?<br>
Can you explain why that happen ?<br>
</blockquote>
<br>
yes, same destination was added more than once. You can trace the
number of branches created by tm looking at top Via header in forwarded
INVITE, branch parameter, last number (after dot).<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
 cite="mid:88b5e74c0912020915y3ab99094ua618e4c7db58dd9e@mail.gmail.com"
 type="cite"><br>
  <div class="gmail_quote">On Wed, Dec 2, 2009 at 6:49 PM,
Daniel-Constantin Mierla <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">
Hello,
    <div class="im"><br>
    <br>
On 12/2/09 5:42 PM, alex pappas wrote:
    <blockquote type="cite">Hi Daniel,<br>
      <br>
these are the data:<br>
      <br>
Server:: Kamailio (<b>1.5.3-notls</b> (x86_64/linux))<br>
Build:: mi/mi_core.c compiled on 20:05:04 Nov 15 2009 with gcc 4.3.2<br>
Flags:: STATISTICS, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST,
SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>
SVN:: 2:5954M<br>
Now:: Wed Dec&nbsp; 2 18:41:37 2009<br>
Up since:: Wed Dec&nbsp; 2 18:32:13 2009<br>
Up time:: 564 [sec]<br>
      <br>
    </blockquote>
    </div>
ok, this is stable.<br>
    <br>
So, you get one INVITE in and then you get 8 of them out? From your
explanation, you have fewer gateways in dispatcher groups.<br>
    <br>
Try to set ds_append_branch parameter to 0:<br>
    <a moz-do-not-send="true"
 href="http://kamailio.org/docs/modules/1.5.x/dispatcher.html#id2468051"
 target="_blank">http://kamailio.org/docs/modules/1.5.x/dispatcher.html#id2468051</a><br>
    <br>
Cheers,<br>
    <font color="#888888">Daniel</font>
    <div>
    <div class="h5"><br>
    <br>
    <blockquote type="cite"><br>
Alex<br>
      <br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On Wed, Dec 2, 2009 at 6:36 PM,
Daniel-Constantin Mierla <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span>
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        <div bgcolor="#ffffff" text="#000000">Hello,<br>
        <br>
what version of kamailio are you running?<br>
        <br>
Cheers,<br>
Daniel
        <div>
        <div><br>
        <br>
        <br>
On 12/2/09 5:27 PM, alex pappas wrote: </div>
        </div>
        <blockquote type="cite">
          <div>
          <div>Hi again,<br>
          <br>
By changing the parameters T1 and T2 in the TM module I managed to have
almost the half branches than before BUT still I get the same Error and
I try to send the call on gateway N.<br>
          <br>
modparam("tm", "T2_timer", 2000)<br>
modparam("tm", "T1_timer", 1000)<br>
          <br>
          <br>
Thanks<br>
          <br>
Alex<br>
          <br>
          <br>
          <br>
          <div class="gmail_quote">On Wed, Dec 2, 2009 at 6:10 PM, alex
pappas <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:rebel.pappas@gmail.com" target="_blank">rebel.pappas@gmail.com</a>&gt;</span>
wrote:<br>
          <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello
there,<br>
            <br>
I'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'm getting the
ERROR:tm:add_uac: maximum number of branches exceeded.<br>
            <br>
I found on internet that I'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;
        if (branch==MAX_BRANCHES) {
                LOG(L_ERR, "ERROR:tm:add_uac: maximum number of branches exceeded\n");


                ret=E_CFG;
                goto error;
        }

&gt;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.


When the number of INVITES is 52 then I get this error.

Does anyone can suggest a way to change the MAX_BRANCHES MAX number ?
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.



Any help is apreciated

Thanks

Alexandros


    </pre>
            <br>
          </blockquote>
          </div>
          <br>
          </div>
          </div>
          <pre><fieldset></fieldset>
_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.kamailio.org"
 target="_blank">Users@lists.kamailio.org</a>
<a moz-do-not-send="true"
 href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users"
 target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a moz-do-not-send="true"
 href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users"
 target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></pre>
        </blockquote>
        <br>
        <pre cols="72">-- 
Daniel-Constantin Mierla
* <a moz-do-not-send="true" href="http://www.asipto.com/"
 target="_blank">http://www.asipto.com/</a>
    </pre>
        </div>
      </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla
* <a moz-do-not-send="true" href="http://www.asipto.com/"
 target="_blank">http://www.asipto.com/</a>
    </pre>
    </div>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a class="moz-txt-link-freetext" href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
* <a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a>
</pre>
</body>
</html>