This is not valid:<br><br><condition field="is_already_recording" expression!="^true$"/><br><br>I recommend this:<br><br><condition field="${is_already_recording}" expression="^$"/><br>
<br>Try that in place of what you have and re-test. I have a suspicion that it will solve your problem of multiple recordings.<br><br>-MC<br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 6:17 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>Hello world)<br><br>I have session recording extension:<br> <!-- eavesdrop --><br> <extension name="record_3..16_digits" continue="true"><br> <condition field="is_already_recording" expression!="^true$"/><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_COPYRIGHT=(c) 2013"/><br> <action application="set" data="RECORD_SOFTWARE=FreeSwitch"/><br> <action application="set" data="RECORD_ARTIST=FreeSwitch"/><br>
<action application="set" data="RECORD_COMMENT=FreeSwitch"/><br> <action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/><br> <action application="set" data="RECORD_STEREO=true"/><br>
<action application="set" data="recording_follow_transfer=true"/>-<br> <action application="export" data="ignore_early_media=true"/><br> <action application="export" data="execute_on_answer=record_session $${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${caller_id_name}_${caller_id_number}_2_${destination_number}.wav"/> <!-- ///execute_on_media --><br>
<!-- Against repeated execution of condition --><br> <action application="set" data="is_already_recording=true"/><br> <action application="export" data="is_already_recording=true"/><br>
</condition><br> </extension><br>in the very beginnin of my dialplan. But there are some (IVRs with transfer) and (Group number with loopback) in my dialplan. So recording extension is hited multiple times and as a result I have several files with the "same" recorded session (IVR, Group number, Answered subscriber).<br>
<br>What should I do to prohibit repeated hits of "record_3..16_digits" extension?</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>