[OpenSIPS-Users] string from avp transformation

Alexey Kazantsev kurgan-rus at inbox.ru
Wed Jan 23 04:05:02 EST 2019


Hi list!

I have AVPs like 
"Shop-0 73522222222 3522"
or
"Office-0  73522222222 3522"

I'd like to extract the middle part from them (73522222222 in these examples).
Something that can see a whitespace as a delimiter
will be great, because the length of words in AVP may differ.

I checked the list of core functions [1], but not sure if there is
something appropriate there.


[1] https://www.opensips.org/Documentation/Script-Tran-2-4

-----------------------------------------------
BR, Alexey
http://alexeyka.zantsev.com/


More information about the Users mailing list