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