Create 045_call_recording_on_demand.xml

This commit is contained in:
FusionPBX
2019-12-19 16:59:15 -07:00
committed by GitHub
parent 7a388667c9
commit b960a2b4af

View File

@@ -0,0 +1,14 @@
<context name="{v_context}">
<extension name="bind_digit_action" number="" continue="true" app_uuid="7e007a4d-886b-4cdf-81f4-da9eb4689f1c" enabled="false" order="85">
<condition field="${sip_authorized}" expression="true" break="never">
<action application="set" data="bind_target=both" inline="true"/>
<!-- set to peer to prevent manipulate of call by caller -->
<anti-action application="set" data="bind_target=peer" inline="true"/>
</condition>
<condition>
<action application="bind_digit_action" data="local,*2,exec:record_session,$${recordings_dir}/${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext},${bind_target}"/>
<action application="digit_action_set_realm" data="local"/>
</condition>
</extension>
</context>