This is not valid: <condition field="is_already_recording" expression!="^true$"/> I recommend this: <condition field="${is_already_recording}" expression="^$"/> Try that in place of what you have and re-test. I have a suspicion that it will solve your problem of multiple recordings. -MC On Fri, Feb 22, 2013 at 6:17 AM, Dmitriy Shumaev <pm_zefman_r@mail.ru>wrote:
Hello world)
I have session recording extension: <!-- eavesdrop --> <extension name="record_3..16_digits" continue="true"> <condition field="is_already_recording" expression!="^true$"/> <condition field="destination_number" expression="^(\d{3,16})$"> <action application="set" data="RECORD_TITLE=Recording ${caller_id_name} ${caller_id_number} to ${destination_number} at ${strftime(%Y-%m-%d %H:%M)}"/> <action application="set" data="RECORD_COPYRIGHT=(c) 2013"/> <action application="set" data="RECORD_SOFTWARE=FreeSwitch"/> <action application="set" data="RECORD_ARTIST=FreeSwitch"/> <action application="set" data="RECORD_COMMENT=FreeSwitch"/> <action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/> <action application="set" data="RECORD_STEREO=true"/> <action application="set" data="recording_follow_transfer=true"/>- <action application="export" data="ignore_early_media=true"/> <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 --> <!-- Against repeated execution of condition --> <action application="set" data="is_already_recording=true"/> <action application="export" data="is_already_recording=true"/> </condition> </extension> 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).
What should I do to prohibit repeated hits of "record_3..16_digits" extension?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org