<span style="background-color:rgb(255,255,153)"><span style="font-family:courier new,monospace">&lt;!-- eavesdrop --&gt;<br>&lt;extension name=&quot;record_3..16_digits&quot; continue=&quot;true&quot;&gt;<br>&lt;condition field=&quot;${is_already_recording}</span>&quot; expression=&quot;^$&quot;/&gt;<br>
</span><div><span style="font-family:courier new,monospace"><span style="background-color:rgb(255,255,153)">&lt;condition field=&quot;destination_number&quot; expression=&quot;(?!^399|400$)^\d{3,16}?$&quot; &gt;  <span style="background-color:rgb(255,0,0)">&lt;!-- regex#2 --&gt;</span><br>
  &lt;action ... /&gt;<br>&lt;/condition&gt;<br></span><br></span><span style="font-family:courier new,monospace"></span></div>&quot;regex#2&quot;, as written, returns TRUE providing that dest_num matches a &#39;\d{3,16} pattern but is NOT 399 or 400.  Therefore,<br>
<br>399 = false<br>400 = false<br>4001 = true<br>4005551212 = true<br>416 = true<br>4165551212 = true<br>1234 = true<br>ANONYMOUS = false<br><br>There is very, very little that CANNOT be done with native regex.<br><br>If you need me to &quot;explain&quot; the regex construction, let me know.<br>
<br>Cheers,<br>/Scott<br><span style="background-color:rgb(153,153,153)"><span style></span></span><br><br><br><br><br><div class="gmail_quote">On 26 February 2013 03:01, Dmitriy Shumaev <span dir="ltr">&lt;<a href="mailto:pm_zefman_r@mail.ru" target="_blank">pm_zefman_r@mail.ru</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi<br><br>I want to record all sessions, except calls to group numbers and to IVR. So I need something like:<br> &lt;!-- eavesdrop --&gt;<br> &lt;extension name=&quot;record_3..16_digits&quot; continue=&quot;true&quot;&gt;<br>
   &lt;condition field=&quot;${is_already_recording}&quot; expression=&quot;^$&quot;/&gt;<br>   &lt;condition field=&quot;destination_number&quot; expression!=&quot;^(400)$&quot;/&gt;  &lt;!--NOT EQUAL--&gt;&lt;!-- IVR --&gt;<br>
   &lt;condition field=&quot;destination_number&quot; expression!=&quot;^(399)$&quot;/&gt;  &lt;!--NOT EQUAL--&gt;&lt;!-- Group number --&gt;<br>   &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{3,16})$&quot;&gt;<br>
 &lt;action application=&quot;set&quot; data=&quot;RECORD_TITLE=Recording ${caller_id_name} ${caller_id_number} to ${destination_number} at ${strftime(%Y-%m-%d %H:%M)}&quot;/&gt;<br> &lt;action application=&quot;set&quot; data=&quot;RECORD_STEREO=true&quot;/&gt;<br>
 &lt;action application=&quot;export&quot; data=&quot;ignore_early_media=true&quot;/&gt;<br> &lt;action application=&quot;set&quot; data=&quot;media_bug_answer_req=true&quot;/&gt;<br> &lt;action application=&quot;record_session&quot; data=&quot;$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${caller_id_name}_${caller_id_number}_2_${destination_number}.mp3&quot;/&gt;<br>
 &lt;action application=&quot;export&quot; data=&quot;is_already_recording=true&quot;/&gt;<br>   &lt;/condition&gt;<br> &lt;/extension&gt;<br>. <span>But the syntax</span> <span>of condition </span><span>does not allow the</span> <span>operator &quot;</span><span>not equal&quot; or &quot;!=&quot;. What should I do?<br>
<br><br>With best regards, Shumaev DA, KBR Ltd.</span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>