[OpenSIPS-Users] switch statment
Răzvan Crainea
razvan at opensips.org
Mon Nov 11 03:00:53 EST 2019
Hi, Volga!
Switch statements don't work with regular expressions, only with string
and int comparison. If you need to do regex matching, you need to use
multiple ifs.
Best regards,
Răzvan
On 11/11/19 3:34 AM, volga629 via Users wrote:
> Hello Everyone,
> Using latest version 3.0.1 can't match switch statement based on $rU.
>
> Here are example
>
> https://paste.fedoraproject.org/paste/bFBAnYJYly-5PRSmNPKVtg
>
>
>
> Debug output
>
> Nov 11 02:16:45 dev1-fr /usr/sbin/opensips[30243]: [MESSAGE] Sending to
> outside provider ~> [3845637810]
> Nov 11 02:16:45 dev1-fr /usr/sbin/opensips[30243]: SMS_ROUTE: Got
> 3845637810 looking for correct sms gateway
> Nov 11 02:16:45 dev1-fr /usr/sbin/opensips[30243]: DBG:core:do_action:
> switch: running default statement
> Nov 11 02:16:45 dev1-fr /usr/sbin/opensips[30243]: Unknown destination
> number
>
>
> Any help thank you volga629
>
>
> **
> **
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
More information about the Users
mailing list