added Mute/UnMute to vicidial.php agent screen, also had to modify manager_send.php and documentation for this
git-svn-id: svn://192.168.202.10@542 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -76,6 +76,10 @@ NOTE: Upgrading from 1.1.12-3 to 2.0.1 is at the bottom
|
||||
18. Changed dial statuses to use dynamic number of dial statuses instead of
|
||||
static dial_status_x fields.
|
||||
|
||||
19. Added Mute/UnMute ability to vicidial.php agent screen. To use, you must
|
||||
have the _X18600XXX and _X28600XXX entries in your extensions.conf
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Asterisk/astguiclient install from existing server. v.2.0.3 2007-01-17
|
||||
Asterisk/astguiclient install from existing server. v.2.0.3 2007-02-26
|
||||
By the astGUIclient group astguiclient@eflo.net
|
||||
|
||||
|
||||
|
||||
@@ -2169,6 +2169,14 @@ exten => _X48600XXX,2,Hangup
|
||||
exten => _X38600XXX,1,MeetMeAdmin(${EXTEN:2},t,${EXTEN:0:1})
|
||||
exten => _X38600XXX,2,Hangup
|
||||
|
||||
exten => _X28600XXX,1,MeetMeAdmin(${EXTEN:2},m,${EXTEN:0:1})
|
||||
exten => _X28600XXX,2,Hangup
|
||||
|
||||
exten => _X18600XXX,1,MeetMeAdmin(${EXTEN:2},M,${EXTEN:0:1})
|
||||
exten => _X18600XXX,2,Hangup
|
||||
|
||||
exten => _55558600XXX,1,MeetMeAdmin(${EXTEN:4},K)
|
||||
exten => _55558600XXX,2,Hangup
|
||||
exten => 8300,1,Hangup
|
||||
|
||||
exten => 8600051,1,Meetme,8600051
|
||||
|
||||
@@ -323,9 +323,14 @@ exten => _X48600XXX,2,Hangup
|
||||
exten => _X38600XXX,1,MeetMeAdmin(${EXTEN:2},t,${EXTEN:0:1})
|
||||
exten => _X38600XXX,2,Hangup
|
||||
|
||||
exten => _X28600XXX,1,MeetMeAdmin(${EXTEN:2},m,${EXTEN:0:1})
|
||||
exten => _X28600XXX,2,Hangup
|
||||
|
||||
exten => _X18600XXX,1,MeetMeAdmin(${EXTEN:2},M,${EXTEN:0:1})
|
||||
exten => _X18600XXX,2,Hangup
|
||||
|
||||
exten => _55558600XXX,1,MeetMeAdmin(${EXTEN:4},K)
|
||||
exten => _55558600XXX,2,Hangup
|
||||
|
||||
exten => 8300,1,Hangup
|
||||
|
||||
; VICIDIAL conferences
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 601 B |
Binary file not shown.
|
After Width: | Height: | Size: 624 B |
@@ -1,7 +1,7 @@
|
||||
<?
|
||||
# manager_send.php
|
||||
#
|
||||
# Copyright (C) 2006 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
||||
# Copyright (C) 2007 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
||||
#
|
||||
# This script is designed purely to insert records into the vicidial_manager table to signal Actions to an asterisk server
|
||||
# This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table
|
||||
@@ -35,7 +35,7 @@
|
||||
# - $stage - ('UP','DOWN')
|
||||
#
|
||||
|
||||
# changes
|
||||
# CHANGELOG:
|
||||
# 50401-1002 - First build of script, Hangup function only
|
||||
# 50404-1045 - Redirect basic function enabled
|
||||
# 50406-1522 - Monitor basic function enabled
|
||||
@@ -65,6 +65,7 @@
|
||||
# 61130-1617 - Added lead_id to MonitorConf for recording_log
|
||||
# 61201-1115 - Added user to MonitorConf for recording_log
|
||||
# 70111-1600 - added ability to use BLEND/INBND/*_C/*_B/*_I as closer campaigns
|
||||
# 70226-1251 - Added Mute/UnMute to conference volume control
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -134,8 +135,8 @@ if (!isset($ACTION)) {$ACTION="Originate";}
|
||||
if (!isset($format)) {$format="alert";}
|
||||
if (!isset($ext_priority)) {$ext_priority="1";}
|
||||
|
||||
$version = '2.0.27';
|
||||
$build = '61130-1617';
|
||||
$version = '2.0.28';
|
||||
$build = '70226-1251';
|
||||
$StarTtime = date("U");
|
||||
$NOW_DATE = date("Y-m-d");
|
||||
$NOW_TIME = date("Y-m-d H:i:s");
|
||||
@@ -1019,8 +1020,10 @@ if ($ACTION=="VolumeControl")
|
||||
else
|
||||
{
|
||||
$participant_number='XXYYXXYYXXYYXX';
|
||||
if (eregi('UP',$stage)) {$vol_prefix='4';}
|
||||
if (eregi('DOWN',$stage)) {$vol_prefix='3';}
|
||||
else {$vol_prefix='4';}
|
||||
if (eregi('UNMUTE',$stage)) {$vol_prefix='2';}
|
||||
if (eregi('MUTING',$stage)) {$vol_prefix='1';}
|
||||
$local_DEF = 'Local/';
|
||||
$local_AMP = '@';
|
||||
$volume_local_channel = "$local_DEF$participant_number$vol_prefix$exten$local_AMP$ext_context";
|
||||
|
||||
+54
-9
@@ -150,10 +150,11 @@
|
||||
# 70214-1233 - Added queuemetrics_log_id field for server_id in queue_log
|
||||
# 70215-1240 - Added queuemetrics_log_id field for server_id in queue_log
|
||||
# 70222-1617 - Changed queue_log PAUSE/UNPAUSE to PAUSEALL/UNPAUSEALL
|
||||
# 70226-1252 - Added Mute/UnMute to agent screen
|
||||
#
|
||||
|
||||
$version = '2.0.121';
|
||||
$build = '70222-1617';
|
||||
$version = '2.0.122';
|
||||
$build = '70226-1252';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -1424,6 +1425,7 @@ $CCAL_OUT .= "</table>";
|
||||
var dialplan_number = '<? echo $dialplan_number ?>';
|
||||
var ext_context = '<? echo $ext_context ?>';
|
||||
var protocol = '<? echo $protocol ?>';
|
||||
var agentchannel = '';
|
||||
var local_gmt ='<? echo $local_gmt ?>';
|
||||
var server_ip = '<? echo $server_ip ?>';
|
||||
var server_ip_dialstring = '<? echo $server_ip_dialstring ?>';
|
||||
@@ -1683,8 +1685,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
// ################################################################################
|
||||
// Send volume control command for meetme participant
|
||||
function volume_control(taskdirection,taskvolchannel)
|
||||
function volume_control(taskdirection,taskvolchannel,taskagentmute)
|
||||
{
|
||||
if (taskagentmute=='AgenT')
|
||||
{
|
||||
taskvolchannel = agentchannel;
|
||||
}
|
||||
var xmlhttp=false;
|
||||
/*@cc_on @*/
|
||||
/*@if (@_jscript_version >= 5)
|
||||
@@ -1723,6 +1729,18 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
delete xmlhttp;
|
||||
}
|
||||
if (taskagentmute=='AgenT')
|
||||
{
|
||||
if (taskdirection=='MUTING')
|
||||
{
|
||||
document.getElementById("AgentMuteSpan").innerHTML = "<a href=\"#CHAN-" + agentchannel + "\" onclick=\"volume_control('UNMUTE','" + agentchannel + "','AgenT');return false;\"><IMG SRC=\"./images/vdc_volume_UNMUTE.gif\" BORDER=0></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("AgentMuteSpan").innerHTML = "<a href=\"#CHAN-" + agentchannel + "\" onclick=\"volume_control('MUTING','" + agentchannel + "','AgenT');return false;\"><IMG SRC=\"./images/vdc_volume_MUTE.gif\" BORDER=0></a>";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -2064,7 +2082,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
else
|
||||
{
|
||||
live_conf_HTML = live_conf_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + channelfieldA + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + channelfieldA + "');return false;\">HANGUP</a></td><td><a href=\"#\" onclick=\"volume_control('UP','" + channelfieldA + "');return false;\"><IMG SRC=\"./images/vdc_volume_up.gif\" BORDER=0></a> <a href=\"#\" onclick=\"volume_control('DOWN','" + channelfieldA + "');return false;\"><IMG SRC=\"./images/vdc_volume_down.gif\" BORDER=0></a></td></tr>";
|
||||
live_conf_HTML = live_conf_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + channelfieldA + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + channelfieldA + "');return false;\">HANGUP</a></td><td><a href=\"#\" onclick=\"volume_control('UP','" + channelfieldA + "','');return false;\"><IMG SRC=\"./images/vdc_volume_up.gif\" BORDER=0></a> <a href=\"#\" onclick=\"volume_control('DOWN','" + channelfieldA + "','');return false;\"><IMG SRC=\"./images/vdc_volume_down.gif\" BORDER=0></a> <a href=\"#\" onclick=\"volume_control('MUTING','" + channelfieldA + "','');return false;\"><IMG SRC=\"./images/vdc_volume_MUTE.gif\" BORDER=0></a> <a href=\"#\" onclick=\"volume_control('UNMUTE','" + channelfieldA + "','');return false;\"><IMG SRC=\"./images/vdc_volume_UNMUTE.gif\" BORDER=0></a></td></tr>";
|
||||
}
|
||||
// var debugspan = document.getElementById("debugbottomspan").innerHTML;
|
||||
|
||||
@@ -2080,6 +2098,29 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{custchannellive++;}
|
||||
}
|
||||
|
||||
if (volumecontrol_active > 0)
|
||||
{
|
||||
if (protocol != 'EXTERNAL')
|
||||
{
|
||||
var regAGNTchan = new RegExp(protocol + '/' + extension,"g");
|
||||
if ( (channelfieldA.match(regAGNTchan)) && (agentchannel != channelfieldA) )
|
||||
{
|
||||
agentchannel = channelfieldA;
|
||||
|
||||
document.getElementById("AgentMuteSpan").innerHTML = "<a href=\"#CHAN-" + agentchannel + "\" onclick=\"volume_control('MUTING','" + agentchannel + "','AgenT');return false;\"><IMG SRC=\"./images/vdc_volume_MUTE.gif\" BORDER=0></a>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (agentchannel.length < 3)
|
||||
{
|
||||
agentchannel = channelfieldA;
|
||||
|
||||
document.getElementById("AgentMuteSpan").innerHTML = "<a href=\"#CHAN-" + agentchannel + "\" onclick=\"volume_control('MUTING','" + agentchannel + "','AgenT');return false;\"><IMG SRC=\"./images/vdc_volume_MUTE.gif\" BORDER=0></a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// document.getElementById("debugbottomspan").innerHTML = debugspan + '<BR>' + channelfieldA + '|' + lastcustchannel + '|' + custchannellive + '|' + LMAcontent_change + '|' + LMAalter;
|
||||
|
||||
if (!LMAe[ARY_ct])
|
||||
@@ -2907,8 +2948,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
document.getElementById("DialBlindVMail").innerHTML = "<a href=\"#\" onclick=\"mainxfer_send_redirect('XfeRVMAIL','" + lastcustchannel + "','" + lastcustserverip + "');return false;\"><IMG SRC=\"./images/vdc_XB_ammessage.gif\" border=0 alt=\"Blind Transfer VMail Message\"></a>";
|
||||
|
||||
document.getElementById("VolumeUpSpan").innerHTML = "<a href=\"#\" onclick=\"volume_control('UP','" + MDchannel + "');return false;\"><IMG SRC=\"./images/vdc_volume_up.gif\" BORDER=0></a>";
|
||||
document.getElementById("VolumeDownSpan").innerHTML = "<a href=\"#\" onclick=\"volume_control('DOWN','" + MDchannel + "');return false;\"><IMG SRC=\"./images/vdc_volume_down.gif\" BORDER=0></a>";
|
||||
document.getElementById("VolumeUpSpan").innerHTML = "<a href=\"#\" onclick=\"volume_control('UP','" + MDchannel + "','');return false;\"><IMG SRC=\"./images/vdc_volume_up.gif\" BORDER=0></a>";
|
||||
document.getElementById("VolumeDownSpan").innerHTML = "<a href=\"#\" onclick=\"volume_control('DOWN','" + MDchannel + "','');return false;\"><IMG SRC=\"./images/vdc_volume_down.gif\" BORDER=0></a>";
|
||||
|
||||
|
||||
// INSERT VICIDIAL_LOG ENTRY FOR THIS CALL PROCESS
|
||||
@@ -3661,8 +3702,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
if (lastcustserverip == server_ip)
|
||||
{
|
||||
document.getElementById("VolumeUpSpan").innerHTML = "<a href=\"#\" onclick=\"volume_control('UP','" + lastcustchannel + "');return false;\"><IMG SRC=\"./images/vdc_volume_up.gif\" BORDER=0></a>";
|
||||
document.getElementById("VolumeDownSpan").innerHTML = "<a href=\"#\" onclick=\"volume_control('DOWN','" + lastcustchannel + "');return false;\"><IMG SRC=\"./images/vdc_volume_down.gif\" BORDER=0></a>";
|
||||
document.getElementById("VolumeUpSpan").innerHTML = "<a href=\"#\" onclick=\"volume_control('UP','" + lastcustchannel + "','');return false;\"><IMG SRC=\"./images/vdc_volume_up.gif\" BORDER=0></a>";
|
||||
document.getElementById("VolumeDownSpan").innerHTML = "<a href=\"#\" onclick=\"volume_control('DOWN','" + lastcustchannel + "','');return false;\"><IMG SRC=\"./images/vdc_volume_down.gif\" BORDER=0></a>";
|
||||
}
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML_OFF;
|
||||
@@ -5849,6 +5890,10 @@ echo "</head>\n";
|
||||
<span id="PauseCodeLinkSpan"></span> <BR>
|
||||
</font></span>
|
||||
|
||||
<span style="position:absolute;left:500px;top:370px;z-index:15;" id="AgentMuteButton"><font class="body_text">
|
||||
<span id="AgentMuteSpan"></span> <BR>
|
||||
</font></span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:36;" id="CallBacKsLisTBox">
|
||||
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> CALLBACKS FOR AGENT <? echo $VD_login ?>:<BR>Click on a callback below to call the customer back now. If you click on a record below to call it, it will be removed from the list.
|
||||
<BR>
|
||||
@@ -6111,7 +6156,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
|
||||
</span>
|
||||
|
||||
|
||||
<span style="position:absolute;left:154px;top:65px;z-index:15;" id="ScriptPanel">
|
||||
<span style="position:absolute;left:154px;top:65px;z-index:16;" id="ScriptPanel">
|
||||
<table border=0 bgcolor="#FFE7D0" width=606 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIDIAL SCRIPT</div></font></TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user