Add an option to keep the original caller id name and number.

This commit is contained in:
FusionPBX 2022-06-28 17:43:17 -06:00 committed by GitHub
parent be841cd17a
commit b8f70a6cb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@
<condition field="${follow_me_enabled}" expression="^true$">
<action application="set" data="outbound_caller_id_name=${user_data ${destination_number}@${domain_name} var outbound_caller_id_name}" inline="true" enabled="false"/>
<action application="set" data="outbound_caller_id_number=${user_data ${destination_number}@${domain_name} var outbound_caller_id_number}" inline="true" enabled="false"/>
<action application="set" data="outbound_caller_id_name=${caller_id_name}" inline="true" enabled="true"/>
<action application="set" data="outbound_caller_id_number=${caller_id_number}" inline="true" enabled="true"/>
<action application="unset" data="call_timeout" inline="true"/>
<action application="lua" data="app.lua follow_me"/>
</condition>