[OpenSIPS-Users] Regex help.

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Mar 20 13:38:25 UTC 2024


Hi,

Use the s.subst [1] transformation to replace any continues set of 
spaces with a semi-colon

[1] https://www.opensips.org/Documentation/Script-Tran-3-4#re.subst

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 12.03.2024 19:18, Stefan Carlsson wrote:
>
> Hi !
>
> What is the easiest form to transform this:
>
> o=SYS   1710262255    1710262255    IN    IP4     123.123.123.123
>
> Into
>
> SYS;1710262255;1710262255;IN;IP4;123.123.123.123
>
> for later retrieval via an index function.
>
> [0] = SYS
>
> [1] = 1710262255
>
> [2] = 1710262255
>
> [3] = IN
>
> etc ….
>
> I need to get my hands on the session parameters …
>
> Thanks in advance …
>
> //S
>
>
> _______________________________________________
> 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/20240320/0d6fca68/attachment.html>


More information about the Users mailing list