I also get the same result while executing kamctl fifo dp_translate 10
123456789
500 command 'dp_translate' failed
Probably is there other way to check why kamailio does not use the rule
properly?
On Thu, Dec 30, 2010 at 7:35 AM, Juha Heinanen <jh(a)tutpro.com> wrote:
Daniel-Constantin Mierla writes:
could be because mi function returns null --
mi_translate returns 0 in
couple of cases. Can you run with higher debug level and send the
output?
looks like dp_translate does not get the second argument correctly or
alternatively there is a problem with the debug message:
# sip-proxy_ctl mi_dg dp_translate 10 9958814084445555
error: 500 - execution failed
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: ctl
[../../io_wait.h:390]: DBG: io_watch_add(0xb72d3860, 16, 3, 0x8541f48),
fd_no=1
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: ctl
[io_listener.c:452]: handle_stream read: new connection (1) on
/tmp/sip-proxy_ctl
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: dialplan
[dp_repl.c:308]: regex operator testing
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: dialplan
[dp_repl.c:308]: regex operator testing
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: dialplan
[dp_repl.c:308]: regex operator testing
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: dialplan
[dp_repl.c:308]: regex operator testing
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: dialplan
[dp_repl.c:308]: regex operator testing
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: dialplan
[dp_repl.c:308]: regex operator testing
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: dialplan
[dp_repl.c:308]: regex operator testing
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: dialplan
[dp_repl.c:337]: no matching rule
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: dialplan
[dialplan.c:537]: could not translate 2147483647 with dpid 10
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: ctl
[io_listener.c:505]: handle_stream read: eof on /tmp/sip-proxy_ctl
Dec 30 08:33:28 sip /usr/sbin/sip-proxy[17355]: DEBUG: ctl
[../../io_wait.h:617]: DBG: io_watch_del (0xb72d3860, 16, -1, 0x10) fd_no=2
called
-- juha