Moved mute button in vicidial.php
fixed logging bug in FastAGI script git-svn-id: svn://192.168.202.10@1203 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
# 90604-1044 - Fixed formatting, added DAHDI support, added carrier hangup code logging
|
||||
# 90608-0316 - Changed hangup code dispos B and DC to AB and ADC to separate Agent dispos from Auto
|
||||
# 90630-2253 - Added Sangoma CDP pre-Answer call processing
|
||||
# 90814-0810 - Added extra logging for vicidial_log in some cases
|
||||
#
|
||||
|
||||
|
||||
@@ -486,7 +487,7 @@ sub process_request
|
||||
|
||||
|
||||
### call end stage
|
||||
else
|
||||
else
|
||||
{
|
||||
if ($AGILOG) {$agi_string = "|CALL HUNG UP|"; &agi_output;}
|
||||
|
||||
@@ -664,6 +665,7 @@ sub process_request
|
||||
if ($cpd_result =~ /Fax|Modem/i) {$VDL_status='AFAX'; $VDAC_status='FAX'; $CPDfound++;}
|
||||
if ($cpd_result =~ /Answering-Machine/i) {$VDL_status='AA'; $VDAC_status='AMD'; $CPDfound++;}
|
||||
}
|
||||
$sthA->finish();
|
||||
##############################################################
|
||||
### END - CPD Look for result for B/DC calls
|
||||
##############################################################
|
||||
@@ -707,7 +709,7 @@ sub process_request
|
||||
{
|
||||
########## FIND AND DELETE vicidial_auto_calls ##########
|
||||
$VD_alt_dial = 'NONE';
|
||||
$stmtA = "SELECT lead_id,callerid,campaign_id,alt_dial,stage,UNIX_TIMESTAMP(call_time),uniqueid,status FROM vicidial_auto_calls where uniqueid = '$uniqueid' or callerid = '$callerid' limit 1;";
|
||||
$stmtA = "SELECT lead_id,callerid,campaign_id,alt_dial,stage,UNIX_TIMESTAMP(call_time),uniqueid,status,call_time,phone_code,phone_number FROM vicidial_auto_calls where uniqueid = '$uniqueid' or callerid = '$callerid' limit 1;";
|
||||
if ($AGILOG) {$agi_string = "|$stmtA|"; &agi_output;}
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
@@ -716,14 +718,17 @@ sub process_request
|
||||
if ($sthArows > 0)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$VD_lead_id = "$aryA[0]";
|
||||
$VD_callerid = "$aryA[1]";
|
||||
$VD_campaign_id = "$aryA[2]";
|
||||
$VD_alt_dial = "$aryA[3]";
|
||||
$VD_stage = "$aryA[4]";
|
||||
$VD_start_epoch = "$aryA[5]";
|
||||
$VD_uniqueid = "$aryA[6]";
|
||||
$VD_status = "$aryA[7]";
|
||||
$VD_lead_id = $aryA[0];
|
||||
$VD_callerid = $aryA[1];
|
||||
$VD_campaign_id = $aryA[2];
|
||||
$VD_alt_dial = $aryA[3];
|
||||
$VD_stage = $aryA[4];
|
||||
$VD_start_epoch = $aryA[5];
|
||||
$VD_uniqueid = $aryA[6];
|
||||
$VD_status = $aryA[7];
|
||||
$VD_call_time = $aryA[8];
|
||||
$VD_phone_code = $aryA[9];
|
||||
$VD_phone_number = $aryA[10];
|
||||
$rec_countCUSTDATA++;
|
||||
}
|
||||
$sthA->finish();
|
||||
@@ -735,8 +740,8 @@ sub process_request
|
||||
else
|
||||
{
|
||||
$stmtA = "DELETE FROM vicidial_auto_calls where ( ( (status!='IVR') and (uniqueid='$uniqueid' or callerid = '$callerid') ) or ( (status='IVR') and (uniqueid='$uniqueid') ) ) order by call_time desc limit 1;";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
if ($AGILOG) {$agi_string = "-- VDAC record deleted: |$affected_rows| |$VD_lead_id|$uniqueid|$VD_uniqueid|$VD_callerid|$VARserver_ip|$VD_status|"; &agi_output;}
|
||||
$VACaffected_rows = $dbhA->do($stmtA);
|
||||
if ($AGILOG) {$agi_string = "-- VDAC record deleted: |$VACaffected_rows| |$VD_lead_id|$uniqueid|$VD_uniqueid|$VD_callerid|$VARserver_ip|$VD_status|"; &agi_output;}
|
||||
|
||||
#############################################
|
||||
##### START QUEUEMETRICS LOGGING LOOKUP #####
|
||||
@@ -868,6 +873,19 @@ sub process_request
|
||||
if (!$epc_countCUSTDATA)
|
||||
{
|
||||
if ($AGILOG) {$agi_string = "no VDL or VDCL record found: $uniqueid $calleridname $VD_lead_id $uniqueid $VD_uniqueid"; &agi_output;}
|
||||
|
||||
$VD_status = 'NA';
|
||||
|
||||
if ( ($VACaffected_rows > 0) && ($VD_callerid =~ /^V/) )
|
||||
{
|
||||
$stmtA = "INSERT INTO vicidial_log SET uniqueid='$VD_uniqueid',lead_id='$VD_lead_id',campaign_id='$VD_campaign_id',call_date='$VD_call_time',start_epoch='$VD_start_epoch',status='$VD_status',phone_code='$VD_phone_code',phone_number='$VD_phone_number',user='VDAD',processed='N',length_in_sec='0',end_epoch,alt_dial='$VD_alt_dial';";
|
||||
if($M){print STDERR "\n|$stmtA|\n";}
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$sthA->finish();
|
||||
|
||||
$event_string = "| NO VDL add to vicidial_log $VD_uniqueid|$VD_lead_id|$VD_phone_number|$VD_status|$affected_rows|$VACaffected_rows";
|
||||
&event_logger;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -245,10 +245,11 @@
|
||||
# 90730-0145 - Fixed bugs in re-queue and INBOUND_MAN with blended selected
|
||||
# 90808-0117 - Fixed manual dial calls today bug, added last_state_change to vicidial_live_agents
|
||||
# 90812-0046 - Added no-delete-sessions = 1 as default, unused sessions cleared out at timeclock end of day
|
||||
# 90814-0829 - Moved mute button next to hotkeys button
|
||||
#
|
||||
|
||||
$version = '2.2.0-223';
|
||||
$build = '90812-0046';
|
||||
$version = '2.2.0-224';
|
||||
$build = '90814-0829';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=61;
|
||||
$one_mysql_log=0;
|
||||
@@ -408,13 +409,14 @@ $MNwidth = ($MASTERwidth + 330); # 760 - main frame
|
||||
$XFwidth = ($MASTERwidth + 320); # 750 - transfer/conference
|
||||
$HCwidth = ($MASTERwidth + 310); # 740 - hotkeys and callbacks
|
||||
$CQwidth = ($MASTERwidth + 300); # 730 - calls in queue listings
|
||||
$AMwidth = ($MASTERwidth + 270); # 700 - agent mute and preset-dial links
|
||||
$AMwidth = ($MASTERwidth + 270); # 700 - preset-dial links
|
||||
$SCwidth = ($MASTERwidth + 230); # 670 - live call seconds counter, sidebar link
|
||||
$MUwidth = ($MASTERwidth + 180); # 610 - agent mute
|
||||
$SSwidth = ($MASTERwidth + 176); # 606 - scroll script
|
||||
$SDwidth = ($MASTERwidth + 170); # 600 - scroll script, customer data and calls-in-session
|
||||
$HKwidth = ($MASTERwidth + 70); # 500 - Hotkeys button
|
||||
$HKwidth = ($MASTERwidth + 20); # 450 - Hotkeys button
|
||||
$HSwidth = ($MASTERwidth + 1); # 431 - Header spacer
|
||||
$CLwidth = ($MASTERwidth - 60); # 370 - Calls in queue link
|
||||
$CLwidth = ($MASTERwidth - 160); # 270 - Calls in queue link
|
||||
|
||||
$CQheight = ($MASTERheight + 140); # 440 - Calls in queue section
|
||||
$SLheight = ($MASTERheight + 122); # 422 - SideBar link, Calls in queue link
|
||||
@@ -8689,8 +8691,7 @@ echo "</head>\n";
|
||||
}
|
||||
else {echo "<BR>\n";}
|
||||
?>
|
||||
<BR><BR>
|
||||
<span id="AgentMuteSpan"></span> <BR>
|
||||
<BR><BR> <BR>
|
||||
</font></span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:49;" id="CallBacKsLisTBox">
|
||||
@@ -8828,6 +8829,8 @@ if ($agent_display_dialable_leads > 0)
|
||||
?>
|
||||
</span></font>
|
||||
|
||||
<span style="position:absolute;left:<?php echo $MUwidth ?>px;top:<?php echo $SLheight ?>px;z-index:29;" id="AgentMuteSpan"></span>
|
||||
|
||||
|
||||
<span style="position:absolute;left:5px;top:<?php echo $HTheight ?>px;z-index:33;" id="HotKeyActionBox">
|
||||
<table border=0 bgcolor="#FFDD99" width=<?php echo $HCwidth ?> height=70>
|
||||
|
||||
Reference in New Issue
Block a user