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 "