[SR-Users] fifo dp_translate
Daniel-Constantin Mierla
miconda at gmail.com
Fri Dec 31 00:21:52 CET 2010
On 12/30/10 7:35 AM, Juha Heinanen 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
can you try with kamctl via fifo?
kamctl fifo dp_translate 10 9958814084445555
Or, if your tool is using sercmd to send the dp_translate command, try
prefixing the parameter with 's:' to tell is string (see 'sercmd -h' for
more - it tries to auto-detect and convert numbers).
Also, I just committed a small patch to master in order to improve the
debugging, if you can try it, then it will be sure if the parameter is
read ok or (very unlikely) altered inside translation.
Cheers,
Daniel
> 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
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
http://www.asipto.com
More information about the sr-users
mailing list