i have in dialplan table record

287 14 10 1 ^(.+)\+358 0 ^(.+):\+358(.+) \1:0\2

and when it is applied to uri

Feb 21 08:05:15 sip /usr/sbin/sip-proxy[24071]: INFO: uri 
<sip:+35892345...@test.fi;user=phone>

the resulting uri looks like this:

Feb 21 08:05:15 sip /usr/sbin/sip-proxy[24071]: INFO: uri 
<sip\1:092345...@test.fi;user=phone>

i can't figure out, where \1 comes to the result, because \1 is has
already produced 'sip' to it.

i have added debug to dialplan module and looks like it compiles correct
subst and repl expressions:

Feb 21 08:05:05 sip /usr/sbin/sip-proxy[24067]: INFO: dialplan [dp_db.c:392]: 
parsing repl_exp <\1:0\2>
Feb 21 08:05:05 sip /usr/sbin/sip-proxy[24067]: INFO: dialplan [dp_db.c:404]: 
compilig subst_exp <^(.+):\+358(.+)>

is there some stupid mistake in the expressions or could it be a bug
somewhere?

-- juha

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to