From d8e1f249b648bbf81e1002fccc9c9c55cef3a279 Mon Sep 17 00:00:00 2001 From: konradSC Date: Mon, 18 Feb 2019 20:41:24 -0500 Subject: [PATCH] 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. --- app/calls/resources/classes/follow_me.php | 1 + .../switch/conf/dialplan/030_is_loopback.xml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 app/dialplans/resources/switch/conf/dialplan/030_is_loopback.xml diff --git a/app/calls/resources/classes/follow_me.php b/app/calls/resources/classes/follow_me.php index 0d9058f2d8..a2bc5923cd 100644 --- a/app/calls/resources/classes/follow_me.php +++ b/app/calls/resources/classes/follow_me.php @@ -419,6 +419,7 @@ include "root.php"; $variables[] = "originate_delay_start=".$row["follow_me_delay"]; $variables[] = "sleep=".($row["follow_me_delay"] * 1000); $variables[] = "leg_timeout=".$row["follow_me_timeout"]; + $variables[] = "is_follow_me_loopback=true"; if (is_numeric($row["follow_me_destination"])) { if ($_SESSION['domain']['bridge']['text'] == "outbound" || $_SESSION['domain']['bridge']['text'] == "bridge") { diff --git a/app/dialplans/resources/switch/conf/dialplan/030_is_loopback.xml b/app/dialplans/resources/switch/conf/dialplan/030_is_loopback.xml new file mode 100644 index 0000000000..12c8b9b062 --- /dev/null +++ b/app/dialplans/resources/switch/conf/dialplan/030_is_loopback.xml @@ -0,0 +1,11 @@ + + + + + + + + + + +