mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Simplify the page dialplan.
This commit is contained in:
@@ -1,33 +1,12 @@
|
||||
<context name="{v_context}">
|
||||
<extension name="page" number="*724" continue="false" app_uuid="2011c518-696d-4878-a9b2-b217b6311311" enabled="false">
|
||||
<condition field="destination_number" expression="^\*724$" break="never" />
|
||||
<condition field="${sip_h_Referred-By}" expression="sip:(.*)@.*" break="never">
|
||||
<action application="set" data="referred_by_user=$1" inline="true"/>
|
||||
<action application="log" data="INFO referred_by_user is [${referred_by_user}]"/>
|
||||
<action application="log" data="INFO sip_h_Referred-By is [${sip_h_Referred-By}]"/>
|
||||
|
||||
<anti-action application="set" data="referred_by_user=false" inline="true"/>
|
||||
<anti-action application="log" data="INFO referred_by_user is [${referred_by_user}]"/>
|
||||
<anti-action application="log" data="INFO sip_h_Referred-By is [${sip_h_Referred-By}]"/>
|
||||
</condition>
|
||||
<condition field="destination_number" expression="^\*724$" />
|
||||
<condition field="${referred_by_user}" expression="false" break="never">
|
||||
<action application="set" data="was_transfered_to_page=false" inline="true"/>
|
||||
<action application="log" data="INFO was_transfered_to_page is [${was_transfered_to_page}]"/>
|
||||
<anti-action application="set" data="was_transfered_to_page=true" inline="true"/>
|
||||
<anti-action application="log" data="INFO was_transfered_to_page is [${was_transfered_to_page}]"/>
|
||||
</condition>
|
||||
<condition field="destination_number" expression="^\*724$" break="never" >
|
||||
<action application="log" data="INFO was_transfered_to_page is [${was_transfered_to_page}]"/>
|
||||
</condition>
|
||||
<condition field="${was_transfered_to_page}" expression="true" break="never">
|
||||
<action application="transfer" data="${referred_by_user} XML ${context}"/>
|
||||
|
||||
<anti-action application="set" data="caller_id_name=Page" />
|
||||
<anti-action application="set" data="caller_id_number=" />
|
||||
<anti-action application="set" data="pin_number=" />
|
||||
<anti-action application="set" data="destinations=100-103" />
|
||||
<anti-action application="lua" data="page.lua" />
|
||||
<condition field="destination_number" expression="^\*724$" >
|
||||
<action application="set" data="caller_id_name=Page" />
|
||||
<action application="set" data="caller_id_number=" />
|
||||
<action application="set" data="pin_number=" />
|
||||
<action application="set" data="extension_list=101-103,105" />
|
||||
<action application="lua" data="page.lua" />
|
||||
</condition>
|
||||
</extension>
|
||||
</context>
|
||||
</context>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user