Added customer 3way hangup logging options to campaigns which will log if and how far into the 3-way call a customer has hung-up
git-svn-id: svn://192.168.202.10@1516 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -316,6 +316,12 @@ OTHER CHANGES:
|
||||
69. Changed application limit for lead_id from 9 digits to 10 digits. This does
|
||||
not affect the database limit of lead_id: 4294967295
|
||||
|
||||
70. Added customer 3way hangup logging options to campaigns which will log if
|
||||
and how far into the 3-way call a customer has hung-up, as well as if
|
||||
the agent initiated the call after the customer hung up. There is also
|
||||
an option to end the 3-way call and send the agent to the disposition
|
||||
screen if the customer hangs up during the 3-way call.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -762,7 +762,10 @@ inbound_queue_no_dial ENUM('DISABLED','ENABLED','ALL_SERVERS') default 'DISABLED
|
||||
timer_action_destination VARCHAR(30) default '',
|
||||
enable_xfer_presets ENUM('DISABLED','ENABLED') default 'DISABLED',
|
||||
hide_xfer_number_to_dial ENUM('DISABLED','ENABLED') default 'DISABLED',
|
||||
manual_dial_prefix VARCHAR(20) default ''
|
||||
manual_dial_prefix VARCHAR(20) default '',
|
||||
customer_3way_hangup_logging ENUM('DISABLED','ENABLED') default 'ENABLED',
|
||||
customer_3way_hangup_seconds SMALLINT(5) UNSIGNED default '5',
|
||||
customer_3way_hangup_action ENUM('NONE','DISPO') default 'NONE'
|
||||
);
|
||||
|
||||
CREATE TABLE vicidial_lists (
|
||||
@@ -1722,6 +1725,8 @@ callerid VARCHAR(20),
|
||||
group_alias_id VARCHAR(30),
|
||||
preset_name VARCHAR(40) default '',
|
||||
campaign_id VARCHAR(20) default '',
|
||||
customer_hungup ENUM('BEFORE_CALL','DURING_CALL','') default '',
|
||||
customer_hungup_seconds SMALLINT(5) UNSIGNED default '0',
|
||||
index (user),
|
||||
index (call_date),
|
||||
index (group_alias_id)
|
||||
@@ -2362,7 +2367,7 @@ ALTER TABLE vicidial_agent_log_archive MODIFY agent_log_id INT(9) UNSIGNED NOT N
|
||||
|
||||
CREATE TABLE vicidial_carrier_log_archive LIKE vicidial_carrier_log;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1245',db_schema_update_date=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1246',db_schema_update_date=NOW();
|
||||
|
||||
GRANT RELOAD ON *.* TO cron@'%';
|
||||
GRANT RELOAD ON *.* TO cron@localhost;
|
||||
|
||||
@@ -542,10 +542,15 @@ ALTER TABLE system_settings ADD default_server_password VARCHAR(20) default 'tes
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1244',db_schema_update_date=NOW();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ALTER TABLE vicidial_lists_fields MODIFY field_name VARCHAR(5000);
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1245',db_schema_update_date=NOW();
|
||||
|
||||
ALTER TABLE vicidial_campaigns ADD customer_3way_hangup_logging ENUM('DISABLED','ENABLED') default 'ENABLED';
|
||||
ALTER TABLE vicidial_campaigns ADD customer_3way_hangup_seconds SMALLINT(5) UNSIGNED default '5';
|
||||
ALTER TABLE vicidial_campaigns ADD customer_3way_hangup_action ENUM('NONE','DISPO') default 'NONE';
|
||||
|
||||
ALTER TABLE user_call_log ADD customer_hungup ENUM('BEFORE_CALL','DURING_CALL','') default '';
|
||||
ALTER TABLE user_call_log ADD customer_hungup_seconds SMALLINT(5) UNSIGNED default '0';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1246',db_schema_update_date=NOW();
|
||||
|
||||
@@ -433,6 +433,12 @@ ViciBox CD ISO version||
|
||||
or only the||
|
||||
source code||
|
||||
Continue on to the Initial Setup||
|
||||
Customer 3-Way Hangup Logging||
|
||||
If this option is ENABLED the user_call_log will log when a customer hangup up if they hang up during a 3-way call. Also, this can allow for the Customer 3-way hangup action if one is defineed below. Default is ENABLED||
|
||||
Customer 3-Way Hangup Seconds||
|
||||
If Customer 3-way logging is enabled, this option allows you to define the number of seconds after the customer hangup is detected before it is actually logged and the optional customer 3-way hangup action is executed. Default is 5 seconds||
|
||||
Customer 3-Way Hangup Action||
|
||||
If Customer 3-way logging is enabled, this option allows you to have the agent screen automatically hang up on the call and go to the DISPO screen if this option is set to DISPO. Default is NONE||
|
||||
|
||||
|
||||
AST_VICIDIAL_ingrouplist.php
|
||||
@@ -447,7 +453,7 @@ No calls on this day||
|
||||
You are in ALT dial mode, you must finish the lead before logging out||
|
||||
Presets Button||
|
||||
SELECT A PRESET||
|
||||
|
||||
Customer Hung-up, 3-way Call Ended Automatically||
|
||||
|
||||
|
||||
############################################################ MANAGER Manual
|
||||
|
||||
@@ -448,7 +448,10 @@ if ($ACTION=="Originate")
|
||||
if ($agent_dialed_number > 0)
|
||||
{
|
||||
if (strlen($lead_id)<1) {$lead_id='0';}
|
||||
$stmt = "INSERT INTO user_call_log (user,call_date,call_type,server_ip,phone_number,number_dialed,lead_id,callerid,group_alias_id,preset_name,campaign_id) values('$user','$NOW_TIME','$agent_dialed_type','$server_ip','$exten','$channel','$lead_id','$outbound_cid','$RAWaccount','$preset_name','$campaign')";
|
||||
$customer_hungup='';
|
||||
if ( ($stage > 0) and (preg_match("/3WAY/",$agent_dialed_type)) )
|
||||
{$customer_hungup = 'BEFORE_CALL';}
|
||||
$stmt = "INSERT INTO user_call_log (user,call_date,call_type,server_ip,phone_number,number_dialed,lead_id,callerid,group_alias_id,preset_name,campaign_id,customer_hungup) values('$user','$NOW_TIME','$agent_dialed_type','$server_ip','$exten','$channel','$lead_id','$outbound_cid','$RAWaccount','$preset_name','$campaign','$customer_hungup')";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00192',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# - $pass
|
||||
# optional variables:
|
||||
# - $format - ('text','debug')
|
||||
# - $ACTION - ('regCLOSER','regTERRITORY','manDiaLnextCALL','manDiaLskip','manDiaLonly','manDiaLlookCaLL','manDiaLlogCALL','userLOGout','updateDISPO','updateLEAD','VDADpause','VDADready','VDADcheckINCOMING','UpdatEFavoritEs','CalLBacKLisT','CalLBacKCounT','PauseCodeSubmit','LogiNCamPaigns','alt_phone_change','AlertControl','AGENTSview','CALLSINQUEUEview','CALLSINQUEUEgrab','DiaLableLeaDsCounT','UpdateFields','CALLLOGview','LEADINFOview')
|
||||
# - $ACTION - ('regCLOSER','regTERRITORY','manDiaLnextCALL','manDiaLskip','manDiaLonly','manDiaLlookCaLL','manDiaLlogCALL','userLOGout','updateDISPO','updateLEAD','VDADpause','VDADready','VDADcheckINCOMING','UpdatEFavoritEs','CalLBacKLisT','CalLBacKCounT','PauseCodeSubmit','LogiNCamPaigns','alt_phone_change','AlertControl','AGENTSview','CALLSINQUEUEview','CALLSINQUEUEgrab','DiaLableLeaDsCounT','UpdateFields','CALLLOGview','LEADINFOview','customer_3way_hangup_process')
|
||||
# - $stage - ('start','finish','lookup','new')
|
||||
# - $closer_choice - ('CL_TESTCAMP_L CL_OUT123_L -')
|
||||
# - $conf_exten - ('8600011',...)
|
||||
@@ -254,10 +254,11 @@
|
||||
# 100823-1612 - Added DID variables on inbound calls
|
||||
# 100902-1348 - Added closecallid and xfercallid variables
|
||||
# 100903-0041 - Changed lead_id max length to 10 digits
|
||||
# 100908-1102 - Added customer_3way_hangup_process function
|
||||
#
|
||||
|
||||
$version = '2.4-161';
|
||||
$build = '100903-0041';
|
||||
$version = '2.4-162';
|
||||
$build = '100908-1102';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=333;
|
||||
$one_mysql_log=0;
|
||||
@@ -7547,6 +7548,22 @@ if ($ACTION == 'CalLBacKCounT')
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
### customer_3way_hangup_process - send the count of the USERONLY callbacks for an agent
|
||||
################################################################################
|
||||
if ($ACTION == 'customer_3way_hangup_process')
|
||||
{
|
||||
$stmt="UPDATE user_call_log SET customer_hungup='$status',customer_hungup_seconds='$stage' where lead_id='$lead_id' and user='$user' and call_type LIKE \"%3WAY%\" order by user_call_log_id desc limit 1;";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
|
||||
echo "DONE: $stage|$lead_id|$status";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
### DiaLableLeaDsCounT - send the count of the dialable leads in this campaign
|
||||
################################################################################
|
||||
|
||||
+102
-6
@@ -311,10 +311,11 @@
|
||||
# 100827-1436 - Added webphone dialpad options
|
||||
# 100902-0046 - Added initial loading screen
|
||||
# 100902-1349 - Added closecallid, xfercallid, agent_log_id as webform and script variables
|
||||
# 100908-0955 - Added customer 3way hangup
|
||||
#
|
||||
|
||||
$version = '2.4-289';
|
||||
$build = '100902-1349';
|
||||
$version = '2.4-290';
|
||||
$build = '100908-0955';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=66;
|
||||
$one_mysql_log=0;
|
||||
@@ -1260,7 +1261,7 @@ else
|
||||
$HKstatusnames = substr("$HKstatusnames", 0, -1);
|
||||
|
||||
##### grab the campaign settings
|
||||
$stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
|
||||
$stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01013',$VD_login,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -1342,6 +1343,10 @@ else
|
||||
$enable_xfer_presets = $row[74];
|
||||
$hide_xfer_number_to_dial = $row[75];
|
||||
$manual_dial_prefix = $row[76];
|
||||
$customer_3way_hangup_logging = $row[77];
|
||||
$customer_3way_hangup_seconds = $row[78];
|
||||
$customer_3way_hangup_action = $row[79];
|
||||
|
||||
|
||||
if ($manual_dial_override == 'ALLOW_ALL')
|
||||
{$agentcall_manual = 1;}
|
||||
@@ -2794,6 +2799,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var VD_live_call_secondS = 0;
|
||||
var XD_live_customer_call = 0;
|
||||
var XD_live_call_secondS = 0;
|
||||
var xfer_in_call = 0;
|
||||
var open_dispo_screen = 0;
|
||||
var AgentDispoing = 0;
|
||||
var logout_stop_timeouts = 0;
|
||||
@@ -3090,6 +3096,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var did_description='';
|
||||
var closecallid='';
|
||||
var xfercallid='';
|
||||
var customer_3way_hangup_logging='<?php echo $customer_3way_hangup_logging ?>';
|
||||
var customer_3way_hangup_seconds='<?php echo $customer_3way_hangup_seconds ?>';
|
||||
var customer_3way_hangup_action='<?php echo $customer_3way_hangup_action ?>';
|
||||
var customer_3way_hangup_counter=0;
|
||||
var customer_3way_hangup_counter_trigger=0;
|
||||
var customer_3way_hangup_dispo_message='';
|
||||
var DiaLControl_auto_HTML = "<IMG SRC=\"./images/vdc_LB_pause_OFF.gif\" border=0 alt=\" Pause \"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"./images/vdc_LB_resume.gif\" border=0 alt=\"Resume\"></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><IMG SRC=\"./images/vdc_LB_pause.gif\" border=0 alt=\" Pause \"></a><IMG SRC=\"./images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Resume\">";
|
||||
var DiaLControl_auto_HTML_OFF = "<IMG SRC=\"./images/vdc_LB_pause_OFF.gif\" border=0 alt=\" Pause \"><IMG SRC=\"./images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Resume\">";
|
||||
@@ -3354,8 +3366,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
conf_dialed=1;
|
||||
var sending_group_alias = 0;
|
||||
// Dial With Customer button
|
||||
if (taskFromConf == 'YES')
|
||||
{
|
||||
xfer_in_call=1;
|
||||
agent_dialed_number='1';
|
||||
agent_dialed_type='XFER_3WAY';
|
||||
|
||||
@@ -3551,7 +3565,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{var call_cid = campaign_cid;}
|
||||
}
|
||||
|
||||
VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + call_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + call_cid + "&usegroupalias="+ usegroupalias + "&preset_name=" + taskpresetname + "&campaign=" + campaign + "&account=" + active_group_alias + "&agent_dialed_number=" + agent_dialed_number + "&agent_dialed_type=" + agent_dialed_type + "&lead_id=" + document.vicidial_form.lead_id.value + "&" + alertquery;
|
||||
VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + call_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + call_cid + "&usegroupalias="+ usegroupalias + "&preset_name=" + taskpresetname + "&campaign=" + campaign + "&account=" + active_group_alias + "&agent_dialed_number=" + agent_dialed_number + "&agent_dialed_type=" + agent_dialed_type + "&lead_id=" + document.vicidial_form.lead_id.value + "&stage=" + CheckDEADcallON + "&" + alertquery;
|
||||
xmlhttp.open('POST', 'manager_send.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(VMCoriginate_query);
|
||||
@@ -3952,8 +3966,15 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
if (CheckDEADcallON < 1)
|
||||
{
|
||||
if( document.images ) { document.images['livecall'].src = image_livecall_DEAD.src;}
|
||||
if( document.images )
|
||||
{ document.images['livecall'].src = image_livecall_DEAD.src;}
|
||||
CheckDEADcallON=1;
|
||||
|
||||
if ( (xfer_in_call > 0) && (customer_3way_hangup_logging=='ENABLED') )
|
||||
{
|
||||
customer_3way_hangup_counter_trigger=1;
|
||||
customer_3way_hangup_counter=1;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (InGroupChange > 0)
|
||||
@@ -4990,7 +5011,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
function NeWManuaLDiaLCalLSubmiT(tempDiaLnow)
|
||||
{
|
||||
hideDiv('NeWManuaLDiaLBox');
|
||||
document.getElementById("debugbottomspan").innerHTML = "TESTING NOW HERE" + document.vicidial_form.MDPhonENumbeR.value + "|" + active_group_alias;
|
||||
document.getElementById("debugbottomspan").innerHTML = "DEBUG OUTPUT" + document.vicidial_form.MDPhonENumbeR.value + "|" + active_group_alias;
|
||||
|
||||
var sending_group_alias = 0;
|
||||
var MDDiaLCodEform = document.vicidial_form.MDDiaLCodE.value;
|
||||
@@ -8303,6 +8324,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var xferchannel = document.vicidial_form.xferchannel.value;
|
||||
var xfer_channel = lastxferchannel;
|
||||
var process_post_hangup=0;
|
||||
xfer_in_call=0;
|
||||
if ( (MD_channel_look==1) && (leaving_threeway < 1) )
|
||||
{
|
||||
MD_channel_look=0;
|
||||
@@ -8505,6 +8527,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
// Generate the Call Disposition Chooser panel
|
||||
function DispoSelectContent_create(taskDSgrp,taskDSstage)
|
||||
{
|
||||
if (customer_3way_hangup_dispo_message.length > 1)
|
||||
{
|
||||
document.getElementById("Dispo3wayMessage").innerHTML = "<BR><B><font color=red size=3>" + customer_3way_hangup_dispo_message + "</font></B><BR>";
|
||||
}
|
||||
HidEGenDerPulldown();
|
||||
AgentDispoing = 1;
|
||||
var VD_statuses_ct_half = parseInt(VD_statuses_ct / 2);
|
||||
@@ -8729,6 +8755,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
leaving_threeway=0;
|
||||
blind_transfer=0;
|
||||
CheckDEADcallON=0;
|
||||
customer_3way_hangup_counter=0;
|
||||
customer_3way_hangup_counter_trigger=0;
|
||||
document.getElementById("callchannel").innerHTML = '';
|
||||
document.vicidial_form.callserverip.value = '';
|
||||
document.vicidial_form.xferchannel.value = '';
|
||||
@@ -8842,6 +8870,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
MDnextCID='';
|
||||
XD_live_customer_call = 0;
|
||||
XD_live_call_secondS = 0;
|
||||
xfer_in_call=0;
|
||||
MD_channel_look=0;
|
||||
MD_ring_secondS=0;
|
||||
uniqueid_status_display='';
|
||||
@@ -8861,6 +8890,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
xfercallid='';
|
||||
document.vicidial_form.xfername.value='';
|
||||
document.vicidial_form.xfernumhidden.value='';
|
||||
document.getElementById("debugbottomspan").innerHTML = '';
|
||||
customer_3way_hangup_dispo_message='';
|
||||
document.getElementById("Dispo3wayMessage").innerHTML = '';
|
||||
|
||||
if (manual_dial_in_progress==1)
|
||||
{
|
||||
@@ -10556,6 +10588,47 @@ function phone_number_format(formatphone) {
|
||||
}
|
||||
|
||||
|
||||
// ################################################################################
|
||||
// Run the logging process for customer 3way hangup
|
||||
function customer_3way_hangup_process(temp_hungup_time,temp_xfer_call_seconds)
|
||||
{
|
||||
var xmlhttp=false;
|
||||
/*@cc_on @*/
|
||||
/*@if (@_jscript_version >= 5)
|
||||
// JScript gives us Conditional compilation, we can cope with old IE versions.
|
||||
// and security blocked creation of the objects.
|
||||
try {
|
||||
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
||||
} catch (e) {
|
||||
try {
|
||||
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
} catch (E) {
|
||||
xmlhttp = false;
|
||||
}
|
||||
}
|
||||
@end @*/
|
||||
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
|
||||
{
|
||||
xmlhttp = new XMLHttpRequest();
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
CTHPview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=customer_3way_hangup_process&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign + "&status=" + temp_hungup_time + "&stage=" + temp_xfer_call_seconds;
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(CTHPview_query);
|
||||
xmlhttp.onreadystatechange = function()
|
||||
{
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
||||
{
|
||||
// alert(xmlhttp.responseText);
|
||||
document.getElementById("debugbottomspan").innerHTML = "CUSTOMER 3WAY HANGUP " + xmlhttp.responseText;
|
||||
}
|
||||
}
|
||||
delete xmlhttp;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ################################################################################
|
||||
// Refresh the FORM content
|
||||
@@ -11153,6 +11226,28 @@ else
|
||||
XD_live_call_secondS++;
|
||||
document.vicidial_form.xferlength.value = XD_live_call_secondS;
|
||||
}
|
||||
if (customer_3way_hangup_counter_trigger > 0)
|
||||
{
|
||||
if (customer_3way_hangup_counter > customer_3way_hangup_seconds)
|
||||
{
|
||||
var customer_3way_timer_seconds = (XD_live_call_secondS - customer_3way_hangup_counter);
|
||||
customer_3way_hangup_process('DURING_CALL',customer_3way_timer_seconds);
|
||||
|
||||
customer_3way_hangup_counter=0;
|
||||
customer_3way_hangup_counter_trigger=0;
|
||||
|
||||
if (customer_3way_hangup_action=='DISPO')
|
||||
{
|
||||
customer_3way_hangup_dispo_message='Customer Hung-up, 3-way Call Ended Automatically';
|
||||
bothcall_send_hangup();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
customer_3way_hangup_counter++;
|
||||
document.getElementById("debugbottomspan").innerHTML = "CUSTOMER 3WAY HANGUP " + customer_3way_hangup_counter;
|
||||
}
|
||||
}
|
||||
if ( (update_fields > 0) && (update_fields_data.length > 2) )
|
||||
{
|
||||
UpdateFieldsData();
|
||||
@@ -12359,6 +12454,7 @@ Available Agents Transfer: <span id="AgentXferViewSelect"></span></CENTER></font
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:<?php $zi++; echo $zi ?>;" id="DispoSelectBox">
|
||||
<TABLE border=1 bgcolor="#CCFFCC" width=<?php echo $CAwidth ?> height=<?php echo $WRheight ?>><TR><TD align=center VALIGN=top> DISPOSITION CALL :<span id="DispoSelectPhonE"></span> <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Hangup Again</a></span> <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()"> minimize </a></span><BR>
|
||||
<span id="Dispo3wayMessage"></span>
|
||||
<span id="DispoSelectContent"> End-of-call Disposition Selection </span>
|
||||
<input type=hidden name=DispoSelection><BR>
|
||||
<input type=checkbox name=DispoSelectStop size=1 value="0"> PAUSE AGENT DIALING <BR>
|
||||
|
||||
+39
-6
File diff suppressed because one or more lines are too long
@@ -26,6 +26,7 @@
|
||||
# 100425-0115 - Added more login data
|
||||
# 100712-1324 - Added system setting slave server option
|
||||
# 100802-2347 - Added User Group Allowed Reports option validation
|
||||
# 100908-1205 - Added customer 3way hangup flags to user calls display
|
||||
#
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -869,9 +870,9 @@ if ($did < 1)
|
||||
|
||||
echo "<B>MANUAL OUTBOUND CALLS FOR THIS TIME PERIOD: (10000 record limit)</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2> CALL TYPE</td><td align=left><font size=2> SERVER</td><td align=left><font size=2> PHONE</td><td align=right><font size=2> DIALED</td><td align=right><font size=2> LEAD</td><td align=right><font size=2> CALLERID</td><td align=right><font size=2> ALIAS</td><td align=right><font size=2> PRESET</td></tr>\n";
|
||||
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2> CALL TYPE</td><td align=left><font size=2> SERVER</td><td align=left><font size=2> PHONE</td><td align=right><font size=2> DIALED</td><td align=right><font size=2> LEAD</td><td align=right><font size=2> CALLERID</td><td align=right><font size=2> ALIAS</td><td align=right><font size=2> PRESET</td><td align=right><font size=2>C3HU</td></tr>\n";
|
||||
|
||||
$stmt="select call_date,call_type,server_ip,phone_number,number_dialed,lead_id,callerid,group_alias_id,preset_name from user_call_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;";
|
||||
$stmt="select call_date,call_type,server_ip,phone_number,number_dialed,lead_id,callerid,group_alias_id,preset_name,customer_hungup,customer_hungup_seconds from user_call_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$logs_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -884,6 +885,12 @@ if ($did < 1)
|
||||
else
|
||||
{$bgcolor='bgcolor="#9BB9FB"';}
|
||||
|
||||
$C3HU='';
|
||||
if ($row[9]=='BEFORE_CALL') {$row[9]='BC';}
|
||||
if ($row[9]=='DURING_CALL') {$row[9]='DC';}
|
||||
if (strlen($row[9]) > 1)
|
||||
{$C3HU = "$row[9] $row[10]";}
|
||||
|
||||
$u++;
|
||||
echo "<tr $bgcolor>";
|
||||
echo "<td><font size=1>$u</td>";
|
||||
@@ -895,7 +902,8 @@ if ($did < 1)
|
||||
echo "<td align=right><font size=2> <A HREF=\"admin_modify_lead.php?lead_id=$row[5]\" target=\"_blank\">$row[5]</A> </td>\n";
|
||||
echo "<td align=right><font size=2> $row[6] </td>\n";
|
||||
echo "<td align=right><font size=2> $row[7] </td>\n";
|
||||
echo "<td align=right><font size=2> $row[8] </td></tr>\n";
|
||||
echo "<td align=right><font size=2> $row[8] </td>\n";
|
||||
echo "<td align=right NOWRAP><font size=2> $C3HU </td></tr>\n";
|
||||
}
|
||||
echo "</TABLE><BR><BR>\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user