Added In-Group option for Waiting Call On/Off URL, which we added to allow
clients the ability to automatically control a web-power-switch to turn lights on and off if there are any calls waiting in an In-Group. git-svn-id: svn://192.168.202.10@2984 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
# 161214-1039 - Added flush of parked_channels_recent table
|
||||
# 180112-0915 - Added flush for cid_channels_recent table
|
||||
# 180511-1223 - Added flush for server-specific cid_channels_recent_ tables
|
||||
# 180519-1431 - Added vicidial_inbound_groups optimization
|
||||
#
|
||||
|
||||
### begin parsing run-time options ###
|
||||
@@ -359,6 +360,20 @@ if (!$T)
|
||||
if (!$Q) {print " - OPTIMIZE vicidial_lists \n";}
|
||||
|
||||
|
||||
$stmtA = "OPTIMIZE table vicidial_inbound_groups;";
|
||||
if($DB){print STDERR "\n|$stmtA|\n";}
|
||||
if (!$T)
|
||||
{
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
if (!$Q) {print "|",$aryA[0],"|",$aryA[1],"|",$aryA[2],"|",$aryA[3],"|","\n";}
|
||||
$sthA->finish();
|
||||
}
|
||||
if (!$Q) {print " - OPTIMIZE vicidial_inbound_groups \n";}
|
||||
|
||||
|
||||
### Gather active servers from the database
|
||||
$stmtA = "SELECT server_ip,server_id FROM servers where active='Y' and active_asterisk_server='Y';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
|
||||
Reference in New Issue
Block a user