Hello,
I have problems with rewriting $rU. Kamailio 3.0.1 on debian squeeze x86_64
In config file I have:
$avp(s:dnumber) = $(ru{re.subst,/^sip:*99*(.*)@.*/\1/}); $rU=$avp(s:dnumber);
And log file shows following warnings:
Jul 5 17:22:30 voice /usr/sbin/kamailio[23641]: WARNING: <core> [rvalue.c:987]: automatic string to int conversion for "sip:1234567890@voice.serv.net" failed Jul 5 17:22:30 voice /usr/sbin/kamailio[23641]: WARNING: <core> [rvalue.c:1839]: rval expression conversion to int failed (630,22-630,23)
Could you please show any samples how to change $rU with regexp matched part of $rU ?
BR, Dmitri