From 76c89ec7c36fdb2cefd74138007a4841f5cd4385 Mon Sep 17 00:00:00 2001 From: Shnoulle Date: Wed, 27 Oct 2021 17:19:08 +0200 Subject: [PATCH 1/2] Alternate callto url system by config --- config.default.php | 12 ++++++++++++ status_interface2.php | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/config.default.php b/config.default.php index 23b2ca67..aef4fdee 100644 --- a/config.default.php +++ b/config.default.php @@ -255,6 +255,18 @@ if (!defined('ALLOW_RESPONDENT_SELECTOR')) define ('ALLOW_RESPONDENT_SELECTOR',t * Display a faster alternate interface where VoIP is disabled */ if (!defined('ALTERNATE_INTERFACE')) define ('ALTERNATE_INTERFACE',false); +/** + * Alow to choose the start part of the link for alternate interface, before phone + */ +if (!defined('ALTERNATE_INTERFACE_CALLSTARTURL')) define ('ALTERNATE_INTERFACE_CALLSTARTURL','callto:://'); +/** + * Alow to choose the end part of the link for alternate interface, after phone + */ +if (!defined('ALTERNATE_INTERFACE_CALLENDURL')) define ('ALTERNATE_INTERFACE_CALLENDURL',''); +/** + * Allwo to set some specific attributes (for example target='_blank') to call url + */ +if (!defined('ALTERNATE_INTERFACE_ATTRIBUTEURL')) define ('ALTERNATE_INTERFACE_ATTRIBUTEURL',''); /** * Number of log records to display diff --git a/status_interface2.php b/status_interface2.php index ec4322c4..ed485dcf 100644 --- a/status_interface2.php +++ b/status_interface2.php @@ -215,13 +215,16 @@ if ($ca) //By default, the selected radio button should have a "call" started for it //When then next one clicked, it should bring up call screen if no outcome otherwise start new call //print "
";print "
"; + $callstarturl = ALTERNATE_INTERFACE_CALLSTARTURL; + $callendurl = ALTERNATE_INTERFACE_CALLENDURL; + $extraattributes = ALTERNATE_INTERFACE_ATTRIBUTEURL; foreach($rs as $r) { print "

From 4461fd83116d82ce66420408c312d68274b94625 Mon Sep 17 00:00:00 2001 From: Shnoulle Date: Fri, 29 Oct 2021 10:54:38 +0200 Subject: [PATCH 2/2] Fix callyo url --- config.default.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.default.php b/config.default.php index aef4fdee..8aefd15a 100644 --- a/config.default.php +++ b/config.default.php @@ -258,7 +258,7 @@ if (!defined('ALTERNATE_INTERFACE')) define ('ALTERNATE_INTERFACE',false); /** * Alow to choose the start part of the link for alternate interface, before phone */ -if (!defined('ALTERNATE_INTERFACE_CALLSTARTURL')) define ('ALTERNATE_INTERFACE_CALLSTARTURL','callto:://'); +if (!defined('ALTERNATE_INTERFACE_CALLSTARTURL')) define ('ALTERNATE_INTERFACE_CALLSTARTURL','callto:'); /** * Alow to choose the end part of the link for alternate interface, after phone */