Added omit_phone_code feature
fixed logfile name issue in AST_VDauto_dial and remote_agents bin scripts git-svn-id: svn://192.168.202.10@193 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -48,6 +48,7 @@
|
|||||||
# 60807-1438 - Changed to DBI
|
# 60807-1438 - Changed to DBI
|
||||||
# - changed to use /etc/astguiclient.conf for configs
|
# - changed to use /etc/astguiclient.conf for configs
|
||||||
# 60814-1749 - added option for no logging to file
|
# 60814-1749 - added option for no logging to file
|
||||||
|
# 60821-1546 - added option to not dial phone_code per campaign
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@@ -210,6 +211,8 @@ while($one_day_interval > 0)
|
|||||||
{
|
{
|
||||||
&get_time_now;
|
&get_time_now;
|
||||||
|
|
||||||
|
$VDADLOGfile = "$PATHlogs/vdautodial.$year-$mon-$mday";
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
###### first figure out how many calls should be placed for each campaign per server
|
###### first figure out how many calls should be placed for each campaign per server
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@@ -231,6 +234,7 @@ while($one_day_interval > 0)
|
|||||||
@DBIPgoalcalls=@MT;
|
@DBIPgoalcalls=@MT;
|
||||||
@DBIPmakecalls=@MT;
|
@DBIPmakecalls=@MT;
|
||||||
@DBIPclosercamp=@MT;
|
@DBIPclosercamp=@MT;
|
||||||
|
@DBIPomitcode=@MT;
|
||||||
|
|
||||||
$active_line_counter=0;
|
$active_line_counter=0;
|
||||||
$user_counter=0;
|
$user_counter=0;
|
||||||
@@ -290,7 +294,7 @@ while($one_day_interval > 0)
|
|||||||
|
|
||||||
### grab the dial_level and multiply by active agents to get your goalcalls
|
### grab the dial_level and multiply by active agents to get your goalcalls
|
||||||
$DBIPadlevel[$user_CIPct]=0;
|
$DBIPadlevel[$user_CIPct]=0;
|
||||||
$stmtA = "SELECT auto_dial_level,local_call_time,dial_timeout,dial_prefix,campaign_cid,active,campaign_vdad_exten,closer_campaigns FROM vicidial_campaigns where campaign_id='$DBIPcampaign[$user_CIPct]'";
|
$stmtA = "SELECT auto_dial_level,local_call_time,dial_timeout,dial_prefix,campaign_cid,active,campaign_vdad_exten,closer_campaigns,omit_phone_code FROM vicidial_campaigns where campaign_id='$DBIPcampaign[$user_CIPct]'";
|
||||||
$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;
|
||||||
@@ -306,6 +310,9 @@ while($one_day_interval > 0)
|
|||||||
$DBIPactive[$user_CIPct] = "$aryA[5]";
|
$DBIPactive[$user_CIPct] = "$aryA[5]";
|
||||||
$DBIPvdadexten[$user_CIPct] = "$aryA[6]";
|
$DBIPvdadexten[$user_CIPct] = "$aryA[6]";
|
||||||
$DBIPclosercamp[$user_CIPct] = "$aryA[7]";
|
$DBIPclosercamp[$user_CIPct] = "$aryA[7]";
|
||||||
|
$omit_phone_code = "$aryA[8]";
|
||||||
|
if ($omit_phone_code =~ /Y/) {$DBIPomitcode[$user_CIPct] = 1;}
|
||||||
|
else {$DBIPomitcode[$user_CIPct] = 0;}
|
||||||
$rec_count++;
|
$rec_count++;
|
||||||
}
|
}
|
||||||
$sthA->finish();
|
$sthA->finish();
|
||||||
@@ -499,14 +506,19 @@ while($one_day_interval > 0)
|
|||||||
|
|
||||||
$lead_id_call_list .= "$lead_id|";
|
$lead_id_call_list .= "$lead_id|";
|
||||||
|
|
||||||
|
### whether to omit phone_code or not
|
||||||
|
if ($DBIPomitcode[$user_CIPct] > 0)
|
||||||
|
{$Ndialstring = "$Local_out_prefix$phone_number";}
|
||||||
|
else
|
||||||
|
{$Ndialstring = "$Local_out_prefix$phone_code$phone_number";}
|
||||||
|
|
||||||
### use manager middleware-app to connect the next call to the meetme room
|
### use manager middleware-app to connect the next call to the meetme room
|
||||||
# VmmddhhmmssLLLLLLLLL
|
# VmmddhhmmssLLLLLLLLL
|
||||||
$VqueryCID = "V$CIDdate$PADlead_id";
|
$VqueryCID = "V$CIDdate$PADlead_id";
|
||||||
if ($CCID_on) {$CIDstring = "\"$VqueryCID\" <$CCID>";}
|
if ($CCID_on) {$CIDstring = "\"$VqueryCID\" <$CCID>";}
|
||||||
else {$CIDstring = "$VqueryCID";}
|
else {$CIDstring = "$VqueryCID";}
|
||||||
|
|
||||||
### insert a NEW record to the vicidial_manager table to be processed
|
### insert a NEW record to the vicidial_manager table to be processed
|
||||||
$stmtA = "INSERT INTO vicidial_manager values('','','$SQLdate','NEW','N','$DBIPaddress[$user_CIPct]','','Originate','$VqueryCID','Exten: $VDAD_dial_exten','Context: $ext_context','Channel: $local_DEF$Local_out_prefix$phone_code$phone_number$local_AMP$ext_context','Priority: 1','Callerid: $CIDstring','Timeout: $Local_dial_timeout','','','','')";
|
$stmtA = "INSERT INTO vicidial_manager values('','','$SQLdate','NEW','N','$DBIPaddress[$user_CIPct]','','Originate','$VqueryCID','Exten: $VDAD_dial_exten','Context: $ext_context','Channel: $local_DEF$Ndialstring$local_AMP$ext_context','Priority: 1','Callerid: $CIDstring','Timeout: $Local_dial_timeout','','','','')";
|
||||||
$affected_rows = $dbhA->do($stmtA);
|
$affected_rows = $dbhA->do($stmtA);
|
||||||
|
|
||||||
$event_string = "| number call dialed|$DBIPcampaign[$user_CIPct]|$VqueryCID|$stmtA|$gmt_offset_now|";
|
$event_string = "| number call dialed|$DBIPcampaign[$user_CIPct]|$VqueryCID|$stmtA|$gmt_offset_now|";
|
||||||
|
|||||||
@@ -177,6 +177,8 @@ while($one_day_interval > 0)
|
|||||||
{
|
{
|
||||||
&get_time_now;
|
&get_time_now;
|
||||||
|
|
||||||
|
$VDRLOGfile = "$PATHlogs/remoteagent.$year-$mon-$mday";
|
||||||
|
|
||||||
if ($endless_loop =~ /0$|5$/)
|
if ($endless_loop =~ /0$|5$/)
|
||||||
{
|
{
|
||||||
### Grab Server values from the database
|
### Grab Server values from the database
|
||||||
|
|||||||
@@ -473,7 +473,8 @@ wrapup_seconds SMALLINT(3) UNSIGNED default '0',
|
|||||||
wrapup_message VARCHAR(255) default 'Wrapup Call',
|
wrapup_message VARCHAR(255) default 'Wrapup Call',
|
||||||
closer_campaigns TEXT default '',
|
closer_campaigns TEXT default '',
|
||||||
use_internal_dnc ENUM('Y','N') default 'N',
|
use_internal_dnc ENUM('Y','N') default 'N',
|
||||||
allcalls_delay SMALLINT(3) UNSIGNED default '0'
|
allcalls_delay SMALLINT(3) UNSIGNED default '0',
|
||||||
|
omit_phone_code ENUM('Y','N') default 'N'
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE vicidial_lists (
|
CREATE TABLE vicidial_lists (
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ ALTER TABLE servers ADD sys_perf_log ENUM('Y','N') default 'N';
|
|||||||
ALTER TABLE servers ADD vd_server_logs ENUM('Y','N') default 'Y';
|
ALTER TABLE servers ADD vd_server_logs ENUM('Y','N') default 'Y';
|
||||||
ALTER TABLE servers ADD agi_output ENUM('NONE','STDERR','FILE','BOTH') default 'FILE';
|
ALTER TABLE servers ADD agi_output ENUM('NONE','STDERR','FILE','BOTH') default 'FILE';
|
||||||
ALTER TABLE vicidial_campaigns ADD allcalls_delay SMALLINT(3) UNSIGNED default '0';
|
ALTER TABLE vicidial_campaigns ADD allcalls_delay SMALLINT(3) UNSIGNED default '0';
|
||||||
|
ALTER TABLE vicidial_campaigns ADD omit_phone_code ENUM('Y','N') default 'N';
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ System Performance -<\/B> Setting this option to Y will enable logging of system
|
|||||||
Server Logs -<\/B> Setting this option to Y will enable logging of all VICIDIAL related scripts to their text log files. Setting this to N will stop writing logs to files for these processes, also the screen logging of asterisk will be disabled if this is set to N when Asterisk is started. Default is Y||
|
Server Logs -<\/B> Setting this option to Y will enable logging of all VICIDIAL related scripts to their text log files. Setting this to N will stop writing logs to files for these processes, also the screen logging of asterisk will be disabled if this is set to N when Asterisk is started. Default is Y||
|
||||||
AGI Output -<\/B> Setting this option to NONE will disable output from all VICIDIAL related AGI scripts. Setting this to STDERR will send the AGI output to the Asterisk CLI. Setting this to FILE will send the output to a file in the logs directory. Setting this to BOTH will send output to both the Asterisk CLI and a log file. Default is FILE||
|
AGI Output -<\/B> Setting this option to NONE will disable output from all VICIDIAL related AGI scripts. Setting this to STDERR will send the AGI output to the Asterisk CLI. Setting this to FILE will send the output to a file in the logs directory. Setting this to BOTH will send output to both the Asterisk CLI and a log file. Default is FILE||
|
||||||
Recording Delay -<\/B> For ALLCALLS recording only. This setting will delay the starting of the recording on all calls for the number of seconds specified in this field. Default is 0||
|
Recording Delay -<\/B> For ALLCALLS recording only. This setting will delay the starting of the recording on all calls for the number of seconds specified in this field. Default is 0||
|
||||||
|
Omit Phone Code -<\/B> This field allows you to leave out the phone_code field while dialing within VICIDIAL. For instance if you are dialing in the UK from the UK you would have 44 in as your phone_code field for all leads, but you just want to dial 10 digits in your dialplan extensions.conf to place calls instead of 44 then 10 digits. Default is N
|
||||||
|
|
||||||
############################################################ CLIENT
|
############################################################ CLIENT
|
||||||
|
|
||||||
|
|||||||
@@ -67,6 +67,7 @@
|
|||||||
# - $recipient - ('ANYONE,'USERONLY')
|
# - $recipient - ('ANYONE,'USERONLY')
|
||||||
# - $callback_id - ('12345','12346',...)
|
# - $callback_id - ('12345','12346',...)
|
||||||
# - $use_internal_dnc - ('Y','N')
|
# - $use_internal_dnc - ('Y','N')
|
||||||
|
# - $omit_phone_code - ('Y','N')
|
||||||
|
|
||||||
# changes
|
# changes
|
||||||
# 50629-1044 - First build of script
|
# 50629-1044 - First build of script
|
||||||
@@ -104,10 +105,11 @@
|
|||||||
# 60609-1148 - Added ability to check for manual dial numbers in DNC
|
# 60609-1148 - Added ability to check for manual dial numbers in DNC
|
||||||
# 60619-1117 - Added variable filters to close security holes for login form
|
# 60619-1117 - Added variable filters to close security holes for login form
|
||||||
# 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic
|
# 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic
|
||||||
|
# 60821-1600 - Added ability to omit the phone code on vicidial lead dialing
|
||||||
#
|
#
|
||||||
|
|
||||||
$version = '0.0.34';
|
$version = '2.0.35';
|
||||||
$build = '60623-1414';
|
$build = '60821-1600';
|
||||||
|
|
||||||
require("dbconnect.php");
|
require("dbconnect.php");
|
||||||
|
|
||||||
@@ -232,6 +234,8 @@ if (isset($_GET["callback_id"])) {$callback_id=$_GET["callback_id"];}
|
|||||||
elseif (isset($_POST["callback_id"])) {$callback_id=$_POST["callback_id"];}
|
elseif (isset($_POST["callback_id"])) {$callback_id=$_POST["callback_id"];}
|
||||||
if (isset($_GET["use_internal_dnc"])) {$use_internal_dnc=$_GET["use_internal_dnc"];}
|
if (isset($_GET["use_internal_dnc"])) {$use_internal_dnc=$_GET["use_internal_dnc"];}
|
||||||
elseif (isset($_POST["use_internal_dnc"])) {$use_internal_dnc=$_POST["use_internal_dnc"];}
|
elseif (isset($_POST["use_internal_dnc"])) {$use_internal_dnc=$_POST["use_internal_dnc"];}
|
||||||
|
if (isset($_GET["omit_phone_code"])) {$omit_phone_code=$_GET["omit_phone_code"];}
|
||||||
|
elseif (isset($_POST["omit_phone_code"])) {$omit_phone_code=$_POST["omit_phone_code"];}
|
||||||
|
|
||||||
|
|
||||||
$user=ereg_replace("[^0-9a-zA-Z]","",$user);
|
$user=ereg_replace("[^0-9a-zA-Z]","",$user);
|
||||||
@@ -534,9 +538,14 @@ if ($ACTION == 'manDiaLnextCaLL')
|
|||||||
if ($CCID_on) {$CIDstring = "\"$MqueryCID\" <$CCID>";}
|
if ($CCID_on) {$CIDstring = "\"$MqueryCID\" <$CCID>";}
|
||||||
else {$CIDstring = "$MqueryCID";}
|
else {$CIDstring = "$MqueryCID";}
|
||||||
|
|
||||||
|
### whether to omit phone_code or not
|
||||||
|
if (eregi('Y',$omit_phone_code))
|
||||||
|
{$Ndialstring = "$Local_out_prefix$phone_number";}
|
||||||
|
else
|
||||||
|
{$Ndialstring = "$Local_out_prefix$phone_code$phone_number";}
|
||||||
### insert the call action into the vicidial_manager table to initiate the call
|
### insert the call action into the vicidial_manager table to initiate the call
|
||||||
# $stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$MqueryCID','Exten: $conf_exten','Context: $ext_context','Channel: $local_DEF$Local_out_prefix$phone_code$phone_number$local_AMP$ext_context','Priority: 1','Callerid: $CIDstring','Timeout: $Local_dial_timeout','','','','');";
|
# $stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$MqueryCID','Exten: $conf_exten','Context: $ext_context','Channel: $local_DEF$Local_out_prefix$phone_code$phone_number$local_AMP$ext_context','Priority: 1','Callerid: $CIDstring','Timeout: $Local_dial_timeout','','','','');";
|
||||||
$stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$MqueryCID','Exten: $Local_out_prefix$phone_code$phone_number','Context: $ext_context','Channel: $local_DEF$conf_exten$local_AMP$ext_context$Local_persist','Priority: 1','Callerid: $CIDstring','Timeout: $Local_dial_timeout','','','','');";
|
$stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$MqueryCID','Exten: $Ndialstring','Context: $ext_context','Channel: $local_DEF$conf_exten$local_AMP$ext_context$Local_persist','Priority: 1','Callerid: $CIDstring','Timeout: $Local_dial_timeout','','','','');";
|
||||||
if ($DB) {echo "$stmt\n";}
|
if ($DB) {echo "$stmt\n";}
|
||||||
$rslt=mysql_query($stmt, $link);
|
$rslt=mysql_query($stmt, $link);
|
||||||
}
|
}
|
||||||
@@ -653,9 +662,14 @@ if ($ACTION == 'manDiaLonly')
|
|||||||
if ($CCID_on) {$CIDstring = "\"$MqueryCID\" <$CCID>";}
|
if ($CCID_on) {$CIDstring = "\"$MqueryCID\" <$CCID>";}
|
||||||
else {$CIDstring = "$MqueryCID";}
|
else {$CIDstring = "$MqueryCID";}
|
||||||
|
|
||||||
|
### whether to omit phone_code or not
|
||||||
|
if (eregi('Y',$omit_phone_code))
|
||||||
|
{$Ndialstring = "$Local_out_prefix$phone_number";}
|
||||||
|
else
|
||||||
|
{$Ndialstring = "$Local_out_prefix$phone_code$phone_number";}
|
||||||
### insert the call action into the vicidial_manager table to initiate the call
|
### insert the call action into the vicidial_manager table to initiate the call
|
||||||
# $stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$MqueryCID','Exten: $conf_exten','Context: $ext_context','Channel: $local_DEF$Local_out_prefix$phone_code$phone_number$local_AMP$ext_context','Priority: 1','Callerid: $CIDstring','Timeout: $Local_dial_timeout','','','','');";
|
# $stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$MqueryCID','Exten: $conf_exten','Context: $ext_context','Channel: $local_DEF$Local_out_prefix$phone_code$phone_number$local_AMP$ext_context','Priority: 1','Callerid: $CIDstring','Timeout: $Local_dial_timeout','','','','');";
|
||||||
$stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$MqueryCID','Exten: $Local_out_prefix$phone_code$phone_number','Context: $ext_context','Channel: $local_DEF$conf_exten$local_AMP$ext_context$Local_persist','Priority: 1','Callerid: $CIDstring','Timeout: $Local_dial_timeout','','','','');";
|
$stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$MqueryCID','Exten: $Ndialstring','Context: $ext_context','Channel: $local_DEF$conf_exten$local_AMP$ext_context$Local_persist','Priority: 1','Callerid: $CIDstring','Timeout: $Local_dial_timeout','','','','');";
|
||||||
if ($DB) {echo "$stmt\n";}
|
if ($DB) {echo "$stmt\n";}
|
||||||
$rslt=mysql_query($stmt, $link);
|
$rslt=mysql_query($stmt, $link);
|
||||||
|
|
||||||
|
|||||||
@@ -119,6 +119,7 @@
|
|||||||
# 60810-1011 - Fixed CXFER leave 3way call bugs
|
# 60810-1011 - Fixed CXFER leave 3way call bugs
|
||||||
# 60816-1602 - Added ALLCALLS recording delay option allcalls_delay
|
# 60816-1602 - Added ALLCALLS recording delay option allcalls_delay
|
||||||
# 60816-1716 - Fixed customer time display bug and client DST setting
|
# 60816-1716 - Fixed customer time display bug and client DST setting
|
||||||
|
# 60821-1555 - Added option to omit phone_code on dialout of leads
|
||||||
#
|
#
|
||||||
|
|
||||||
require("dbconnect.php");
|
require("dbconnect.php");
|
||||||
@@ -164,8 +165,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
|
|||||||
|
|
||||||
$forever_stop=0;
|
$forever_stop=0;
|
||||||
|
|
||||||
$version = '2.0.93';
|
$version = '2.0.94';
|
||||||
$build = '60816-1716';
|
$build = '60821-1555';
|
||||||
|
|
||||||
if ($force_logout)
|
if ($force_logout)
|
||||||
{
|
{
|
||||||
@@ -530,7 +531,7 @@ $VDloginDISPLAY=0;
|
|||||||
$HKstatusnames = substr("$HKstatusnames", 0, -1);
|
$HKstatusnames = substr("$HKstatusnames", 0, -1);
|
||||||
|
|
||||||
##### grab the statuses to be dialed for your campaign as well as other campaign settings
|
##### grab the statuses to be dialed for your campaign as well as other campaign settings
|
||||||
$stmt="SELECT dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,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 FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
|
$stmt="SELECT dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,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 FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
|
||||||
$rslt=mysql_query($stmt, $link);
|
$rslt=mysql_query($stmt, $link);
|
||||||
if ($DB) {echo "$stmt\n";}
|
if ($DB) {echo "$stmt\n";}
|
||||||
$row=mysql_fetch_row($rslt);
|
$row=mysql_fetch_row($rslt);
|
||||||
@@ -565,6 +566,7 @@ $VDloginDISPLAY=0;
|
|||||||
$closer_campaigns=$row[28];
|
$closer_campaigns=$row[28];
|
||||||
$use_internal_dnc=$row[29];
|
$use_internal_dnc=$row[29];
|
||||||
$allcalls_delay=$row[30];
|
$allcalls_delay=$row[30];
|
||||||
|
$omit_phone_code=$row[31];
|
||||||
|
|
||||||
if ( ($VC_scheduled_callbacks=='Y') and ($VU_scheduled_callbacks=='1') )
|
if ( ($VC_scheduled_callbacks=='Y') and ($VU_scheduled_callbacks=='1') )
|
||||||
{$scheduled_callbacks='1';}
|
{$scheduled_callbacks='1';}
|
||||||
@@ -1369,6 +1371,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|||||||
var wrapup_waiting = 0;
|
var wrapup_waiting = 0;
|
||||||
var use_internal_dnc = '<? echo $use_internal_dnc ?>';
|
var use_internal_dnc = '<? echo $use_internal_dnc ?>';
|
||||||
var allcalls_delay = '<? echo $allcalls_delay ?>';
|
var allcalls_delay = '<? echo $allcalls_delay ?>';
|
||||||
|
var omit_phone_code = '<? echo $omit_phone_code ?>';
|
||||||
var webform_session = '<? echo $webform_sessionname ?>';
|
var webform_session = '<? echo $webform_sessionname ?>';
|
||||||
var local_consult_xfers = '<? echo $local_consult_xfers ?>';
|
var local_consult_xfers = '<? echo $local_consult_xfers ?>';
|
||||||
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 = "<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>";
|
||||||
@@ -2647,7 +2650,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|||||||
}
|
}
|
||||||
if (xmlhttp)
|
if (xmlhttp)
|
||||||
{
|
{
|
||||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc ;
|
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code;
|
||||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||||
xmlhttp.send(manDiaLnext_query);
|
xmlhttp.send(manDiaLnext_query);
|
||||||
@@ -2963,7 +2966,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|||||||
}
|
}
|
||||||
if (xmlhttp)
|
if (xmlhttp)
|
||||||
{
|
{
|
||||||
manDiaLonly_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLonly&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&lead_id=" + document.vicidial_form.lead_id.value + "&phone_number=" + manDiaLonly_num + "&phone_code=" + document.vicidial_form.phone_code.value + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid;
|
manDiaLonly_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLonly&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&lead_id=" + document.vicidial_form.lead_id.value + "&phone_number=" + manDiaLonly_num + "&phone_code=" + document.vicidial_form.phone_code.value + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&omit_phone_code=" + omit_phone_code;
|
||||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||||
xmlhttp.send(manDiaLonly_query);
|
xmlhttp.send(manDiaLonly_query);
|
||||||
|
|||||||
@@ -276,6 +276,8 @@ if (isset($_GET["attempt_maximum"])) {$attempt_maximum=$_GET["attempt_maximum
|
|||||||
elseif (isset($_POST["attempt_maximum"])) {$attempt_maximum=$_POST["attempt_maximum"];}
|
elseif (isset($_POST["attempt_maximum"])) {$attempt_maximum=$_POST["attempt_maximum"];}
|
||||||
if (isset($_GET["allcalls_delay"])) {$allcalls_delay=$_GET["allcalls_delay"];}
|
if (isset($_GET["allcalls_delay"])) {$allcalls_delay=$_GET["allcalls_delay"];}
|
||||||
elseif (isset($_POST["allcalls_delay"])) {$allcalls_delay=$_POST["allcalls_delay"];}
|
elseif (isset($_POST["allcalls_delay"])) {$allcalls_delay=$_POST["allcalls_delay"];}
|
||||||
|
if (isset($_GET["omit_phone_code"])) {$omit_phone_code=$_GET["omit_phone_code"];}
|
||||||
|
elseif (isset($_POST["omit_phone_code"])) {$omit_phone_code=$_POST["omit_phone_code"];}
|
||||||
|
|
||||||
if (isset($script_id)) {$script_id= strtoupper($script_id);}
|
if (isset($script_id)) {$script_id= strtoupper($script_id);}
|
||||||
if (isset($lead_filter_id)) {$lead_filter_id = strtoupper($lead_filter_id);}
|
if (isset($lead_filter_id)) {$lead_filter_id = strtoupper($lead_filter_id);}
|
||||||
@@ -358,6 +360,7 @@ $reset_list = ereg_replace("[^NY]","",$reset_list);
|
|||||||
$fronter_display = ereg_replace("[^NY]","",$fronter_display);
|
$fronter_display = ereg_replace("[^NY]","",$fronter_display);
|
||||||
$drop_message = ereg_replace("[^NY]","",$drop_message);
|
$drop_message = ereg_replace("[^NY]","",$drop_message);
|
||||||
$use_internal_dnc = ereg_replace("[^NY]","",$use_internal_dnc);
|
$use_internal_dnc = ereg_replace("[^NY]","",$use_internal_dnc);
|
||||||
|
$omit_phone_code = ereg_replace("[^NY]","",$omit_phone_code);
|
||||||
|
|
||||||
### ALPHA-NUMERIC ONLY ###
|
### ALPHA-NUMERIC ONLY ###
|
||||||
$user = ereg_replace("[^0-9a-zA-Z]","",$user);
|
$user = ereg_replace("[^0-9a-zA-Z]","",$user);
|
||||||
@@ -502,12 +505,13 @@ $lead_filter_sql = ereg_replace(";","",$lead_filter_sql);
|
|||||||
# 60808-1147 - changed filtering for and added instructions for consutative transfers
|
# 60808-1147 - changed filtering for and added instructions for consutative transfers
|
||||||
# 60816-1552 - added allcalls_delay start delay for recordings in vicidial.php
|
# 60816-1552 - added allcalls_delay start delay for recordings in vicidial.php
|
||||||
# 60817-2226 - fixed bug that would not allow lead recycling of non-selectable statuses
|
# 60817-2226 - fixed bug that would not allow lead recycling of non-selectable statuses
|
||||||
|
# 60821-1543 - added option to Omit Phone Code while dialing in vicidial
|
||||||
#
|
#
|
||||||
|
|
||||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
||||||
|
|
||||||
$version = '2.0.58';
|
$version = '2.0.59';
|
||||||
$build = '60817-2226';
|
$build = '60821-1543';
|
||||||
|
|
||||||
$STARTtime = date("U");
|
$STARTtime = date("U");
|
||||||
|
|
||||||
@@ -1113,6 +1117,11 @@ echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN
|
|||||||
<BR>
|
<BR>
|
||||||
<B>Dial Prefix -</B> This field allows for more easily changing a path of dialing to go out through a different method without doing a reload in Asterisk. Default is 9 based upon a 91NXXNXXXXXX in the dialplan - extensions.conf.
|
<B>Dial Prefix -</B> This field allows for more easily changing a path of dialing to go out through a different method without doing a reload in Asterisk. Default is 9 based upon a 91NXXNXXXXXX in the dialplan - extensions.conf.
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
<A NAME="vicidial_campaigns-omit_phone_code">
|
||||||
|
<BR>
|
||||||
|
<B>Omit Phone Code -</B> This field allows you to leave out the phone_code field while dialing within VICIDIAL. For instance if you are dialing in the UK from the UK you would have 44 in as your phone_code field for all leads, but you just want to dial 10 digits in your dialplan extensions.conf to place calls instead of 44 then 10 digits. Default is N.
|
||||||
|
|
||||||
<BR>
|
<BR>
|
||||||
<A NAME="vicidial_campaigns-campaign_cid">
|
<A NAME="vicidial_campaigns-campaign_cid">
|
||||||
<BR>
|
<BR>
|
||||||
@@ -2826,7 +2835,7 @@ if ($ADD==41)
|
|||||||
{
|
{
|
||||||
echo "<br><B>CAMPAIGN MODIFIED: $campaign_id</B>\n";
|
echo "<br><B>CAMPAIGN MODIFIED: $campaign_id</B>\n";
|
||||||
|
|
||||||
$stmtA="UPDATE vicidial_campaigns set campaign_name='$campaign_name',active='$active',dial_status_a='$dial_status_a',dial_status_b='$dial_status_b',dial_status_c='$dial_status_c',dial_status_d='$dial_status_d',dial_status_e='$dial_status_e',lead_order='$lead_order',allow_closers='$allow_closers',hopper_level='$hopper_level', auto_dial_level='$auto_dial_level', next_agent_call='$next_agent_call', local_call_time='$local_call_time', voicemail_ext='$voicemail_ext', dial_timeout='$dial_timeout', dial_prefix='$dial_prefix', campaign_cid='$campaign_cid', campaign_vdad_exten='$campaign_vdad_exten', web_form_address='" . mysql_real_escape_string($web_form_address) . "', park_ext='$park_ext', park_file_name='$park_file_name', campaign_rec_exten='$campaign_rec_exten', campaign_recording='$campaign_recording', campaign_rec_filename='$campaign_rec_filename', campaign_script='$script_id', get_call_launch='$get_call_launch', am_message_exten='$am_message_exten', amd_send_to_vmx='$amd_send_to_vmx', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',lead_filter_id='$lead_filter_id',alt_number_dialing='$alt_number_dialing',scheduled_callbacks='$scheduled_callbacks',safe_harbor_message='$safe_harbor_message',drop_call_seconds='$drop_call_seconds',safe_harbor_exten='$safe_harbor_exten',wrapup_seconds='$wrapup_seconds',wrapup_message='$wrapup_message',closer_campaigns='$groups_value',use_internal_dnc='$use_internal_dnc',allcalls_delay='$allcalls_delay' where campaign_id='$campaign_id';";
|
$stmtA="UPDATE vicidial_campaigns set campaign_name='$campaign_name',active='$active',dial_status_a='$dial_status_a',dial_status_b='$dial_status_b',dial_status_c='$dial_status_c',dial_status_d='$dial_status_d',dial_status_e='$dial_status_e',lead_order='$lead_order',allow_closers='$allow_closers',hopper_level='$hopper_level', auto_dial_level='$auto_dial_level', next_agent_call='$next_agent_call', local_call_time='$local_call_time', voicemail_ext='$voicemail_ext', dial_timeout='$dial_timeout', dial_prefix='$dial_prefix', campaign_cid='$campaign_cid', campaign_vdad_exten='$campaign_vdad_exten', web_form_address='" . mysql_real_escape_string($web_form_address) . "', park_ext='$park_ext', park_file_name='$park_file_name', campaign_rec_exten='$campaign_rec_exten', campaign_recording='$campaign_recording', campaign_rec_filename='$campaign_rec_filename', campaign_script='$script_id', get_call_launch='$get_call_launch', am_message_exten='$am_message_exten', amd_send_to_vmx='$amd_send_to_vmx', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',lead_filter_id='$lead_filter_id',alt_number_dialing='$alt_number_dialing',scheduled_callbacks='$scheduled_callbacks',safe_harbor_message='$safe_harbor_message',drop_call_seconds='$drop_call_seconds',safe_harbor_exten='$safe_harbor_exten',wrapup_seconds='$wrapup_seconds',wrapup_message='$wrapup_message',closer_campaigns='$groups_value',use_internal_dnc='$use_internal_dnc',allcalls_delay='$allcalls_delay',omit_phone_code='$omit_phone_code' where campaign_id='$campaign_id';";
|
||||||
$rslt=mysql_query($stmtA, $link);
|
$rslt=mysql_query($stmtA, $link);
|
||||||
|
|
||||||
if ($reset_hopper == 'Y')
|
if ($reset_hopper == 'Y')
|
||||||
@@ -4229,6 +4238,7 @@ echo "<TABLE><TR><TD>\n";
|
|||||||
# $closer_campaigns = $row[42];
|
# $closer_campaigns = $row[42];
|
||||||
$use_internal_dnc = $row[43];
|
$use_internal_dnc = $row[43];
|
||||||
$allcalls_delay = $row[44];
|
$allcalls_delay = $row[44];
|
||||||
|
$omit_phone_code = $row[45];
|
||||||
|
|
||||||
echo "<br>MODIFY A CAMPAIGNS RECORD: $row[0] - <a href=\"$PHP_SELF?ADD=34&campaign_id=$campaign_id\">Basic View</a>";
|
echo "<br>MODIFY A CAMPAIGNS RECORD: $row[0] - <a href=\"$PHP_SELF?ADD=34&campaign_id=$campaign_id\">Basic View</a>";
|
||||||
echo " | Detail View</a> | ";
|
echo " | Detail View</a> | ";
|
||||||
@@ -4321,6 +4331,8 @@ echo "<tr bgcolor=#B6D3FC><td align=right>Dial Timeout: </td><td align=left><inp
|
|||||||
|
|
||||||
echo "<tr bgcolor=#B6D3FC><td align=right>Dial Prefix: </td><td align=left><input type=text name=dial_prefix size=20 maxlength=20 value=\"$dial_prefix\"> <font size=1>for 91NXXNXXXXXX value would be 9, for no dial prefix use X</font>$NWB#vicidial_campaigns-dial_prefix$NWE</td></tr>\n";
|
echo "<tr bgcolor=#B6D3FC><td align=right>Dial Prefix: </td><td align=left><input type=text name=dial_prefix size=20 maxlength=20 value=\"$dial_prefix\"> <font size=1>for 91NXXNXXXXXX value would be 9, for no dial prefix use X</font>$NWB#vicidial_campaigns-dial_prefix$NWE</td></tr>\n";
|
||||||
|
|
||||||
|
echo "<tr bgcolor=#B6D3FC><td align=right>Omit Phone Code: </td><td align=left><select size=1 name=omit_phone_code><option>Y</option><option>N</option><option SELECTED>$omit_phone_code</option></select>$NWB#vicidial_campaigns-omit_phone_code$NWE</td></tr>\n";
|
||||||
|
|
||||||
echo "<tr bgcolor=#B6D3FC><td align=right>Campaign CallerID: </td><td align=left><input type=text name=campaign_cid size=20 maxlength=20 value=\"$campaign_cid\">$NWB#vicidial_campaigns-campaign_cid$NWE</td></tr>\n";
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campaign CallerID: </td><td align=left><input type=text name=campaign_cid size=20 maxlength=20 value=\"$campaign_cid\">$NWB#vicidial_campaigns-campaign_cid$NWE</td></tr>\n";
|
||||||
|
|
||||||
echo "<tr bgcolor=#B6D3FC><td align=right>Campaign VDAD exten: </td><td align=left><input type=text name=campaign_vdad_exten size=10 maxlength=20 value=\"$campaign_vdad_exten\">$NWB#vicidial_campaigns-campaign_vdad_exten$NWE</td></tr>\n";
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campaign VDAD exten: </td><td align=left><input type=text name=campaign_vdad_exten size=10 maxlength=20 value=\"$campaign_vdad_exten\">$NWB#vicidial_campaigns-campaign_vdad_exten$NWE</td></tr>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user