Hi Bogdan,<br><br>Its working on my lab now. I will try in production and let you know.<br><br>Thanks a lot for your support.<br>Diego<br><br><div class="gmail_quote">On Tue, Sep 11, 2012 at 5:21 AM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    <tt>Thanks Diego,<br>
      <br>
      Please try the attached patch - let me know if (a) the error goes
      away and (b) dispatching work fine.<br>
      <br>
      Regards,<br>
    </tt><div class="im">
    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
    <br></div><div><div class="h5">
    On 09/11/2012 01:17 AM, Diego Barberio wrote:
    <blockquote type="cite">Hi Bogdan,<br>
      <br>
      Sorry for my delay. I&#39;m attaching the log you requested<br>
      <br>
      Thanks a lot<br>
      Diego<br>
      <br>
      <div class="gmail_quote">On Thu, Sep 6, 2012 at 3:56 AM,
        Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br>
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor="#ffffff" text="#000000"> <tt>Hi Diego,<br>
              <br>
              Try to run opensips in full debug (debug=6) and post
              somewhere the output (during startup and during the call
              attempt).<br>
              <br>
              Regards,<br>
            </tt>
            <div>
              <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              <br>
            </div>
            <div>
              <div> On 09/03/2012 07:41 PM, Diego Barberio
                wrote:
                <blockquote type="cite">Hi Bogdan,<br>
                  <br>
                  No, I don&#39;t see any errors like that.<br>
                  <br>
                  Below is the result of cat /var/log/messages after
                  starting opensips and placing one call:<br>
                  <br>
                  Sep  3 09:57:58 BARNEY
                  /usr/local/sbin/opensips[11491]: NOTICE:core:main:
                  version: opensips 1.8.1-notls (i386/linux) <br>
                  Sep  3 09:57:58 BARNEY
                  /usr/local/sbin/opensips[11491]: INFO:core:main: using
                  32 Mb shared memory <br>
                  Sep  3 09:57:58 BARNEY
                  /usr/local/sbin/opensips[11491]: INFO:core:main: using
                  2 Mb private memory per process <br>
                  Sep  3 09:57:58 BARNEY
                  /usr/local/sbin/opensips[11491]: INFO:maxfwd:mod_init:
                  initializing... <br>
                  Sep  3 09:57:58 BARNEY
                  /usr/local/sbin/opensips[11491]: INFO:sl:mod_init:
                  Initializing StateLess engine <br>
                  Sep  3 09:57:58 BARNEY
                  /usr/local/sbin/opensips[11491]: INFO:tm:mod_init: TM
                  - initializing... <br>
                  Sep  3 09:57:58 BARNEY
                  /usr/local/sbin/opensips[11491]:
                  NOTICE:signaling:mod_init: initializing module ... <br>
                  Sep  3 09:57:58 BARNEY
                  /usr/local/sbin/opensips[11491]:
                  INFO:options:mod_init: initializing... <br>
                  Sep  3 09:57:58 BARNEY
                  /usr/local/sbin/opensips[11491]:
                  INFO:sipmsgops:mod_init: initializing... <br>
                  Sep  3 09:57:58 BARNEY
                  /usr/local/sbin/opensips[11491]:
                  INFO:core:probe_max_sock_buff: using rcv buffer of 512
                  kb <br>
                  Sep  3 09:57:58 BARNEY
                  /usr/local/sbin/opensips[11491]:
                  INFO:core:probe_max_sock_buff: using snd buffer of 255
                  kb <br>
                  Sep  3 09:57:58 BARNEY
                  /usr/local/sbin/opensips[11491]:
                  INFO:core:init_sock_keepalive: -- TCP keepalive
                  enabled on socket<br>
                  Sep  3 09:57:58 BARNEY opensips: INFO:core:daemonize:
                  pre-daemon process exiting with 0 <br>
                  Sep  3 10:04:38 BARNEY
                  /usr/local/sbin/opensips[11505]:
                  INFO:core:probe_max_sock_buff: using snd buffer of 255
                  kb <br>
                  Sep  3 10:04:38 BARNEY
                  /usr/local/sbin/opensips[11505]:
                  INFO:core:init_sock_keepalive: -- TCP keepalive
                  enabled on socket<br>
                  Sep  3 10:04:38 BARNEY
                  /usr/local/sbin/opensips[11501]: ERROR:core:new_avp:
                  invalid AVP name! <br>
                  Sep  3 10:04:38 BARNEY
                  /usr/local/sbin/opensips[11501]: ERROR:core:add_avp:
                  Failed to create new avp structure <br>
                  <br>
                  Thanks<br>
                  Diego<br>
                  <br>
                  <div class="gmail_quote">On Mon, Sep 3, 2012 at 11:23
                    AM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                      <div bgcolor="#ffffff" text="#000000"> <tt>Diego,
                          what about :  </tt><tt>do you see any error
                          actually reported by the dispatcher module
                          (should look like &quot;ERROR:dispatcher:......&quot;) .<br>
                          <br>
                          Regards,<br>
                        </tt>
                        <div>
                          <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                          <br>
                        </div>
                        <div>
                          <div> On 09/03/2012 05:07 PM, Diego Barberio
                            wrote:
                            <blockquote type="cite">Hi Bogdan,<br>
                              <br>
                              Thanks for your response. The errrors only
                              pop up when doing ds_select_dst()<br>
                              <br>
                              I&#39;m able to reproduce this problem in my
                              lab with only one destination and using
                              mysql as database. I left the &quot;socket&quot;
                              field in (null) and &quot;attrs&quot; is an empty
                              string<br>
                              It seems the startup is ok:<br>
                              <br>
                              Sep  3 09:57:58 BARNEY opensips:
                              WARNING:core:fix_socket_list: could not
                              rev. resolve 192.168.2.154 <br>
                              Sep  3 09:57:58 BARNEY opensips:
                              WARNING:core:fix_socket_list: could not
                              rev. resolve 192.168.2.154 <br>
                              Sep  3 09:57:58 BARNEY opensips:
                              INFO:core:init_tcp: using epoll_lt as the
                              TCP io watch method (auto detected) <br>
                              Sep  3 09:57:58 BARNEY
                              /usr/local/sbin/opensips[11491]:
                              NOTICE:core:main: version: opensips
                              1.8.1-notls (i386/linux) <br>
                              Sep  3 09:57:58 BARNEY
                              /usr/local/sbin/opensips[11491]:
                              INFO:core:main: using 32 Mb shared memory
                              <br>
                              Sep  3 09:57:58 BARNEY
                              /usr/local/sbin/opensips[11491]:
                              INFO:core:main: using 2 Mb private memory
                              per process <br>
                              Sep  3 09:57:58 BARNEY
                              /usr/local/sbin/opensips[11491]:
                              INFO:maxfwd:mod_init: initializing... <br>
                              Sep  3 09:57:58 BARNEY
                              /usr/local/sbin/opensips[11491]:
                              INFO:sl:mod_init: Initializing StateLess
                              engine <br>
                              Sep  3 09:57:58 BARNEY
                              /usr/local/sbin/opensips[11491]:
                              INFO:tm:mod_init: TM - initializing... <br>
                              Sep  3 09:57:58 BARNEY
                              /usr/local/sbin/opensips[11491]:
                              NOTICE:signaling:mod_init: initializing
                              module ... <br>
                              Sep  3 09:57:58 BARNEY
                              /usr/local/sbin/opensips[11491]:
                              INFO:options:mod_init: initializing... <br>
                              Sep  3 09:57:58 BARNEY
                              /usr/local/sbin/opensips[11491]:
                              INFO:sipmsgops:mod_init: initializing... <br>
                              Sep  3 09:57:58 BARNEY
                              /usr/local/sbin/opensips[11491]:
                              INFO:core:probe_max_sock_buff: using rcv
                              buffer of 512 kb <br>
                              Sep  3 09:57:58 BARNEY
                              /usr/local/sbin/opensips[11491]:
                              INFO:core:probe_max_sock_buff: using snd
                              buffer of 255 kb <br>
                              Sep  3 09:57:58 BARNEY
                              /usr/local/sbin/opensips[11491]:
                              INFO:core:init_sock_keepalive: -- TCP
                              keepalive enabled on socket<br>
                              Sep  3 09:57:58 BARNEY opensips:
                              INFO:core:daemonize: pre-daemon process
                              exiting with 0 <br>
                              <br>
                              Also the destinations list seems to be ok:<br>
                              <br>
                              [root@BARNEY opensips]# opensipsctl fifo
                              ds_list<br>
                              SET_NO:: 1<br>
                              SET:: 1<br>
                                      URI:: sip:<a href="http://192.168.2.154:5063" target="_blank">192.168.2.154:5063</a>
                              flag=A<br>
                              <br>
                              <br>
                              Best Regards<br>
                              Diego<br>
                              <br>
                              <div class="gmail_quote">On Mon, Sep 3,
                                2012 at 6:47 AM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span>
                                wrote:<br>
                                <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                                  <div bgcolor="#ffffff" text="#000000">
                                    <tt>Hi Diego,<br>
                                      <br>
                                      So, the opensips startup is ok
                                      (with no errors or so) ? Are the
                                      destinations loaded correctly
                                      (check with opensipsctl via fifo)<br>
                                      <br>
                                      The errors you mentioned pop up
                                      only when doing ds_select_dst() -
                                      do you see any error actually
                                      reported by the dispatcher module
                                      (should look like
                                      &quot;ERROR:dispatcher:......&quot;) .<br>
                                    </tt><tt><br>
                                      Regards,<br>
                                    </tt>
                                    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                                    <div>
                                      <div> <br>
                                        On 08/31/2012 09:02 AM, Diego
                                        Barberio wrote: </div>
                                    </div>
                                    <blockquote type="cite">
                                      <div>
                                        <div>Hello all,<br>
                                          <br>
                                          I&#39;m trying to migrate from
                                          opensips 1.7.2 to 1.8.1. I
                                          only use opensips to redirect
                                          incomming INVITEs to 3 sets of
                                          media servers using dispatcher
                                          module.<br>
                                          This is my current dispatcher
                                          file:<br>
                                          <br>
                                          1 sip:<a href="http://10.180.12.5:5060" target="_blank">10.180.12.5:5060</a><br>
                                          1 sip:<a href="http://10.180.12.13:5060" target="_blank">10.180.12.13:5060</a><br>
                                          1 sip:<a href="http://10.180.12.14:5060" target="_blank">10.180.12.14:5060</a><br>
                                          1 sip:<a href="http://10.180.12.15:5060" target="_blank">10.180.12.15:5060</a><br>
                                          1 sip:<a href="http://10.180.12.16:5060" target="_blank">10.180.12.16:5060</a><br>
                                          1 sip:<a href="http://10.180.12.17:5060" target="_blank">10.180.12.17:5060</a><br>
                                          1 sip:<a href="http://10.180.12.18:5060" target="_blank">10.180.12.18:5060</a><br>
                                          1 sip:<a href="http://10.180.12.19:5060" target="_blank">10.180.12.19:5060</a><br>
                                          <br>
                                          2 sip:<a href="http://10.180.12.21:5060" target="_blank">10.180.12.21:5060</a><br>
                                          <br>
                                          3 sip:<a href="http://10.180.12.21:5061" target="_blank">10.180.12.21:5061</a><br>
                                          <br>
                                          <br>
                                          I still want to use a file for
                                          the destinations so I&#39;ve
                                          created the dbtext and
                                          completed the dispatcher table
                                          like this:<br>
                                          <br>
                                          id(int,auto) setid(int)
                                          destination(string)
                                          socket(string,null) flags(int)
                                          weight(int) attrs(string)
                                          description(string)<br>
1:1:sip\:10.180.12.5\:5060::0:1:&#39;&#39;:&#39;&#39;<br>
2:1:sip\:10.180.12.13\:5060::0:1:&#39;&#39;:&#39;&#39;<br>
3:1:sip\:10.180.12.14\:5060::0:1:&#39;&#39;:&#39;&#39;<br>
4:1:sip\:10.180.12.15\:5060::0:1:&#39;&#39;:&#39;&#39;<br>
5:1:sip\:10.180.12.16\:5060::0:1:&#39;&#39;:&#39;&#39;<br>
6:1:sip\:10.180.12.17\:5060::0:1:&#39;&#39;:&#39;&#39;<br>
7:1:sip\:10.180.12.18\:5060::0:1:&#39;&#39;:&#39;&#39;<br>
8:1:sip\:10.180.12.19\:5060::0:1:&#39;&#39;:&#39;&#39;<br>
9:2:sip\:10.180.12.21\:5060::0:1:&#39;&#39;:&#39;&#39;<br>
10:3:sip\:10.180.12.21\:5061::0:1:&#39;&#39;:&#39;&#39;<br>
                                          <br>
                                          However, opensips is returning
                                          error when calling to
                                          ds_select_dst and I see the
                                          following repeating errors in
                                          &quot;messages&quot; file:<br>
                                          <br>
                                          Aug 30 23:43:15 GT-RBT-SIP-1
                                          /usr/local/sbin/opensips[27008]:
                                          ERROR:core:new_avp: invalid
                                          AVP name! <br>
                                          Aug 30 23:43:15 GT-RBT-SIP-1
                                          /usr/local/sbin/opensips[27006]:
                                          ERROR:core:add_avp: Failed to
                                          create new avp structure <br>
                                          Aug 30 23:43:15 GT-RBT-SIP-1
                                          /usr/local/sbin/opensips[27007]:
                                          ERROR:core:add_avp: Failed to
                                          create new avp structure <br>
                                          Aug 30 23:43:15 GT-RBT-SIP-1
                                          /usr/local/sbin/opensips[27009]:
                                          ERROR:core:new_avp: invalid
                                          AVP name! <br>
                                          <br>
                                          This is the part of my
                                          configuration script where I
                                          set up the dispatcher module:<br>
                                          <br>
                                          # ----------------- setting
                                          module-specific parameters
                                          ---------------<br>
                                          <br>
                                          modparam(&quot;db_text&quot;, &quot;db_mode&quot;,
                                          0)<br>
                                          <br>
                                          modparam(&quot;mi_fifo&quot;,
                                          &quot;fifo_name&quot;,
                                          &quot;/tmp/opensips_fifo&quot;)<br>
                                          <br>
                                          modparam(&quot;tm&quot;, &quot;T1_timer&quot;,
                                          200)<br>
                                          <br>
                                          # -- dispatcher params --<br>
                                          modparam(&quot;dispatcher&quot;,
                                          &quot;db_url&quot;,
                                          &quot;text:///usr/local/etc/opensips/dbtext&quot;)<br>
                                          modparam(&quot;dispatcher&quot;,
                                          &quot;ds_ping_from&quot;, &quot;<a href="mailto:sip%3Aproxy@10.180.12.4" target="_blank">sip:proxy@10.180.12.4</a>&quot;)<br>
                                          modparam(&quot;dispatcher&quot;,
                                          &quot;ds_ping_interval&quot;, 10)<br>
                                          modparam(&quot;dispatcher&quot;,
                                          &quot;ds_probing_mode&quot;, 1)<br>
                                          modparam(&quot;dispatcher&quot;,
                                          &quot;ds_probing_threshhold&quot;, 2)<br>
                                          <br>
                                          <br>
                                          Please, could you let me know
                                          what am I doing wrong?<br>
                                          <br>
                                          Thanks Diego<br>
                                          <br>
                                        </div>
                                      </div>
                                      <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                                    </blockquote>
                                  </div>
                                </blockquote>
                              </div>
                              <br>
                            </blockquote>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </blockquote>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </div></div></div>

</blockquote></div><br>