<font size="1"><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><font size="1">  </font></span></font><font size="1"><span style="font-family:courier new,monospace"><font size="1"><font size="1"><span style="font-family:courier new,monospace">&lt;condition field=&quot;destination_number&quot; expression=&quot;^<font size="1">399|400</font>$&quot; break=&quot;never&quot;&gt;</span></font></font></span></font><br>
<font size="1"><span style="font-family:courier new,monospace"><font size="1"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><font size="1"><span style="font-family:courier new,monospace">    &lt;action application=&quot;set&quot; data=&quot;record_me=false&quot; inline=&quot;true&quot;/&gt;<br>
</span></font></font></span></font></span></font></font></span></font><font size="1"><span style="font-family:courier new,monospace"><font size="1"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><font size="1"><span style="font-family:courier new,monospace">    &lt;anti-action application=&quot;set&quot; data=&quot;record_me=true&quot;</span></font></font></span></font></span></font></font></span></font></span></font></font></span></font><font size="1"><span style="font-family:courier new,monospace"><font size="1"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><span style="font-family:courier new,monospace"><font size="1"><font size="1"><span style="font-family:courier new,monospace"> inline=&quot;true&quot;</span></font></font></span></font></span></font></font></span></font>/&gt;<br>
</span></font></font></span></font></span></font></font></span></font><font size="1">  &lt;<font size="1">/condi<font size="1">tion&gt;<br><br></font></font></font></span></font></font>  &lt;condition field=&quot;${is_already_recording}</span><span style="font-family:courier new,monospace">&quot; expression=&quot;^$&quot;/&gt;<br>
<font size="1"><font size="1">  &lt;condition field=&quot;${record_me}&quot; expression=&quot;^true$&quot;/&gt;</font></font><br></span></font><div><font size="1"><span style="font-family:courier new,monospace"></span></font><font size="1"><span style="font-family:courier new,monospace">  &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;</span></font><font size="1"><span style="font-family:courier new,monospace">/&gt;<br>
   &lt;action application=&quot;set&quot; data=&quot;media_bug_answer_req=</span></font><font size="1"><span style="font-family:courier new,monospace">true&quot;/&gt;<br>   &lt;action application=&quot;record_session&quot; data=&quot;$${base_dir}/recordings/</span></font><font size="1"><span style="font-family:courier new,monospace">archive/${strftime(%Y-%m-%d-%</span></font><font size="1"><span style="font-family:courier new,monospace">H-%M-%S)}_${caller_id_name}_${</span></font><font size="1"><span style="font-family:courier new,monospace">caller_id_number}_2_${</span></font><font size="1"><span style="font-family:courier new,monospace">destination_number}.mp3&quot;/&gt;<br>
   &lt;action application=&quot;export&quot; data=&quot;is_already_recording=</span></font><font size="1"><span style="font-family:courier new,monospace">true&quot;/&gt;<br>  &lt;/condition&gt;<br>&lt;/extension&gt;<br></span></font><br>
</div>try that and report back...<br>-MC<br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 12:01 AM, 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><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>