From a0aabbcc532cf72e0005d3ac60776f097b7246fb Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Tue, 31 Aug 2010 00:48:57 +0000 Subject: [PATCH] Don't try and call supervisor when on a call --- supervisor.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/supervisor.php b/supervisor.php index 23e676f2..1afa36c3 100644 --- a/supervisor.php +++ b/supervisor.php @@ -58,6 +58,8 @@ $callstatus = is_on_call($operator_id); if ($callstatus == 3) //On a call { + print "

" T_("Please wait till you have ended this call to call the supervisor") . "

"; + /* if (is_voip_enabled($operator_id)) { if (isset($_GET['callsupervisor'])) @@ -79,13 +81,14 @@ if ($callstatus == 3) //On a call else { print "

" . T_("Click here to call the supervisor's phone. A conference call will be created with the respondent, yourself and the supervisor. Otherwise close this window") . "

"; -// print "

" . T_("Hangup when calling the supervisor") . "

"; + print "

" . T_("Hangup when calling the supervisor") . "

"; } } else { print "

" . T_("Try calling the supervisor") . "

"; } + */ } else if ($callstatus == 0 || $callstatus == 4 || $callstatus == 5) { @@ -110,7 +113,7 @@ else if ($callstatus == 0 || $callstatus == 4 || $callstatus == 5) else { print "

" . T_("Click here to call the supervisor's phone. Otherwise close this window") . "

"; -// print "

" . T_("Hangup when calling the supervisor") . "

"; + print "

" . T_("Hangup when calling the supervisor") . "

"; } } else