<div dir="ltr">A simple array check with lua, or a sql lookup with lua or mod_odbc_query from the git contrib would probably make this easy.<div>-Avi<br><br><div class="gmail_quote">On Wed, Jul 13, 2011 at 12:35 AM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">If you need to test this many numbers then you are better of with something other than regular expressions. I would investigate mod_xml_curl or mod_lcr. An alternative would be to write a small Lua script that checks the destination_number against a list.<div>
<br></div><div>-MC<br><br><div class="gmail_quote">On Tue, Jul 12, 2011 at 12:31 PM, Mario G <span dir="ltr"><<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">I am trying to find an easy way to test multiple numbers in a condition without putting all the numbers on one line. There can be 25 numbers or more. Preferably have comments. I looked at many web sites on XML, etc. but could not find a way to continue lines. Freeswitch treats everything in the expression including all spaces as part of the expression. Anyone know of a good way to do this? Thanks,</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">Mario G</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="color:#b72800"><</span>extension name=<span style="color:#9431c0">"out.group1"></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(148, 49, 192)">
<span style="color:#000000"> </span><span style="color:#b72800"><</span><span style="color:#000000">condition field=</span>"${destination_number_w}"<span style="color:#000000"> expression=</span>"^1111111111| <!-- joe --></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(148, 49, 192)"> 2222222222|3333333333| <!-- jon --></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(148, 49, 192)">
4444444444|5555555555 <!-- pam --></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(148, 49, 192)"> $"<span style="color:#b72800">></span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> <span style="color:#b72800"><</span>action application=<span style="color:#9431c0">"set"</span> data=<span style="color:#9431c0">"destination_number_w=1$1"</span><span style="color:#b72800">/></span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(148, 49, 192)"><span style="color:#000000"> </span><span style="color:#b72800"><</span><span style="color:#000000">action application=</span>"bridge"<span style="color:#000000"> data=</span>"sofia/gateway/group1/1$1"<span style="color:#b72800">/></span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> <span style="color:#b72800"></</span>condition<span style="color:#b72800">></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="color:#b72800"></</span>extension<span style="color:#b72800">></span></div><div><span style="color:#b72800"><br></span></div></div><br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>