[OpenSIPS-Users] switch statment

volga629 at networklab.ca volga629 at networklab.ca
Tue Nov 12 21:14:09 EST 2019


Thank you fixed.
volga629


On Mon, Nov 11, 2019 at 10:00, Răzvan Crainea <razvan at opensips.org> 
wrote:
> 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 <mailto: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 
> <http://www.opensips-solutions.com/>
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto: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/20191112/a0084e2d/attachment.html>


More information about the Users mailing list