<div id="geary-body" dir="auto"><div>Thank you fixed.</div><div>volga629</div><div><br></div></div><div id="geary-quote" dir="auto"><br>On Mon, Nov 11, 2019 at 10:00, Răzvan Crainea <razvan@opensips.org> wrote:<br><blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">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:
<blockquote>Hello Everyone,
Using latest version 3.0.1 can't match switch statement based on $rU.
Here are example
<a href="https://paste.fedoraproject.org/paste/bFBAnYJYly-5PRSmNPKVtg">https://paste.fedoraproject.org/paste/bFBAnYJYly-5PRSmNPKVtg</a>
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
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</blockquote>
<div>--
</div>Răzvan Crainea
OpenSIPS Core Developer
<a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</div></blockquote></div>