Added CALLMENU Survey Method
git-svn-id: svn://192.168.202.10@1667 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -600,7 +600,7 @@ OTHER CHANGES:
|
||||
or a call menu. Outbound IVR Report added. Added optional logging of
|
||||
call menu caller key presses. Lead ID can now be preserved on calls
|
||||
coming from auto-dial or in-groups that go through call menus and back
|
||||
into an in-group.
|
||||
into an in-group. Call Menu transfer also works from an Outbound Survey.
|
||||
|
||||
133. Added new agent interface alert where manual dial calls will not be allowed
|
||||
if the disposition process has not completed. Usually a rare problem on
|
||||
|
||||
@@ -85,6 +85,7 @@
|
||||
# 110324-2326 - Added recording of remote agent calls, per in-group and campaign recording settings
|
||||
# 110325-1410 - Added user recording override settings checking for remote agent recording
|
||||
# 110525-1530 - Added AUDIO and CALLMENU drop options
|
||||
# 110528-2326 - Added CALLMENU survey method
|
||||
#
|
||||
|
||||
$script = 'agi-VDAD_ALL_outbound.agi';
|
||||
@@ -877,7 +878,7 @@ if ($call_handle_method =~ /SURVEY/)
|
||||
### check to see if the SURVEY settings should be pulled from the campaign settings in the database
|
||||
if ($call_handle_method =~ /SURVEYCAMP/)
|
||||
{
|
||||
$stmtA = "SELECT survey_dtmf_digits,survey_ni_digit,survey_method,survey_no_response_action,survey_ni_status,survey_response_digit_map,survey_xfer_exten,survey_camp_record_dir,survey_third_digit,survey_third_status,survey_third_exten,survey_fourth_digit,survey_fourth_status,survey_fourth_exten FROM vicidial_campaigns where campaign_id='$VDADcampaign';";
|
||||
$stmtA = "SELECT survey_dtmf_digits,survey_ni_digit,survey_method,survey_no_response_action,survey_ni_status,survey_response_digit_map,survey_xfer_exten,survey_camp_record_dir,survey_third_digit,survey_third_status,survey_third_exten,survey_fourth_digit,survey_fourth_status,survey_fourth_exten,survey_menu_id FROM vicidial_campaigns where campaign_id='$VDADcampaign';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
@@ -899,6 +900,7 @@ if ($call_handle_method =~ /SURVEY/)
|
||||
$survey_fourth_digit = $aryA[11];
|
||||
$survey_fourth_status = $aryA[12];
|
||||
$survey_fourth_exten = $aryA[13];
|
||||
$survey_menu_id = $aryA[14];
|
||||
|
||||
@digit_map = split(/\|/,$survey_response_digit_map);
|
||||
|
||||
@@ -1195,7 +1197,7 @@ if ($call_handle_method =~ /SURVEY/)
|
||||
$AGI->stream_file($survey_opt_in_audio_file);
|
||||
}
|
||||
|
||||
if ($survey_method =~ /VOICEMAIL|EXTENSION|HANGUP/)
|
||||
if ($survey_method =~ /VOICEMAIL|EXTENSION|HANGUP|CALLMENU/)
|
||||
{
|
||||
$DROPexten='';
|
||||
if ($survey_method =~ /VOICEMAIL/)
|
||||
@@ -1227,6 +1229,15 @@ if ($call_handle_method =~ /SURVEY/)
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($survey_method =~ /CALLMENU/)
|
||||
{
|
||||
$survey_status='SVYCLM';
|
||||
if (length($survey_menu_id)>0)
|
||||
{
|
||||
$DROPexten = 's';
|
||||
$ext_context = $survey_menu_id;
|
||||
}
|
||||
}
|
||||
if ($survey_method =~ /HANGUP/)
|
||||
{
|
||||
$survey_status='SVYHU';
|
||||
@@ -1256,6 +1267,24 @@ if ($call_handle_method =~ /SURVEY/)
|
||||
&agi_output;
|
||||
}
|
||||
|
||||
if ($enable_queuemetrics_logging > 0)
|
||||
{
|
||||
$dbhB = DBI->connect("DBI:mysql:$queuemetrics_dbname:$queuemetrics_server_ip:3306", "$queuemetrics_login", "$queuemetrics_pass")
|
||||
or die "Couldn't connect to database: " . DBI->errstr;
|
||||
|
||||
if ($DBX) {print "CONNECTED TO DATABASE: $queuemetrics_server_ip|$queuemetrics_dbname\n";}
|
||||
|
||||
$stmtB = "INSERT INTO queue_log SET partition='P01',time_id='$now_date_epoch',call_id='$callerid',queue='$VDADcampaign',agent='NONE',verb='EXITWITHTIMEOUT',data1='1',serverid='$queuemetrics_log_id';";
|
||||
$Baffected_rows = $dbhB->do($stmtB);
|
||||
$dbhP=$dbhB; $stmtA=$stmtB; $mysql_count='01XXX'; $MEL_aff_rows=$Baffected_rows; &mysql_error_logging;
|
||||
|
||||
$stmtB = "INSERT INTO queue_log SET partition='P01',time_id='$now_date_epoch',call_id='$callerid',queue='$VDADcampaign',agent='NONE',verb='CALLSTATUS',data1='$survey_status',serverid='$queuemetrics_log_id';";
|
||||
$Baffected_rows = $dbhB->do($stmtB);
|
||||
$dbhP=$dbhB; $stmtA=$stmtB; $mysql_count='01XXX'; $MEL_aff_rows=$Baffected_rows; &mysql_error_logging;
|
||||
|
||||
$dbhB->disconnect();
|
||||
}
|
||||
|
||||
if (length($DROPexten) > 0)
|
||||
{
|
||||
$stmtA = "UPDATE vicidial_auto_calls set status='XFER',stage='XFER-0' where callerid='$callerid' order by call_time desc limit 1;";
|
||||
@@ -1263,7 +1292,7 @@ if ($call_handle_method =~ /SURVEY/)
|
||||
$dbhP=$dbhA; $mysql_count='01025'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
if ($AGILOG) {$agi_string = "-- VDAC XFER status: |$affected_rows|$FDtsSQLdate|$callerid|"; &agi_output;}
|
||||
|
||||
if ($AGILOG) {$agi_string = "exiting the VDAD SURVEY app, transferring call to $DROPexten"; &agi_output;}
|
||||
if ($AGILOG) {$agi_string = "exiting the VDAD SURVEY app, transferring call to $DROPexten $ext_context"; &agi_output;}
|
||||
print "SET CONTEXT $ext_context\n";
|
||||
checkresult($result);
|
||||
print "SET EXTENSION $DROPexten\n";
|
||||
|
||||
@@ -58,3 +58,4 @@ DISPO - Agent in disposition screen when they closed their web browser wiithout
|
||||
WAITTO - Wait time option call termination on inbound call
|
||||
PDROP - Pre-routing dropped call, call hung up the instant the Answer signal is received
|
||||
IVRXFR - Outbound drop to Call Menu
|
||||
SVYCLM - Survey sent to Call Menu - Survey outbound campaign status only
|
||||
|
||||
@@ -704,7 +704,7 @@ survey_dtmf_digits VARCHAR(16) default '1238',
|
||||
survey_ni_digit VARCHAR(1) default '8',
|
||||
survey_opt_in_audio_file VARCHAR(50) default 'US_pol_survey_transfer',
|
||||
survey_ni_audio_file VARCHAR(50) default 'US_thanks_no_contact',
|
||||
survey_method ENUM('AGENT_XFER','VOICEMAIL','EXTENSION','HANGUP','CAMPREC_60_WAV') default 'AGENT_XFER',
|
||||
survey_method ENUM('AGENT_XFER','VOICEMAIL','EXTENSION','HANGUP','CAMPREC_60_WAV','CALLMENU') default 'AGENT_XFER',
|
||||
survey_no_response_action ENUM('OPTIN','OPTOUT') default 'OPTIN',
|
||||
survey_ni_status VARCHAR(6) default 'NI',
|
||||
survey_response_digit_map VARCHAR(255) default '1-DEMOCRAT|2-REPUBLICAN|3-INDEPENDANT|8-OPTOUT|X-NO RESPONSE|',
|
||||
@@ -808,7 +808,8 @@ available_only_tally_threshold_agents SMALLINT(5) UNSIGNED default '0',
|
||||
dial_level_threshold ENUM('DISABLED','LOGGED-IN_AGENTS','NON-PAUSED_AGENTS','WAITING_AGENTS') default 'DISABLED',
|
||||
dial_level_threshold_agents SMALLINT(5) UNSIGNED default '0',
|
||||
safe_harbor_audio VARCHAR(100) default 'buzz',
|
||||
safe_harbor_menu_id VARCHAR(50) default ''
|
||||
safe_harbor_menu_id VARCHAR(50) default '',
|
||||
survey_menu_id VARCHAR(50) default ''
|
||||
);
|
||||
|
||||
CREATE TABLE vicidial_lists (
|
||||
@@ -2496,7 +2497,7 @@ ALTER TABLE vicidial_closer_log_archive MODIFY closecallid INT(9) UNSIGNED NOT N
|
||||
|
||||
CREATE TABLE vicidial_outbound_ivr_log_archive LIKE vicidial_outbound_ivr_log;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1277',db_schema_update_date=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1278',db_schema_update_date=NOW();
|
||||
|
||||
GRANT RELOAD ON *.* TO cron@'%';
|
||||
GRANT RELOAD ON *.* TO cron@localhost;
|
||||
|
||||
@@ -804,3 +804,8 @@ UPDATE system_settings SET db_schema_version='1276',db_schema_update_date=NOW()
|
||||
ALTER TABLE phones ADD webphone_auto_answer ENUM('Y','N') default 'Y';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1277',db_schema_update_date=NOW() where db_schema_version < 1277;
|
||||
|
||||
ALTER TABLE vicidial_campaigns MODIFY survey_method ENUM('AGENT_XFER','VOICEMAIL','EXTENSION','HANGUP','CAMPREC_60_WAV','CALLMENU') default 'AGENT_XFER';
|
||||
ALTER TABLE vicidial_campaigns ADD survey_menu_id VARCHAR(50) default '';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1278',db_schema_update_date=NOW() where db_schema_version < 1278;
|
||||
|
||||
@@ -591,6 +591,9 @@ No DTMF Logging||
|
||||
DTMF Logging Enabled||
|
||||
Webphone Auto-Answer||
|
||||
This setting allows the web phone to be set to automatically answer calls that come in by setting it to Y, or to have calls ring by setting it to N. Default is Y||
|
||||
CALLMENU will send the customer to the Call Menu defined in the select list below||
|
||||
Survey Call Menu||
|
||||
If the method is set to CALLMENU, this is the Call Menu that the customer is sent to if they opt-in||
|
||||
|
||||
|
||||
admin_campaign_multi_alt.php
|
||||
|
||||
+70
-11
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user