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'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 "mi dp_translate" 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 "01123456789"</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'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 => output 0023456789</div>
</div><div><br></div><div>,whereas the mi command output is:</div><div><div>sercmd> mi dp_translate 1 "01123456789"</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 "01123456789" 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"><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>></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'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's a clean 64 bit instalallation. This is the list of loaded
modules:<br>
loadmodule "db_mysql.so"<br>
#!endif<br>
<br>
loadmodule "db_postgres.so"<br>
loadmodule "mi_fifo.so"<br>
loadmodule "debugger.so"<br>
loadmodule "kex.so"<br>
loadmodule "tm.so"<br>
loadmodule "tmx.so"<br>
loadmodule "sl.so"<br>
loadmodule "rr.so"<br>
loadmodule "pv.so"<br>
loadmodule "avpops.so"<br>
loadmodule "maxfwd.so"<br>
loadmodule "usrloc.so"<br>
loadmodule "registrar.so"<br>
loadmodule "textops.so"<br>
loadmodule "textopsx.so"<br>
loadmodule "siputils.so"<br>
loadmodule "xlog.so"<br>
loadmodule "sanity.so"<br>
loadmodule "ctl.so"<br>
loadmodule "mi_rpc.so"<br>
loadmodule "acc.so"<br>
loadmodule "cfgutils.so"<br>
loadmodule "sqlops.so"<br>
loadmodule "htable.so"<br>
loadmodule "db_flatstore.so"<br>
loadmodule "uac_redirect.so"<br>
loadmodule "dialplan.so"<br>
loadmodule "auth.so"<br>
loadmodule "auth_db.so"<br>
loadmodule "permissions.so"<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"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></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'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>