[SR-Users] $rU rewrite problem
Alex Balashov
abalashov at evaristesys.com
Mon Jul 5 16:52:37 CEST 2010
Dmitri,
Why not do this instead?
if($rU =~ "^99")
strip(2);
--
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/
On Jul 5, 2010, at 10:38 AM, Dmitri Korotkov
<dmitri.korotkov at festart.ee> wrote:
> 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 at 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
>
> _______________________________________________
> 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
More information about the sr-users
mailing list