Enable *72 in addition to the *72(2-20) digits

Some people were used to *72 original behavior then at some point someone added *72 followed by 2 - 20 digits. However to make everyone happy both of these can co-exist.
This commit is contained in:
FusionPBX 2022-01-19 15:27:17 -07:00 committed by GitHub
parent d4ab7ed9bf
commit 28c28fab84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,11 @@
<action application="set" data="enabled=true"/>
<action application="lua" data="call_forward.lua $1"/>
</condition>
<condition field="destination_number" expression="^\*72" break="on-true">
<action application="set" data="request_id=false"/>
<action application="set" data="enabled=true"/>
<action application="lua" data="call_forward.lua"/>
</condition>
<condition field="destination_number" expression="^\*73$" break="on-true">
<action application="set" data="request_id=false"/>
<action application="set" data="enabled=false"/>