<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I was trying to avoid adding more software to OS X and having to learn new stuff just for a couple of groups of numbers... I tried many things and the best I could do was put them all on on line with a comment below for each name. Thanks.<div><br><div><div>On Jul 12, 2011, at 3:12 PM, Avi Marcus wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</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">&lt;<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>&gt;</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">


&nbsp;&nbsp;<span style="color:#b72800">&lt;</span>extension name=<span style="color:#9431c0">"out.group1"&gt;</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">&nbsp; &nbsp; </span><span style="color:#b72800">&lt;</span><span style="color:#000000">condition field=</span>"${destination_number_w}"<span style="color:#000000"> expression=</span>"^1111111111| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- joe --&gt;</div>


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(148, 49, 192)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2222222222|3333333333|&nbsp; &lt;!-- jon --&gt;</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(148, 49, 192)">


&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4444444444|5555555555&nbsp;&nbsp; &lt;!-- pam --&gt;</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(148, 49, 192)">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $"<span style="color:#b72800">&gt;</span></div>


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">&nbsp; &nbsp; &nbsp; <span style="color:#b72800">&lt;</span>action application=<span style="color:#9431c0">"set"</span> data=<span style="color:#9431c0">"destination_number_w=1$1"</span><span style="color:#b72800">/&gt;</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">&nbsp; &nbsp; &nbsp; </span><span style="color:#b72800">&lt;</span><span style="color:#000000">action application=</span>"bridge"<span style="color:#000000"> data=</span>"sofia/gateway/group1/1$1"<span style="color:#b72800">/&gt;</span></div>


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">&nbsp; &nbsp; <span style="color:#b72800">&lt;/</span>condition<span style="color:#b72800">&gt;</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">


&nbsp; <span style="color:#b72800">&lt;/</span>extension<span style="color:#b72800">&gt;</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>
_______________________________________________<br>Join us at ClueCon 2011, Aug 9-11, Chicago<br><a href="http://www.cluecon.com">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>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>