[SR-Users] Regex question

Oliver Roth oliver.roth at triotel.ch
Sun Nov 3 20:31:00 CET 2013

Hi all

Maybe a very simple question - but I cannot see the solution - I am more or less newbie ;)

I need to do some string operations in kamailio.cfg.
How can I get the cli from the following string:
sip:+41523940347 at;user=phone

I only  would need  +41523940347 in a variable

Something like

$avp(s:myCli) = ^sip:\+(\d{11})@.{1,40}$

Any idea?

Thanks in advance

More information about the sr-users mailing list