From b1faf1cf8346a203139b316c944abf1b0b6b0820 Mon Sep 17 00:00:00 2001 From: ednt Date: Tue, 5 Mar 2019 20:19:10 +0100 Subject: [PATCH] Bug option list and with multiple registartions. (#4012) de-ring was not in the option list. If multiple devices are registered with the same extension, only on device was ringing. (And this was not the device in front of you :) ) The Call UUID was 'duplicated' The fix is to remove the origination_uuid. Then all devices rings simultaniously. --- app/click_to_call/click_to_call.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/click_to_call/click_to_call.php b/app/click_to_call/click_to_call.php index 81653b207d..bb8e465f66 100644 --- a/app/click_to_call/click_to_call.php +++ b/app/click_to_call/click_to_call.php @@ -136,8 +136,7 @@ //define a leg - set source to display the defined caller id name and number $source_common = "{"; - $source_common .= "origination_uuid=".$origination_uuid; - $source_common .= ",click_to_call=true"; + $source_common .= "click_to_call=true"; $source_common .= ",origination_caller_id_name='".$src_cid_name."'"; $source_common .= ",origination_caller_id_number=".$src_cid_number; $source_common .= ",instant_ringback=true"; @@ -406,6 +405,12 @@ else { echo " \n"; } + if ($ringback == "de-ring") { + echo " \n"; + } + else { + echo " \n"; + } if ($ringback == "music") { echo " \n"; }