mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use api_on_answer and fix inbound call mask and unmask
- Used api_on_answer so that the recording only starts when the call is answered. Should save diskspace and prevent the need for using action: ringback. - Added 'both,self' to the end of the bind_digit_action to fix inbound call mask.
This commit is contained in:
@@ -47,11 +47,11 @@
|
||||
<action application="set" data="record_name=${uuid}.${record_ext}" inline="true"/>
|
||||
<!--<action application="set" data="record_name=${destination_number}-${caller_id_number}_${strftime(%Y-%m-%d %H:%M)}.${record_ext}" inline="true"/>-->
|
||||
<action application="set" data="recording_follow_transfer=true" inline="true"/>
|
||||
<action application="bind_digit_action" data="local,*5,api:uuid_record,${uuid} mask ${recordings_dir}/${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext},${bind_target}"/>
|
||||
<action application="bind_digit_action" data="local,*6,api:uuid_record,${uuid} unmask ${recordings_dir}/${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext},${bind_target}"/>
|
||||
<action application="bind_digit_action" data="local,*5,api:uuid_record,${uuid} mask ${recordings_dir}/${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext},both,self"/>
|
||||
<action application="bind_digit_action" data="local,*6,api:uuid_record,${uuid} unmask ${recordings_dir}/${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext},both,self"/>
|
||||
<action application="set" data="record_append=true" inline="true"/>
|
||||
<action application="set" data="record_in_progress=true" inline="true"/>
|
||||
<action application="set" data="${uuid_record ${uuid} start ${record_path}/${record_name}}" inline="false"/>
|
||||
<action application="set" data="api_on_answer=uuid_record ${uuid} start ${record_path}/${record_name}" inline="false"/>
|
||||
</condition>
|
||||
</extension>
|
||||
</context>
|
||||
|
||||
Reference in New Issue
Block a user