[sr-dev] mi dp_translate fails

Juha Heinanen jh at tutpro.com
Sat Apr 3 09:58:21 CEST 2010


while trying to figure out, why 'mi dp_reload' does not work, i also
noticed that 'mi dp_translate' fails too (for another reason) if input
starts with 0.

for example,

mi dp_translate 1001 03456

does not match to match_exp ^03.  the reason is that mi operation
strips 0 from 03456 giving to dp translate function this:

Apr  3 10:56:21 localhost /usr/sbin/sip-proxy[31822]: INFO: dialplan [dp_repl.c:292]: input 3456

if i try with string

mi dp_translate 1001 "03456"

translate fails too, because now also quotes are included in the input:

Apr  3 10:57:11 localhost /usr/sbin/sip-proxy[31822]: INFO: dialplan [dialplan.c:540]: input is "03456"

any suggestions on how to fix this?

-- juha



More information about the sr-dev mailing list