Hi Daniel<div><br></div><div>thanks for looking into this issue...it works now!. Kamailio is starting up smoothly with the latest git loading a non-empty diaplan. I&#39;ve tested the dp_translate() function in the config and it also works fine. </div>
<div><br></div><div>There is a small problem with the &quot;mi dp_translate&quot; command. This is the dialplan table:</div><div><div>| id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs |</div>
<div>+----+------+----+----------+-----------+-----------+-----------+----------+-------+</div><div>|  1 |    1 |  1 |        1 | ^011      |         0 | ^011(.*)  | 00\1     | test  |</div></div><div><br></div><div>When I execute the fifo command it works fine:</div>
<div><div>/usr/local/kamailio/sbin# kamctl fifo dp_translate 1 &quot;01123456789&quot;</div><div>Output:: 0023456789</div><div>ATTRIBUTES:: test</div></div><div><div>Jan  3 10:24:13 kam-test ./kamailio[5297]: DEBUG: dialplan [dp_repl.c:308]: regex operator testing</div>
<div>Jan  3 10:24:13 kam-test ./kamailio[5297]: DEBUG: dialplan [dp_repl.c:344]: found a matching rule 0x7fecd47c7a80: pr 1, match_exp ^011</div><div>Jan  3 10:24:13 kam-test ./kamailio[5297]: DEBUG: dialplan [dp_repl.c:351]: the rule&#39;s attrs are test</div>
<div>Jan  3 10:24:13 kam-test ./kamailio[5297]: DEBUG: dialplan [dp_repl.c:362]: the copied attributes are: test</div><div>Jan  3 10:24:13 kam-test ./kamailio[5297]: DEBUG: dialplan [dialplan.c:541]: input 01123456789 with dpid 1 =&gt; output 0023456789</div>
</div><div><br></div><div>,whereas the mi command output is:</div><div><div>sercmd&gt; mi dp_translate 1 &quot;01123456789&quot;</div><div>error: 500 - execution failed</div></div><div><div>Jan  3 10:24:35 kam-test ./kamailio[5298]: DEBUG: dialplan [dp_repl.c:308]: regex operator testing</div>
<div>Jan  3 10:24:35 kam-test ./kamailio[5298]: DEBUG: dialplan [dp_repl.c:339]: no matching rule</div><div>Jan  3 10:24:35 kam-test ./kamailio[5298]: DEBUG: dialplan [dialplan.c:537]: could not translate &quot;01123456789&quot; with dpid 1</div>
</div><div><br></div><div>What do you think?</div><div><br></div><div>Regards</div><div><br></div><div>Javi</div><div><br></div><div><br><div class="gmail_quote">On Mon, Jan 3, 2011 at 12:30 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hi Javier,<br>
    <br>
    I got access to a troubleshooting environment where the issue could
    be reproduced. So now it is fixed on latest version of branch 3.1.
    Please give it a try and let me know if works ok for you. It was a
    32b to 64b issues with a parameter given to pcre library (the reason
    didn&#39;t reproduce on my system).<br>
    <br>
    Cheers,<br>
    Daniel<div class="im"><br>
    <br>
    On 12/6/10 12:47 PM, Javier Gallart wrote:
    </div><blockquote type="cite">Hi Daniel<br>
      <br><div><div></div><div class="h5">
      it&#39;s a clean 64 bit instalallation. This is the list of loaded
      modules:<br>
      loadmodule &quot;db_mysql.so&quot;<br>
      #!endif<br>
      <br>
      loadmodule &quot;db_postgres.so&quot;<br>
      loadmodule &quot;mi_fifo.so&quot;<br>
      loadmodule &quot;debugger.so&quot;<br>
      loadmodule &quot;kex.so&quot;<br>
      loadmodule &quot;tm.so&quot;<br>
      loadmodule &quot;tmx.so&quot;<br>
      loadmodule &quot;sl.so&quot;<br>
      loadmodule &quot;rr.so&quot;<br>
      loadmodule &quot;pv.so&quot;<br>
      loadmodule &quot;avpops.so&quot;<br>
      loadmodule &quot;maxfwd.so&quot;<br>
      loadmodule &quot;usrloc.so&quot;<br>
      loadmodule &quot;registrar.so&quot;<br>
      loadmodule &quot;textops.so&quot;<br>
      loadmodule &quot;textopsx.so&quot;<br>
      loadmodule &quot;siputils.so&quot;<br>
      loadmodule &quot;xlog.so&quot;<br>
      loadmodule &quot;sanity.so&quot;<br>
      loadmodule &quot;ctl.so&quot;<br>
      loadmodule &quot;mi_rpc.so&quot;<br>
      loadmodule &quot;acc.so&quot;<br>
      loadmodule &quot;cfgutils.so&quot;<br>
      loadmodule &quot;sqlops.so&quot;<br>
      loadmodule &quot;htable.so&quot;<br>
      loadmodule &quot;db_flatstore.so&quot;<br>
      loadmodule &quot;uac_redirect.so&quot;<br>
      loadmodule &quot;dialplan.so&quot;<br>
      loadmodule &quot;auth.so&quot;<br>
      loadmodule &quot;auth_db.so&quot;<br>
      loadmodule &quot;permissions.so&quot;<br>
      <br>
      <br>
      Regards<br>
      <br>
      Javi<br>
      <div class="gmail_quote">On Mon, Dec 6, 2010 at 11:59 AM,
        Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</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"> Hello,
            <div><br>
              <br>
              On 12/6/10 11:08 AM, Javier Gallart wrote:
              <blockquote type="cite">Hello<br>
                <br>
                I haven&#39;t been able to fix this problem yet. Has anyone
                run into a similar issue?<br>
              </blockquote>
            </div>
            is it a clean 64b install, or is a mixed 32b - 64b. I wonder
            if the modules are linked to a different version of the
            library.<br>
            <br>
            I will try to get to a 64b for testing, although I was using
            dialplan on such arch many times with older releases.<br>
            <br>
            Btw, can you paste the list of loaded modules in the config?
            Just to see which ones are using connection to db.<br>
            <br>
            Cheers,<br>
            <font color="#888888"> Daniel</font><br>
          </div>
        </blockquote>
      </div>
    </div></div></blockquote>
    <br><div class="im">
    <pre cols="72">-- 
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
  </div></div>

</blockquote></div><br></div>