[OpenSIPS-Users] string from avp transformation

Aqs Younas aqsyounas at gmail.com
Wed Jan 23 04:14:45 EST 2019


I think below function will do the trick.  Use space as delimiter.

https://www.opensips.org/Documentation/Script-Tran-2-4#toc6

Best Regards,

Aqs

On Wed, 23 Jan 2019 at 14:07, Alexey Kazantsev via Users <
users at lists.opensips.org> wrote:

> 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/
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190123/33ce2c3f/attachment.html>


More information about the Users mailing list