Hi Rik,
thanks a lot. It works!
[ $(fU{s.substr,1,0}{s.int}) & 1 ]
Malte
On 04/09/2025 19:24, Richard Robson wrote:
Hi,
Use string manipulation to remove the leading +
https://www.opensips.org/Documentation/Script-Tran-3-6#toc6
Regard,
Rik
On 04/09/2025 17:58, Sipwise Mailinglist wrote:
Hi guys,
I need to add a "Generic number" parameter to an ISUP IAM message. To
set the odd/even indicator I need to check the parity of the From
number.
I would like to check this with an bitwise AND. I cannot use $fU
directly for this operation, because it preserves the leading + from
the E.164 number.
Is there a way to grab the username part without the + or strip the
leading + from $fU and write the output to a variable?
Thanks in advance,
Malte
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users