admin.php help fixes
Conf update script Fix for high-volume systems, added varibles to hangup queryCID git-svn-id: svn://192.168.202.10@2969 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# This script checks if there are channels in reserved conferences
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# 50810-1532 - Added database server variable definitions lookup
|
||||
# 50823-1456 - Added commandline arguments for debug at runtime
|
||||
@@ -19,6 +19,7 @@
|
||||
# 130108-1712 - Changes for Asterisk 1.8 compatibility
|
||||
# 150610-1200 - Added support for AMI version 1.3
|
||||
# 170916-0947 - Added support for AMI version 2+
|
||||
# 180420-2302 - Fix for high-volume systems, added varibles to hangup queryCID
|
||||
#
|
||||
|
||||
# constants
|
||||
@@ -184,7 +185,9 @@ if ($Thour < 10) {$Thour = "0$Thour";}
|
||||
if ($Tmin < 10) {$Tmin = "0$Tmin";}
|
||||
if ($Tsec < 10) {$Tsec = "0$Tsec";}
|
||||
$TDSQLdate = "$Tyear-$Tmon-$Tmday $Thour:$Tmin:$Tsec";
|
||||
$TDnum = "$Tyear$Tmon$Tmday$Thour$Tmin$Tsec";
|
||||
$TDrand = int( rand(99)) + 100;
|
||||
$TDnum = "$Tmon$Tmday$Thour$Tmin$Tsec$TDrand";
|
||||
$TDinc = 1;
|
||||
|
||||
######################################################################
|
||||
##### CLEAR vicidial_conferences ENTRIES IN LEAVE-3WAY FOR MORE THAN ONE HOUR
|
||||
@@ -211,7 +214,8 @@ while ($k < $rec_count)
|
||||
$local_DEF = 'Local/5555';
|
||||
$local_AMP = '@';
|
||||
$kick_local_channel = "$local_DEF$PT_conf_extens[$k]$local_AMP$ext_context";
|
||||
$queryCID = "ULGC35$TDnum";
|
||||
$padTDinc = sprintf("%03s", $TDinc); while (length($padTDinc) > 3) {chop($padTDinc);}
|
||||
$queryCID = "ULGH$padTDinc$TDnum";
|
||||
|
||||
$stmtA="INSERT INTO vicidial_manager values('','','$now_date','NEW','N','$server_ip','','Originate','$queryCID','Channel: $kick_local_channel','Context: $ext_context','Exten: 8300','Priority: 1','Callerid: $queryCID','','','','','');";
|
||||
$affected_rows = $dbhA->do($stmtA); # or die "Couldn't execute query:|$stmtA|\n";
|
||||
@@ -221,6 +225,7 @@ while ($k < $rec_count)
|
||||
$affected_rows = $dbhA->do($stmtA); # or die "Couldn't execute query:|$stmtA|\n";
|
||||
|
||||
$k++;
|
||||
$TDinc++;
|
||||
}
|
||||
|
||||
|
||||
@@ -358,11 +363,13 @@ if ($no_vc_3way_check < 1)
|
||||
$local_DEF = 'Local/5555';
|
||||
$local_AMP = '@';
|
||||
$kick_local_channel = "$local_DEF$PT_conf_extens[$i]$local_AMP$ext_context";
|
||||
$queryCID = "ULGC36$TDnum";
|
||||
$padTDinc = sprintf("%03s", $TDinc); while (length($padTDinc) > 3) {chop($padTDinc);}
|
||||
$queryCID = "ULGC$padTDinc$TDnum";
|
||||
|
||||
$stmtA="INSERT INTO vicidial_manager values('','','$now_date','NEW','N','$server_ip','','Originate','$queryCID','Channel: $kick_local_channel','Context: $ext_context','Exten: 8300','Priority: 1','Callerid: $queryCID','','','','','');";
|
||||
$affected_rows = $dbhA->do($stmtA); # or die "Couldn't execute query:|$stmtA|\n";
|
||||
if($DB){print STDERR "\n|$affected_rows|$stmtA|\n";}
|
||||
$TDinc++;
|
||||
}
|
||||
|
||||
$stmtA = "UPDATE vicidial_conferences set extension='$NEWexten[$i]',leave_3way='$leave_3waySQL' where server_ip='$server_ip' and conf_exten='$PT_conf_extens[$i]';";
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
# script's crontab entry that does some of these functions:
|
||||
# AST_conf_update.pl --no-vc-3way-check
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# 100811-2119 - First build, based upon AST_conf_update.pl script
|
||||
# 100928-1506 - Changed from hard-coded 60 minute limit to servers.vicidial_recording_limit
|
||||
@@ -19,6 +19,8 @@
|
||||
# 160608-1549 - Added support for AMI version 1.3
|
||||
# 170222-0939 - Changed to file logging using server settings
|
||||
# 170921-1814 - Added support for AMI2
|
||||
# 180420-2301 - Fix for high-volume systems, added varibles to hangup queryCID
|
||||
#
|
||||
|
||||
# constants
|
||||
$DB=0; # Debug flag
|
||||
@@ -228,7 +230,9 @@ while ($loops > $loop_counter)
|
||||
if ($Tmin < 10) {$Tmin = "0$Tmin";}
|
||||
if ($Tsec < 10) {$Tsec = "0$Tsec";}
|
||||
$TDSQLdate = "$Tyear-$Tmon-$Tmday $Thour:$Tmin:$Tsec";
|
||||
$TDnum = "$Tyear$Tmon$Tmday$Thour$Tmin$Tsec";
|
||||
$TDrand = int( rand(99)) + 100;
|
||||
$TDnum = "$Tmon$Tmday$Thour$Tmin$Tsec$TDrand";
|
||||
$TDinc = 1;
|
||||
|
||||
|
||||
######################################################################
|
||||
@@ -368,12 +372,15 @@ while ($loops > $loop_counter)
|
||||
$local_DEF = 'Local/5555';
|
||||
$local_AMP = '@';
|
||||
$kick_local_channel = "$local_DEF$PT_conf_extens[$i]$local_AMP$ext_context";
|
||||
$queryCID = "ULGC36$TDnum";
|
||||
$padTDinc = sprintf("%03s", $TDinc); while (length($padTDinc) > 3) {chop($padTDinc);}
|
||||
$queryCID = "ULGC$padTDinc$TDnum";
|
||||
|
||||
$stmtA="INSERT INTO vicidial_manager values('','','$now_date','NEW','N','$server_ip','','Originate','$queryCID','Channel: $kick_local_channel','Context: $ext_context','Exten: 8300','Priority: 1','Callerid: $queryCID','','','','','');";
|
||||
$affected_rows = $dbhA->do($stmtA); # or die "Couldn't execute query:|$stmtA|\n";
|
||||
$event_string = "|$affected_rows|$stmtA|";
|
||||
&event_logger;
|
||||
|
||||
$TDinc++;
|
||||
}
|
||||
|
||||
$stmtA = "UPDATE vicidial_conferences set extension='$NEWexten[$i]',leave_3way='$leave_3waySQL' where server_ip='$server_ip' and conf_exten='$PT_conf_extens[$i]';";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
CALLER ID NAME CODES DOC Started: 2013-07-15 Updated: 2018-01-23
|
||||
CALLER ID NAME CODES DOC Started: 2013-07-15 Updated: 2018-04-20
|
||||
|
||||
|
||||
This document is meant for reference only, and it does not contain all CID name codes possible, but more will be added over time.
|
||||
@@ -22,7 +22,8 @@ XBvdc - Agent blind transfer (XBvdcW14528875091001100110011001) [epoch + user...
|
||||
AGMON - Remote Agent Monitor (AGMON715224918000001)
|
||||
HLvdcW - Hangup of customer call from agent screen (HLvdcW1475524272tluc)
|
||||
CH123456 - Hangup of all non-agent channels in meetme session(CH1234614755246080)
|
||||
ULGC - Hangup of lone channel in left 3way session (ULGC3620170222100923)
|
||||
ULGC - Hangup of lone channel in left 3way session (ULGC0010420221616133)
|
||||
ULGH - Clearing of left 3way session after server rec limit (ULGH0010420221618178)
|
||||
BM - Real-time screen blind monitor (BM149425456200006666)
|
||||
BB - Real-time screen blind barge (BB149425456200006666)
|
||||
BW - Real-time screen blind whisper (BW149425456200006666)
|
||||
|
||||
@@ -21141,7 +21141,7 @@ if ($ADD==3)
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Force Change Password").": </td><td align=left><select size=1 name=force_change_password><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option value=\"$force_change_password\" SELECTED>"._QXZ("$force_change_password")."</option></select>$NWB#users-force_change_password$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Last Login Info").": </td><td align=left><b>$last_login_date - $failed_login_count - $last_ip</b>$NWB#users-user$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Last Login Info").": </td><td align=left><b>$last_login_date - $failed_login_count - $last_ip</b>$NWB#users-last_login_date$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Full Name").": </td><td align=left><input type=text name=full_name size=30 maxlength=30 value=\"$full_name\">$NWB#users-full_name$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("User Level").": </td><td align=left><select size=1 name=user_level>";
|
||||
@@ -21384,10 +21384,10 @@ if ($ADD==3)
|
||||
echo "</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Custom")." 1: </td><td align=left><input type=text name=custom_one size=50 maxlength=100 value=\"$user_custom_one\">$NWB#users-custom_one$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Custom")." 2: </td><td align=left><input type=text name=custom_two size=50 maxlength=100 value=\"$user_custom_two\">$NWB#users-custom_two$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Custom")." 3: </td><td align=left><input type=text name=custom_three size=50 maxlength=100 value=\"$user_custom_three\">$NWB#users-custom_three$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Custom")." 4: </td><td align=left><input type=text name=custom_four size=50 maxlength=100 value=\"$user_custom_four\">$NWB#users-custom_four$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Custom")." 5: </td><td align=left><input type=text name=custom_five size=50 maxlength=100 value=\"$user_custom_five\">$NWB#users-custom_five$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Custom")." 2: </td><td align=left><input type=text name=custom_two size=50 maxlength=100 value=\"$user_custom_two\">$NWB#users-custom_one$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Custom")." 3: </td><td align=left><input type=text name=custom_three size=50 maxlength=100 value=\"$user_custom_three\">$NWB#users-custom_one$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Custom")." 4: </td><td align=left><input type=text name=custom_four size=50 maxlength=100 value=\"$user_custom_four\">$NWB#users-custom_one$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Custom")." 5: </td><td align=left><input type=text name=custom_five size=50 maxlength=100 value=\"$user_custom_five\">$NWB#users-custom_one$NWE</td></tr>\n";
|
||||
|
||||
if ($SSqc_features_active > 0)
|
||||
{
|
||||
@@ -22559,7 +22559,7 @@ if ($ADD==31)
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row3_background><td align=right>"._QXZ("Automatic Hopper Level").": </td><td align=left><select size=1 name=use_auto_hopper><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option value='$use_auto_hopper' SELECTED>"._QXZ("$use_auto_hopper")."</option></select>$NWB#campaigns-use_auto_hopper$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row3_background><td align=right>"._QXZ("Automatic Hopper Multiplier").": </td><td align=left><select size=1 name=auto_hopper_multi><option>0.1</option><option>0.2</option><option>0.3</option><option>0.4</option><option>0.5</option><option>0.6</option><option>0.7</option><option>0.8</option><option>0.9</option><option>1.0</option><option>1.1</option><option>1.2</option><option>1.3</option><option>1.4</option><option>1.5</option><option>1.6</option><option>1.7</option><option>1.8</option><option>1.9</option><option>2.0</option><option>2.2</option><option>2.4</option><option>2.6</option><option>2.8</option><option>3.0</option><option>3.5</option><option>4.0</option><option SELECTED>$auto_hopper_multi</option></select>$NWB#campaigns-hopper_level$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row3_background><td align=right>"._QXZ("Automatic Hopper Multiplier").": </td><td align=left><select size=1 name=auto_hopper_multi><option>0.1</option><option>0.2</option><option>0.3</option><option>0.4</option><option>0.5</option><option>0.6</option><option>0.7</option><option>0.8</option><option>0.9</option><option>1.0</option><option>1.1</option><option>1.2</option><option>1.3</option><option>1.4</option><option>1.5</option><option>1.6</option><option>1.7</option><option>1.8</option><option>1.9</option><option>2.0</option><option>2.2</option><option>2.4</option><option>2.6</option><option>2.8</option><option>3.0</option><option>3.5</option><option>4.0</option><option SELECTED>$auto_hopper_multi</option></select>$NWB#campaigns-auto_hopper_multi$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row3_background><td align=right>"._QXZ("Auto Trim Hopper").": </td><td align=left><select size=1 name=auto_trim_hopper><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option value='$auto_trim_hopper' SELECTED>"._QXZ("$auto_trim_hopper")."</option></select>$NWB#campaigns-auto_trim_hopper$NWE</td></tr>\n";
|
||||
|
||||
|
||||
@@ -829,6 +829,10 @@ if ($SSqc_features_active > 0)
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Search Lead Ignore Group Restrictions"); ?> -</B><?php echo _QXZ("Changing this setting to 1 will allow this user to search for leads throughout the entire system instead of just within the allowed campaigns that are set within their User Group. This will also allow modifying of those leads in the administrative lead modification page. Default is 0 for disabled. To be able to modify this setting, you must belong to a user group that has ALL CAMPAIGNS selected in the Allowed Campaigns section."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="users-alter_admin_interface_options">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Alter Admin Interface Options"); ?> -</B><?php echo _QXZ("Changing this setting to 1 will allow this user to alter admin interface options."); ?>
|
||||
|
||||
|
||||
|
||||
@@ -1418,6 +1422,21 @@ if ($SSoutbound_autodial_active > 0)
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Survey Third Extension"); ?> -</B><?php echo _QXZ("This is the third extension used for the call upon the selection by the customer of the Third Digit option. Default is 8300 which immediately hangs up the call after the Audio File message is played."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-survey_fourth_audio_file">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Survey Fourth Audio File"); ?> -</B><?php echo _QXZ("This is the fourth audio file to be played upon the selection by the customer of the Fourth Digit option."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-survey_fourth_status">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Survey Fourth Status"); ?> -</B><?php echo _QXZ("This is the fourth status used for the call upon the selection by the customer of the Fourth Digit option."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-survey_fourth_exten">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Survey Fourth Extension"); ?> -</B><?php echo _QXZ("This is the fourth extension used for the call upon the selection by the customer of the Fourth Digit option. Default is 8300 which immediately hangs up the call after the Audio File message is played."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-agent_display_dialable_leads">
|
||||
<BR>
|
||||
|
||||
Reference in New Issue
Block a user