Added option to populate the entry_list_id from the DID when routing to an
In-Group git-svn-id: svn://192.168.202.10@2302 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -864,30 +864,30 @@ code country areacode state GMT DST DST_RANGE GEOGRAPHIC DESCRIPTION TZ_CODE
|
|||||||
57 COL * -5 N Columbia COT
|
57 COL * -5 N Columbia COT
|
||||||
58 VEN * -4 N Venezuela VET
|
58 VEN * -4 N Venezuela VET
|
||||||
60 MYS * +8 N Malaysia MYT
|
60 MYS * +8 N Malaysia MYT
|
||||||
61 AUS 2 NS +10 Y FSO-LSM New South Wales & Capitol EST
|
61 AUS 2 NS +10 Y FSO-FSA New South Wales & Capitol EST
|
||||||
61 AUS 3 VI +10 Y FSO-LSM Victoria EST
|
61 AUS 3 VI +10 Y FSO-FSA Victoria EST
|
||||||
61 AUS 5 +10 Y FSO-LSM Prefix 5 nonexistant EST
|
61 AUS 5 +10 Y FSO-FSA Prefix 5 nonexistant EST
|
||||||
61 AUS 7 QL +10 N Queensland EST
|
61 AUS 7 QL +10 N Queensland EST
|
||||||
61 AUS 36 TA +10 Y FSO-LSM Tasmania EST
|
61 AUS 36 TA +10 Y FSO-FSA Tasmania EST
|
||||||
61 AUS 80 SA +9.5 Y FSO-LSM Southern Australia CST
|
61 AUS 80 SA +9.5 Y FSO-FSA Southern Australia CST
|
||||||
61 AUS 81 SA +9.5 Y FSO-LSM Southern Australia CST
|
61 AUS 81 SA +9.5 Y FSO-FSA Southern Australia CST
|
||||||
61 AUS 82 WA +8 N LSO-LSM Western Australia WST
|
61 AUS 82 WA +8 N Western Australia WST
|
||||||
61 AUS 83 SA +9.5 Y FSO-LSM Southern Australia CST
|
61 AUS 83 SA +9.5 Y FSO-FSA Southern Australia CST
|
||||||
61 AUS 84 WA +8 N LSO-LSM Western Australia WST
|
61 AUS 84 WA +8 N Western Australia WST
|
||||||
61 AUS 85 SA +9.5 Y FSO-LSM Southern Australia CST
|
61 AUS 85 SA +9.5 Y FSO-FSA Southern Australia CST
|
||||||
61 AUS 86 WA +8 N LSO-LSM Western Australia WST
|
61 AUS 86 WA +8 N Western Australia WST
|
||||||
61 AUS 88 SA +9.5 Y FSO-LSM Southern Australia CST
|
61 AUS 88 SA +9.5 Y FSO-FSA Southern Australia CST
|
||||||
61 AUS 89 WA +8 N LSO-LSM Western Australia WST
|
61 AUS 89 WA +8 N Western Australia WST
|
||||||
61 AUS 889 NT +9.5 N Northern Territory CST
|
61 AUS 889 NT +9.5 N Northern Territory CST
|
||||||
61 AUS 4S WA +8 N Mobile numbers Western Australia WST
|
61 AUS 4S WA +8 N Mobile numbers Western Australia WST
|
||||||
61 AUS 4S NT +9.5 N Mobile numbers Northern Territory CST
|
61 AUS 4S NT +9.5 N Mobile numbers Northern Territory CST
|
||||||
61 AUS 4S SA +9.5 Y FSO-LSM Mobile numbers South Australia CST
|
61 AUS 4S SA +9.5 Y FSO-FSA Mobile numbers South Australia CST
|
||||||
61 AUS 4S TA +10 Y FSO-LSM Mobile numbers Tasmania EST
|
61 AUS 4S TA +10 Y FSO-FSA Mobile numbers Tasmania EST
|
||||||
61 AUS 4S AC +10 Y FSO-LSM Mobile numbers Capitol EST
|
61 AUS 4S AC +10 Y FSO-FSA Mobile numbers Capitol EST
|
||||||
61 AUS 4S NS +10 Y FSO-LSM Mobile numbers New South Wales EST
|
61 AUS 4S NS +10 Y FSO-FSA Mobile numbers New South Wales EST
|
||||||
61 AUS 4S +10 Y FSO-LSM Mobile numbers No State Given EST
|
61 AUS 4S +10 Y FSO-FSA Mobile numbers No State Given EST
|
||||||
61 AUS 4S QL +10 Y Mobile numbers Queensland EST
|
61 AUS 4S QL +10 N Mobile numbers Queensland EST
|
||||||
61 AUS 4S VI +10 Y FSO-LSM Mobile numbers Victoria EST
|
61 AUS 4S VI +10 Y FSO-FSA Mobile numbers Victoria EST
|
||||||
62 IDN * +7 N Indonesia WIB
|
62 IDN * +7 N Indonesia WIB
|
||||||
63 PHL * +8 N Philippines PHT
|
63 PHL * +8 N Philippines PHT
|
||||||
64 NZL * +12 Y FSO-TSM New Zealand NZST
|
64 NZL * +12 Y FSO-TSM New Zealand NZST
|
||||||
|
|||||||
@@ -62,6 +62,9 @@ OTHER CHANGES:
|
|||||||
2. Added ability to use single-quotes in vicidial_list fields. Through the
|
2. Added ability to use single-quotes in vicidial_list fields. Through the
|
||||||
agent screen and all lead import methods
|
agent screen and all lead import methods
|
||||||
|
|
||||||
|
3. Added option to populate the entry_list_id from the DID when routing to an
|
||||||
|
In-Group
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
#
|
#
|
||||||
# agi-VDAD_ALL_inbound.agi version 2.10
|
# agi-VDAD_ALL_inbound.agi version 2.12
|
||||||
#
|
#
|
||||||
# runs when a call comes in from an inbound call. This script will
|
# runs when a call comes in from an inbound call. This script will
|
||||||
# send the calls out to the closers that are logged in.
|
# send the calls out to the closers that are logged in.
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
#exten => _99909*.,2,AGI(agi-VDAD_ALL_inbound.agi)
|
#exten => _99909*.,2,AGI(agi-VDAD_ALL_inbound.agi)
|
||||||
#exten => _99909*.,3,Hangup
|
#exten => _99909*.,3,Hangup
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||||
#
|
#
|
||||||
# changes:
|
# changes:
|
||||||
# 70828-0924 - First Build
|
# 70828-0924 - First Build
|
||||||
@@ -192,6 +192,7 @@
|
|||||||
# 140312-2111 - Added CALLID as recording filename variable
|
# 140312-2111 - Added CALLID as recording filename variable
|
||||||
# 140417-0932 - Added max inbound calls feature
|
# 140417-0932 - Added max inbound calls feature
|
||||||
# 141211-2028 - Added list_id to call url functions
|
# 141211-2028 - Added list_id to call url functions
|
||||||
|
# 150404-1011 - Added entry_list_id related DID options
|
||||||
#
|
#
|
||||||
|
|
||||||
$script = 'agi-VDAD_ALL_inbound.agi';
|
$script = 'agi-VDAD_ALL_inbound.agi';
|
||||||
@@ -207,6 +208,7 @@ $mysql_log_count=208;
|
|||||||
$one_mysql_log=0;
|
$one_mysql_log=0;
|
||||||
$dial_ingroup_flag=0;
|
$dial_ingroup_flag=0;
|
||||||
$called_count=1;
|
$called_count=1;
|
||||||
|
$entry_list_id=0;
|
||||||
|
|
||||||
|
|
||||||
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
|
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
|
||||||
@@ -320,7 +322,7 @@ $sthA->finish();
|
|||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
##### START SYSTEM SETTINGS LOOKUP #####
|
##### START SYSTEM SETTINGS LOOKUP #####
|
||||||
$stmtA = "SELECT enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_log_id,queuemetrics_eq_prepend,queuemetrics_pe_phone_append,did_agent_log,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,did_ra_extensions_enabled,queuemetrics_socket,queuemetrics_socket_url FROM system_settings;";
|
$stmtA = "SELECT enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_log_id,queuemetrics_eq_prepend,queuemetrics_pe_phone_append,did_agent_log,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,did_ra_extensions_enabled,queuemetrics_socket,queuemetrics_socket_url,enable_did_entry_list_id FROM system_settings;";
|
||||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||||
$sthArows=$sthA->rows;
|
$sthArows=$sthA->rows;
|
||||||
@@ -345,6 +347,7 @@ if ($sthArows > 0)
|
|||||||
$did_ra_extensions_enabled = $aryA[14];
|
$did_ra_extensions_enabled = $aryA[14];
|
||||||
$queuemetrics_socket = $aryA[15];
|
$queuemetrics_socket = $aryA[15];
|
||||||
$queuemetrics_socket_url = $aryA[16];
|
$queuemetrics_socket_url = $aryA[16];
|
||||||
|
$enable_did_entry_list_id = $aryA[17];
|
||||||
}
|
}
|
||||||
$sthA->finish();
|
$sthA->finish();
|
||||||
##### END SYSTEM SETTINGS LOOKUP #####
|
##### END SYSTEM SETTINGS LOOKUP #####
|
||||||
@@ -454,11 +457,11 @@ if ($extension =~ /^999\d\d\*/)
|
|||||||
### Grab DID values from the database
|
### Grab DID values from the database
|
||||||
if ($route_type =~ /FILTER/)
|
if ($route_type =~ /FILTER/)
|
||||||
{
|
{
|
||||||
$stmtA = "SELECT filter_call_handle_method,filter_agent_search_method,filter_group_id,did_pattern,filter_list_id,filter_phone_code,filter_campaign_id,filter_user,filter_user_unavailable_action,filter_user_route_settings_ingroup,filter_action,filter_voicemail_ext,filter_extension,filter_exten_context,filter_phone,filter_server_ip FROM vicidial_inbound_dids where did_id = '$did_id';";
|
$stmtA = "SELECT filter_call_handle_method,filter_agent_search_method,filter_group_id,did_pattern,filter_list_id,filter_phone_code,filter_campaign_id,filter_user,filter_user_unavailable_action,filter_user_route_settings_ingroup,filter_action,filter_voicemail_ext,filter_extension,filter_exten_context,filter_phone,filter_server_ip,filter_entry_list_id FROM vicidial_inbound_dids where did_id = '$did_id';";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$stmtA = "SELECT call_handle_method,agent_search_method,group_id,did_pattern,list_id,phone_code,campaign_id,user,user_unavailable_action,user_route_settings_ingroup,did_route,voicemail_ext,extension,exten_context,phone,server_ip FROM vicidial_inbound_dids where did_id = '$did_id';";
|
$stmtA = "SELECT call_handle_method,agent_search_method,group_id,did_pattern,list_id,phone_code,campaign_id,user,user_unavailable_action,user_route_settings_ingroup,did_route,voicemail_ext,extension,exten_context,phone,server_ip,entry_list_id FROM vicidial_inbound_dids where did_id = '$did_id';";
|
||||||
}
|
}
|
||||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||||
@@ -483,6 +486,7 @@ if ($extension =~ /^999\d\d\*/)
|
|||||||
$did_exten_context = $aryA[13];
|
$did_exten_context = $aryA[13];
|
||||||
$did_phone = $aryA[14];
|
$did_phone = $aryA[14];
|
||||||
$did_phone_server_ip = $aryA[15];
|
$did_phone_server_ip = $aryA[15];
|
||||||
|
$entry_list_id = $aryA[16];
|
||||||
if ($did_route =~ /AGENT/)
|
if ($did_route =~ /AGENT/)
|
||||||
{$channel_group = $user_route_settings_ingroup;}
|
{$channel_group = $user_route_settings_ingroup;}
|
||||||
else
|
else
|
||||||
@@ -977,8 +981,14 @@ if ($call_handle_method =~ /LOOKUP/)
|
|||||||
{
|
{
|
||||||
if ( ( ($call_handle_method =~ /^VID/) && (length($vendor_id)) < 3) || (length($phone_number) < 3) )
|
if ( ( ($call_handle_method =~ /^VID/) && (length($vendor_id)) < 3) || (length($phone_number) < 3) )
|
||||||
{
|
{
|
||||||
|
$entry_list_idSQLa=''; $entry_list_idSQLb='';
|
||||||
|
if ( ($enable_did_entry_list_id > 0) && ($entry_list_id > 0) )
|
||||||
|
{
|
||||||
|
$entry_list_idSQLa=',entry_list_id';
|
||||||
|
$entry_list_idSQLb=",'$entry_list_id'";
|
||||||
|
}
|
||||||
### insert a record into the vicidial_list table
|
### insert a record into the vicidial_list table
|
||||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$list_id','Y','$phone_code','$phone_number','$channel_group','$called_count','$local_gmt','$VLcomments');";
|
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$list_id','Y','$phone_code','$phone_number','$channel_group','$called_count','$local_gmt','$VLcomments'$entry_list_idSQLb);";
|
||||||
$affected_rows = $dbhA->do($stmtA);
|
$affected_rows = $dbhA->do($stmtA);
|
||||||
$dbhP=$dbhA; $mysql_count='02007'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
$dbhP=$dbhA; $mysql_count='02007'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||||
$cbc=0;
|
$cbc=0;
|
||||||
@@ -1120,8 +1130,14 @@ if ($call_handle_method =~ /LOOKUP/)
|
|||||||
}
|
}
|
||||||
if ($VLfound < 1)
|
if ($VLfound < 1)
|
||||||
{
|
{
|
||||||
|
$entry_list_idSQLa=''; $entry_list_idSQLb='';
|
||||||
|
if ( ($enable_did_entry_list_id > 0) && ($entry_list_id > 0) )
|
||||||
|
{
|
||||||
|
$entry_list_idSQLa=',entry_list_id';
|
||||||
|
$entry_list_idSQLb=",'$entry_list_id'";
|
||||||
|
}
|
||||||
### insert a record into the vicidial_list table
|
### insert a record into the vicidial_list table
|
||||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$list_id','Y','$phone_code','$phone_number','$channel_group','$called_count','$local_gmt','$VLcomments');";
|
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$list_id','Y','$phone_code','$phone_number','$channel_group','$called_count','$local_gmt','$VLcomments'$entry_list_idSQLb);";
|
||||||
$affected_rows = $dbhA->do($stmtA);
|
$affected_rows = $dbhA->do($stmtA);
|
||||||
$dbhP=$dbhA; $mysql_count='02011'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
$dbhP=$dbhA; $mysql_count='02011'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||||
$cbc=0;
|
$cbc=0;
|
||||||
@@ -1197,8 +1213,14 @@ else
|
|||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$entry_list_idSQLa=''; $entry_list_idSQLb='';
|
||||||
|
if ( ($enable_did_entry_list_id > 0) && ($entry_list_id > 0) )
|
||||||
|
{
|
||||||
|
$entry_list_idSQLa=',entry_list_id';
|
||||||
|
$entry_list_idSQLb=",'$entry_list_id'";
|
||||||
|
}
|
||||||
### insert a record into the vicidial_list table if no record was found above
|
### insert a record into the vicidial_list table if no record was found above
|
||||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$list_id','Y','$phone_code','$phone_number','$channel_group','$called_count','-5.00','$VLcomments');";
|
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$list_id','Y','$phone_code','$phone_number','$channel_group','$called_count','-5.00','$VLcomments'$entry_list_idSQLb);";
|
||||||
$affected_rows = $dbhA->do($stmtA);
|
$affected_rows = $dbhA->do($stmtA);
|
||||||
$dbhP=$dbhA; $mysql_count='02014'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
$dbhP=$dbhA; $mysql_count='02014'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||||
$cbc=0;
|
$cbc=0;
|
||||||
@@ -4196,8 +4218,14 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override
|
|||||||
# if callerid is not valid do not execute
|
# if callerid is not valid do not execute
|
||||||
if ( ( length($phone_number) > 6 ) && ( $phone_number > 0) )
|
if ( ( length($phone_number) > 6 ) && ( $phone_number > 0) )
|
||||||
{
|
{
|
||||||
|
$entry_list_idSQLa=''; $entry_list_idSQLb='';
|
||||||
|
if ( ($enable_did_entry_list_id > 0) && ($entry_list_id > 0) )
|
||||||
|
{
|
||||||
|
$entry_list_idSQLa=',entry_list_id';
|
||||||
|
$entry_list_idSQLb=",'$entry_list_id'";
|
||||||
|
}
|
||||||
### insert a record into the vicidial_list table
|
### insert a record into the vicidial_list table
|
||||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$wait_time_option_callback_list_id','N','$phone_code','$phone_number','$channel_group','$called_count','$local_gmt','$VLcomments');";
|
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$wait_time_option_callback_list_id','N','$phone_code','$phone_number','$channel_group','$called_count','$local_gmt','$VLcomments'$entry_list_idSQLb);";
|
||||||
$affected_rows = $dbhA->do($stmtA);
|
$affected_rows = $dbhA->do($stmtA);
|
||||||
$dbhP=$dbhA; $mysql_count='02089'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
$dbhP=$dbhA; $mysql_count='02089'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||||
$stmtB = "SELECT LAST_INSERT_ID() LIMIT 1;";
|
$stmtB = "SELECT LAST_INSERT_ID() LIMIT 1;";
|
||||||
@@ -4627,8 +4655,14 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override
|
|||||||
# if callerid is not valid do not execute
|
# if callerid is not valid do not execute
|
||||||
if ( ( length($phone_number) > 6 ) && ( $phone_number > 0) )
|
if ( ( length($phone_number) > 6 ) && ( $phone_number > 0) )
|
||||||
{
|
{
|
||||||
|
$entry_list_idSQLa=''; $entry_list_idSQLb='';
|
||||||
|
if ( ($enable_did_entry_list_id > 0) && ($entry_list_id > 0) )
|
||||||
|
{
|
||||||
|
$entry_list_idSQLa=',entry_list_id';
|
||||||
|
$entry_list_idSQLb=",'$entry_list_id'";
|
||||||
|
}
|
||||||
### insert a record into the vicidial_list table
|
### insert a record into the vicidial_list table
|
||||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$hold_time_option_callback_list_id','N','$phone_code','$phone_number','$channel_group','$called_count','$local_gmt','$VLcomments');";
|
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$hold_time_option_callback_list_id','N','$phone_code','$phone_number','$channel_group','$called_count','$local_gmt','$VLcomments'$entry_list_idSQLb);";
|
||||||
$affected_rows = $dbhA->do($stmtA);
|
$affected_rows = $dbhA->do($stmtA);
|
||||||
$dbhP=$dbhA; $mysql_count='02089'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
$dbhP=$dbhA; $mysql_count='02089'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||||
$stmtB = "SELECT LAST_INSERT_ID() LIMIT 1;";
|
$stmtB = "SELECT LAST_INSERT_ID() LIMIT 1;";
|
||||||
|
|||||||
@@ -722,11 +722,11 @@ else
|
|||||||
while ($sthArows > $rec_count)
|
while ($sthArows > $rec_count)
|
||||||
{
|
{
|
||||||
@aryA = $sthA->fetchrow_array;
|
@aryA = $sthA->fetchrow_array;
|
||||||
$lead_id = $aryA[0];
|
$lead_id = $aryA[0];
|
||||||
$vicidial_id = $aryA[1];
|
$vicidial_id = $aryA[1];
|
||||||
$uniqueid = $aryA[1];
|
$uniqueid = $aryA[1];
|
||||||
$length_in_sec = $aryA[2];
|
$length_in_sec = $aryA[2];
|
||||||
$epoch = $aryA[3];
|
$epoch = $aryA[3];
|
||||||
|
|
||||||
$outbound = 'Y';
|
$outbound = 'Y';
|
||||||
$domestic = 'Y';
|
$domestic = 'Y';
|
||||||
@@ -753,12 +753,12 @@ else
|
|||||||
while ($sthArows > $rec_count)
|
while ($sthArows > $rec_count)
|
||||||
{
|
{
|
||||||
@aryA = $sthA->fetchrow_array;
|
@aryA = $sthA->fetchrow_array;
|
||||||
$lead_id = $aryA[0];
|
$lead_id = $aryA[0];
|
||||||
$xfercallid = $aryA[1];
|
$xfercallid = $aryA[1];
|
||||||
$vicidial_id = $aryA[2];
|
$vicidial_id = $aryA[2];
|
||||||
$uniqueid = $aryA[3];
|
$uniqueid = $aryA[3];
|
||||||
$length_in_sec = $aryA[4];
|
$length_in_sec = $aryA[4];
|
||||||
$epoch = $aryA[5];
|
$epoch = $aryA[5];
|
||||||
|
|
||||||
$outbound = 'N';
|
$outbound = 'N';
|
||||||
$domestic = 'Y';
|
$domestic = 'Y';
|
||||||
|
|||||||
@@ -1584,7 +1584,8 @@ allow_chats ENUM('0','1') default '0',
|
|||||||
enable_languages ENUM('0','1') default '0',
|
enable_languages ENUM('0','1') default '0',
|
||||||
language_method VARCHAR(20) default 'DISABLED',
|
language_method VARCHAR(20) default 'DISABLED',
|
||||||
meetme_enter_login_filename VARCHAR(255) default '',
|
meetme_enter_login_filename VARCHAR(255) default '',
|
||||||
meetme_enter_leave3way_filename VARCHAR(255) default ''
|
meetme_enter_leave3way_filename VARCHAR(255) default '',
|
||||||
|
enable_did_entry_list_id ENUM('0','1') default '0'
|
||||||
) ENGINE=MyISAM;
|
) ENGINE=MyISAM;
|
||||||
|
|
||||||
CREATE TABLE vicidial_campaigns_list_mix (
|
CREATE TABLE vicidial_campaigns_list_mix (
|
||||||
@@ -1891,6 +1892,8 @@ no_agent_ingroup_id VARCHAR(20) default '',
|
|||||||
no_agent_ingroup_extension VARCHAR(50) default '9998811112',
|
no_agent_ingroup_extension VARCHAR(50) default '9998811112',
|
||||||
pre_filter_phone_group_id VARCHAR(20) default '',
|
pre_filter_phone_group_id VARCHAR(20) default '',
|
||||||
pre_filter_extension VARCHAR(50) default '',
|
pre_filter_extension VARCHAR(50) default '',
|
||||||
|
entry_list_id BIGINT(14) UNSIGNED default '0',
|
||||||
|
filter_entry_list_id BIGINT(14) UNSIGNED default '0',
|
||||||
unique index (did_pattern),
|
unique index (did_pattern),
|
||||||
index (group_id)
|
index (group_id)
|
||||||
) ENGINE=MyISAM;
|
) ENGINE=MyISAM;
|
||||||
@@ -3334,8 +3337,8 @@ INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,cate
|
|||||||
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('ADC','Disconnected Number Auto','N','N','UNDEFINED','N','N','N','N','Y','N','N');
|
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('ADC','Disconnected Number Auto','N','N','UNDEFINED','N','N','N','N','Y','N','N');
|
||||||
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('DEC','Declined Sale','Y','Y','UNDEFINED','N','N','Y','N','N','N','N');
|
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('DEC','Declined Sale','Y','Y','UNDEFINED','N','N','Y','N','N','N','N');
|
||||||
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('DNC','DO NOT CALL','Y','Y','UNDEFINED','N','Y','N','N','N','N','Y');
|
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('DNC','DO NOT CALL','Y','Y','UNDEFINED','N','Y','N','N','N','N','Y');
|
||||||
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('DNCL','DO NOT CALL Hopper Match','N','N','UNDEFINED','N','Y','N','N','N','N','Y');
|
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('DNCL','DO NOT CALL Hopper Sys Match','N','N','UNDEFINED','N','Y','N','N','N','N','Y');
|
||||||
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('DNCC','DO NOT CALL Camp Match','N','N','UNDEFINED','N','Y','N','N','N','N','Y');
|
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('DNCC','DO NOT CALL Hopper Camp Match','N','N','UNDEFINED','N','Y','N','N','N','N','Y');
|
||||||
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('SALE','Sale Made','Y','Y','UNDEFINED','Y','N','N','N','N','N','Y');
|
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('SALE','Sale Made','Y','Y','UNDEFINED','Y','N','N','N','N','N','Y');
|
||||||
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('N','No Answer','Y','N','UNDEFINED','N','N','N','N','N','N','N');
|
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('N','No Answer','Y','N','UNDEFINED','N','N','N','N','N','N','N');
|
||||||
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('NI','Not Interested','Y','Y','UNDEFINED','N','N','Y','Y','N','N','N');
|
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('NI','Not Interested','Y','Y','UNDEFINED','N','N','Y','Y','N','N','N');
|
||||||
@@ -3372,4 +3375,4 @@ UPDATE vicidial_configuration set value='1766' where name='qc_database_version';
|
|||||||
|
|
||||||
UPDATE system_settings set vdc_agent_api_active='1';
|
UPDATE system_settings set vdc_agent_api_active='1';
|
||||||
|
|
||||||
UPDATE system_settings SET db_schema_version='1406',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
UPDATE system_settings SET db_schema_version='1407',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||||
|
|||||||
@@ -6,3 +6,10 @@ ALTER TABLE system_settings ADD meetme_enter_login_filename VARCHAR(255) default
|
|||||||
ALTER TABLE system_settings ADD meetme_enter_leave3way_filename VARCHAR(255) default '';
|
ALTER TABLE system_settings ADD meetme_enter_leave3way_filename VARCHAR(255) default '';
|
||||||
|
|
||||||
UPDATE system_settings SET db_schema_version='1406',db_schema_update_date=NOW() where db_schema_version < 1406;
|
UPDATE system_settings SET db_schema_version='1406',db_schema_update_date=NOW() where db_schema_version < 1406;
|
||||||
|
|
||||||
|
ALTER TABLE system_settings ADD enable_did_entry_list_id ENUM('0','1') default '0';
|
||||||
|
|
||||||
|
ALTER TABLE vicidial_inbound_dids ADD entry_list_id BIGINT(14) UNSIGNED default '0';
|
||||||
|
ALTER TABLE vicidial_inbound_dids ADD filter_entry_list_id BIGINT(14) UNSIGNED default '0';
|
||||||
|
|
||||||
|
UPDATE system_settings SET db_schema_version='1407',db_schema_update_date=NOW() where db_schema_version < 1407;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -42,6 +42,7 @@
|
|||||||
# 150218-0800 - Added Callbacks Bulk Move help
|
# 150218-0800 - Added Callbacks Bulk Move help
|
||||||
# 150223-1548 - Added DYN option to am_message_exten
|
# 150223-1548 - Added DYN option to am_message_exten
|
||||||
# 150307-2317 - Added custom meetme enter options
|
# 150307-2317 - Added custom meetme enter options
|
||||||
|
# 150404-0934 - Added enable_did_entry_list_id and related DID options
|
||||||
#
|
#
|
||||||
|
|
||||||
require("dbconnect_mysqli.php");
|
require("dbconnect_mysqli.php");
|
||||||
@@ -2674,6 +2675,11 @@ if ($SSqc_features_active > 0)
|
|||||||
<BR>
|
<BR>
|
||||||
<B><?php echo _QXZ("In-Group List ID"); ?> -</B><?php echo _QXZ("If IN_GROUP is selected as the DID Route, then this is the List ID that leads may be searched through and that leads will be inserted into if necessary."); ?>
|
<B><?php echo _QXZ("In-Group List ID"); ?> -</B><?php echo _QXZ("If IN_GROUP is selected as the DID Route, then this is the List ID that leads may be searched through and that leads will be inserted into if necessary."); ?>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
<A NAME="inbound_dids-entry_list_id">
|
||||||
|
<BR>
|
||||||
|
<B><?php echo _QXZ("In-Group Entry List ID"); ?> -</B><?php echo _QXZ("If IN_GROUP is selected as the DID Route, then this is the Entry List ID that a new lead will be populated with if a new lead is added. Default is 0 for disabled."); ?>
|
||||||
|
|
||||||
<BR>
|
<BR>
|
||||||
<A NAME="inbound_dids-campaign_id">
|
<A NAME="inbound_dids-campaign_id">
|
||||||
<BR>
|
<BR>
|
||||||
@@ -4663,6 +4669,11 @@ FR_SPAC 00 00 00 00 00 - <?php echo _QXZ("France space separated phone number");
|
|||||||
<BR>
|
<BR>
|
||||||
<B><?php echo _QXZ("Country Code List Stats"); ?> -</B><?php echo _QXZ("This setting if enabled will show a country code breakdown summary on the list modify screen. Default is 0 for disabled."); ?>
|
<B><?php echo _QXZ("Country Code List Stats"); ?> -</B><?php echo _QXZ("This setting if enabled will show a country code breakdown summary on the list modify screen. Default is 0 for disabled."); ?>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
<A NAME="settings-enable_did_entry_list_id">
|
||||||
|
<BR>
|
||||||
|
<B><?php echo _QXZ("Enable DID Entry List ID"); ?> -</B><?php echo _QXZ("This setting if enabled will allow a manager to define an entry list id to use on the DID modify screen. Default is 0 for disabled."); ?>
|
||||||
|
|
||||||
<BR>
|
<BR>
|
||||||
<A NAME="settings-enhanced_disconnect_logging">
|
<A NAME="settings-enhanced_disconnect_logging">
|
||||||
<BR>
|
<BR>
|
||||||
|
|||||||
Reference in New Issue
Block a user