<extension name="simple_bridge">
<condition field="destination_number" expression="(....)$">
<action application="set" data="recording_follow_transfer=false"/>
<action application="export" data="RECORD_STEREO=false"/>
<action application="set" data="current_record_path=$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
<action application="record_session" data="${current_record_path}"/>
<action application="bridge" data="user/$1"/>
</condition>
</extension>
I need the recording to stop after each transfer, but after transfer, recording will not stop and there will be two recorded files and the first one records the second call too!