Files
fusionpbx/app/dialplans/resources/switch/conf/dialplan/030_is_loopback.xml
konradSC 9727035305 Marker for identifying call as follow-me loopback (#3977)
* Marker for identifying call as follow-me loopback

We need a way of the dialplan identifying calls that are generated by follow-me using loopback. This setting couple with a dialplan statement allows us to identify and set proper caller-id-name/number.

* Create 030_is_loopback.xml

Are you a follow_me call that is using the loopback interface? 
Ok then, are you a user on the system? 
Yes, ok. Let's set your outbound_caller_id_name and outbound_caller_id_number so that you show up correctly. 
Thanks.
2019-02-18 18:41:24 -07:00

12 lines
719 B
XML

<context name="${domain_name}">
<extension name="is_loopback" number="" app_uuid="1dcf888f-c367-46b7-b809-f2de918c266c" global="true">
<condition field="${is_follow_me_loopback}" expression="true">
<action application="set" data="from_orig_user_exists=${user_exists id ${username} ${domain_name}}" inline="true"/>
</condition>
<condition field="${from_orig_user_exists}" expression="^true$">
<action application="set" data="outbound_caller_id_number=${user_data ${username}@${domain} var outbound_caller_id_number}" inline="true"/>
<action application="set" data="outbound_caller_id_name=${user_data ${username}@${domain} var outbound_caller_id_name}" inline="true"/>
</condition>
</extension>
</context>