[SR-Users] extract part of string / INVITE

Oliver Roth oliver.roth at triotel.ch
Wed Nov 13 12:13:24 CET 2013

Hi all

I need to extract a part of the INVITE msg:

INVITE sip:+41796159999 at;user=CSC10824 SIP/2.0

I need
in a avp variable.

Is there a regex function where I can extract this? Or how can this be done?

Something like:
Avp(myCSC) = string after CSC - length 5
Please be aware, that ip and destination number in the invite can change ...
Otherwise substring would be a solution.

Thanks for help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131113/3e5a4543/attachment.html>

More information about the sr-users mailing list