Update 505_call-forward-all.xml

Use tab for indentation, use CDATA for the sip_h_Diversion header, and then add an attribute for enabled.
This commit is contained in:
FusionPBX
2021-01-25 10:08:16 -07:00
committed by GitHub
parent 6f878f7a89
commit 515603db3b

View File

@@ -1,9 +1,11 @@
<context name="${domain_name}">
<extension name="call-forward-all" number="" app_uuid="57cf8f1f-9a2e-4996-bd80-d9300249b1ca" global="true" order="505">
<condition field="${user_exists}" expression="true"/>
<condition field="${forward_all_enabled}" expression="true">
<action application="export" data="sip_h_Diversion=&lt;sip:${caller_destination}@${external_sip_ip}:5060&gt;;reason=unconditional"/>
<action application="transfer" data="${forward_all_destination} XML ${domain_name}"/>
</condition>
</extension>
<extension name="call-forward-all" number="" app_uuid="57cf8f1f-9a2e-4996-bd80-d9300249b1ca" global="true" order="505">
<condition field="${user_exists}" expression="true"/>
<condition field="${forward_all_enabled}" expression="true">
<action application="export" data="sip_h_Diversion=&lt;![CDATA[&lt;sip:${caller_destination}@${external_sip_ip}:5060&gt;;reason=unconditional]]&gt;" inline="true" enabled="false"/>
<action application="set" data="outbound_caller_id_name=${user_data ${destination_number}@${domain_name} var outbound_caller_id_name}" inline="true" enabled="false"/>
<action application="set" data="outbound_caller_id_number=${user_data ${destination_number}@${domain_name} var outbound_caller_id_number}" inline="true" enabled="false"/>
<action application="transfer" data="${forward_all_destination} XML ${domain_name}"/>
</condition>
</extension>
</context>