Hi all

 

I need to extract a part of the INVITE msg:

 

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

 

I need

10824

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

Oli