Allow call forwarding to be enabled and set by argument in INVITE. Useful for softkey on hard phones. (#3035)

This commit is contained in:
afanucchi
2018-04-27 16:44:43 +10:00
committed by FusionPBX
parent 764a7a3c76
commit 0983f3ec97
2 changed files with 11 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
<context name="{v_context}">
<extension name="call-forward" number="*72,*73,*74" continue="false" app_uuid="b4b32fb4-0181-4876-9bec-b9dff1299d60" enabled="true">
<condition field="destination_number" expression="^\*72$" break="on-true">
<condition field="destination_number" expression="^\*72(\d*)$" break="on-true">
<action application="set" data="request_id=false"/>
<action application="set" data="enabled=true"/>
<action application="lua" data="call_forward.lua"/>
<action application="lua" data="call_forward.lua $1"/>
</condition>
<condition field="destination_number" expression="^\*73$" break="on-true">
<action application="set" data="request_id=false"/>