<font size="1"><span style="font-family:courier new,monospace"><!-- eavesdrop --><br><extension name="record_3..16_digits" continue="true"><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"><condition field="destination_number" expression="^<font size="1">399|400</font>$" break="never"></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"> <action application="set" data="record_me=false" inline="true"/><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"> <anti-action application="set" data="record_me=true"</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="true"</span></font></font></span></font></span></font></font></span></font>/><br>
</span></font></font></span></font></span></font></font></span></font><font size="1"> <<font size="1">/condi<font size="1">tion><br><br></font></font></font></span></font></font> <condition field="${is_already_recording}</span><span style="font-family:courier new,monospace">" expression="^$"/><br>
<font size="1"><font size="1"> <condition field="${record_me}" expression="^true$"/></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"> <condition field="destination_number" expression="^(\d{3,16})$"><br>
<action
application="set" data="RECORD_TITLE=Recording ${caller_id_name}
${caller_id_number} to ${destination_number} at ${strftime(%Y-%m-%d
%H:%M)}"/><br> <action application="set" data="RECORD_STEREO=true"/><br> <action application="export" data="ignore_early_media=true"</span></font><font size="1"><span style="font-family:courier new,monospace">/><br>
<action application="set" data="media_bug_answer_req=</span></font><font size="1"><span style="font-family:courier new,monospace">true"/><br> <action application="record_session" data="$${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"/><br>
<action application="export" data="is_already_recording=</span></font><font size="1"><span style="font-family:courier new,monospace">true"/><br> </condition><br></extension><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"><<a href="mailto:pm_zefman_r@mail.ru" target="_blank">pm_zefman_r@mail.ru</a>></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> <!-- eavesdrop --><br> <extension name="record_3..16_digits" continue="true"><br>
<condition field="${is_already_recording}" expression="^$"/><br> <condition field="destination_number" expression!="^(400)$"/> <!--NOT EQUAL--><!-- IVR --><br>
<condition field="destination_number" expression!="^(399)$"/> <!--NOT EQUAL--><!-- Group number --><br> <condition field="destination_number" expression="^(\d{3,16})$"><br>
<action application="set" data="RECORD_TITLE=Recording ${caller_id_name} ${caller_id_number} to ${destination_number} at ${strftime(%Y-%m-%d %H:%M)}"/><br> <action application="set" data="RECORD_STEREO=true"/><br>
<action application="export" data="ignore_early_media=true"/><br> <action application="set" data="media_bug_answer_req=true"/><br> <action application="record_session" data="$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${caller_id_name}_${caller_id_number}_2_${destination_number}.mp3"/><br>
<action application="export" data="is_already_recording=true"/><br> </condition><br> </extension><br>. <span>But the syntax</span> <span>of condition </span><span>does not allow the</span> <span>operator "</span><span>not equal" or "!=". 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>