Remove the destination number condition and exchange the $1 for the destination_number variable.

This commit is contained in:
markjcrane 2015-12-08 09:13:56 -07:00
parent c675f2b9b3
commit faff738b1c
1 changed files with 2 additions and 3 deletions

View File

@ -1,10 +1,9 @@
<context name="{v_context}">
<extension name="local_extension" number="[ext]" continue="false" app_uuid="71cf1310-b6e3-415b-8745-3cbdc8e15212">
<condition field="user_exists" expression="true"/>
<condition field="destination_number" expression="(^.*$|^\d{2,7}$)">
<!--<action application="pre_answer"/>-->
<action application="export" data="dialed_extension=$1" inline="true"/>
<action application="limit" data="hash ${domain_name} $1 ${limit_max} ${limit_destination}" inline="false" />
<action application="export" data="dialed_extension=${destination_number}" inline="true"/>
<action application="limit" data="hash ${domain_name} ${destination_number} ${limit_max} ${limit_destination}" inline="false" />
</condition>
<!--Allow transfer/record only for internal users-->