Fix valet_park use sip_refer_to
The referred-by domain can't be used as some phones use the domain of the tenant and some their own IP address. For this reason, replaced with sip_refer_to.
This commit is contained in:
parent
8ce9643901
commit
bb2232e62d
|
|
@ -1,8 +1,11 @@
|
|||
<extension name="valet_park" number="park+*5901-*5999" context="${domain_name}" continue="false" app_uuid="3cc8363d-5ce3-48aa-8ac1-143cf297c4f7" enabled="true" order="470">
|
||||
<condition field="destination_number" expression="^(park)?\+?\*(59(0[1-9]|[1-9][0-9]))$" break="never"/>
|
||||
<condition field="${sip_refer_to}" expression="^.+$" break="never"/>
|
||||
<condition field="${sip_refer_to}" expression="sip:(.*)@(.*?)(?::\d+)?\>" break="never">
|
||||
<action application="set" data="referred_by_host=$2" inline="true"/>
|
||||
</condition>
|
||||
<condition field="${sip_h_Referred-By}" expression="sip:(.*)@(.*?)(?::\d+)?\>" break="never">
|
||||
<action application="set" data="referred_by_user=$1" inline="true"/>
|
||||
<action application="set" data="referred_by_host=$2" inline="true"/>
|
||||
</condition>
|
||||
<condition field="destination_number" expression="^(park)?\+?\*(59(0[1-9]|[1-9][0-9]))$" break="never"/>
|
||||
<condition field="${referred_by_user}" expression="^.+$" break="never">
|
||||
|
|
|
|||
Loading…
Reference in New Issue