From 79b2298ef8d2b875155bc2d772d1d55e990a2874 Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 6 Jan 2025 15:45:34 +0000 Subject: [PATCH] Added Enhanced Agent Monitoring system settings option git-svn-id: svn://192.168.202.10@3894 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/agi/enhancedMONITORswitch.agi | 214 ++++++++ agc_2-X/trunk/agi/getAGENTchannel.agi | 20 +- agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl | 242 ++++++++- agc_2-X/trunk/docs/CALLER_ID_NAME_CODES.txt | 3 +- .../conf_examples/confbridge.conf.sample-18 | 463 ++++++++++++++++++ .../conf_examples/extensions.conf.sample-18 | 63 +++ .../docs/conf_examples/manager.conf.sample-18 | 58 +++ .../trunk/extras/MySQL_AST_CREATE_tables.sql | 5 +- agc_2-X/trunk/extras/upgrade_2.14.sql | 4 + agc_2-X/trunk/install.pl | 10 +- .../trunk/www/vicidial/AST_timeonVDADall.php | 10 +- agc_2-X/trunk/www/vicidial/admin.php | 44 +- .../trunk/www/vicidial/help_documentation.txt | 3 +- agc_2-X/trunk/www/vicidial/non_agent_api.php | 31 +- 14 files changed, 1135 insertions(+), 35 deletions(-) create mode 100644 agc_2-X/trunk/agi/enhancedMONITORswitch.agi create mode 100644 agc_2-X/trunk/docs/conf_examples/confbridge.conf.sample-18 create mode 100644 agc_2-X/trunk/docs/conf_examples/manager.conf.sample-18 diff --git a/agc_2-X/trunk/agi/enhancedMONITORswitch.agi b/agc_2-X/trunk/agi/enhancedMONITORswitch.agi new file mode 100644 index 00000000..caf9671d --- /dev/null +++ b/agc_2-X/trunk/agi/enhancedMONITORswitch.agi @@ -0,0 +1,214 @@ +#!/usr/bin/perl + +# enhancedMONITORswitch.agi +# Copyright (C) 2025 Matt Florell LICENSE: AGPLv2 +# This script switches the manager to MONITOR/BARGE/WHISPER for the agent being +# monitored using enhanced_agent_monitoring + +# CHANGELOG: +# 250103-1619 - First build +# + +$script = 'enhancedMONITORswitch.agi'; + +$now_date_epoch = time(); +($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); +$year = ($year + 1900); +$mon++; +if ($mon < 10) {$mon = "0$mon";} +if ($mday < 10) {$mday = "0$mday";} +if ($hour < 10) {$hour = "0$hour";} +if ($min < 10) {$min = "0$min";} +if ($sec < 10) {$sec = "0$sec";} +$SQLdate = "$year-$mon-$mday $hour:$min:$sec"; + +# default path to astguiclient configuration file: +$PATHconf = '/etc/astguiclient.conf'; + +open(conf, "$PATHconf") || die "can't open $PATHconf: $!\n"; +@conf = ; +close(conf); +$i=0; +foreach(@conf) + { + $line = $conf[$i]; + $line =~ s/ |>|\n|\r|\t|\#.*|;.*//gi; + if ( ($line =~ /^PATHhome/) && ($CLIhome < 1) ) + {$PATHhome = $line; $PATHhome =~ s/.*=//gi;} + if ( ($line =~ /^PATHlogs/) && ($CLIlogs < 1) ) + {$PATHlogs = $line; $PATHlogs =~ s/.*=//gi;} + if ( ($line =~ /^PATHagi/) && ($CLIagi < 1) ) + {$PATHagi = $line; $PATHagi =~ s/.*=//gi;} + if ( ($line =~ /^PATHweb/) && ($CLIweb < 1) ) + {$PATHweb = $line; $PATHweb =~ s/.*=//gi;} + if ( ($line =~ /^PATHsounds/) && ($CLIsounds < 1) ) + {$PATHsounds = $line; $PATHsounds =~ s/.*=//gi;} + if ( ($line =~ /^PATHmonitor/) && ($CLImonitor < 1) ) + {$PATHmonitor = $line; $PATHmonitor =~ s/.*=//gi;} + if ( ($line =~ /^VARserver_ip/) && ($CLIserver_ip < 1) ) + {$VARserver_ip = $line; $VARserver_ip =~ s/.*=//gi;} + if ( ($line =~ /^VARDB_server/) && ($CLIDB_server < 1) ) + {$VARDB_server = $line; $VARDB_server =~ s/.*=//gi;} + if ( ($line =~ /^VARDB_database/) && ($CLIDB_database < 1) ) + {$VARDB_database = $line; $VARDB_database =~ s/.*=//gi;} + if ( ($line =~ /^VARDB_user/) && ($CLIDB_user < 1) ) + {$VARDB_user = $line; $VARDB_user =~ s/.*=//gi;} + if ( ($line =~ /^VARDB_pass/) && ($CLIDB_pass < 1) ) + {$VARDB_pass = $line; $VARDB_pass =~ s/.*=//gi;} + if ( ($line =~ /^VARDB_port/) && ($CLIDB_port < 1) ) + {$VARDB_port = $line; $VARDB_port =~ s/.*=//gi;} + $i++; + } + +if (!$VARDB_port) {$VARDB_port='3306';} +if (!$AGILOGfile) {$AGILOGfile = "$PATHlogs/agiout.$year-$mon-$mday";} + +use DBI; +use Time::HiRes ('gettimeofday','usleep','sleep'); # necessary to have perl sleep command of less than one second +use Asterisk::AGI; +$AGI = new Asterisk::AGI; + +$dbhA = DBI->connect("DBI:mysql:$VARDB_database:$VARDB_server:$VARDB_port", "$VARDB_user", "$VARDB_pass") + or die "Couldn't connect to database: " . DBI->errstr; + +### Grab Server values from the database +$stmtA = "SELECT agi_output,local_gmt FROM servers where server_ip = '$VARserver_ip';"; +$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; +$sthA->execute or die "executing: $stmtA ", $dbhA->errstr; +$sthArows=$sthA->rows; +if ($sthArows > 0) + { + $AGILOG = '0'; + @aryA = $sthA->fetchrow_array; + $DBagi_output = $aryA[0]; + $local_gmt = $aryA[1]; + if ($DBagi_output =~ /STDERR/) {$AGILOG = '1';} + if ($DBagi_output =~ /FILE/) {$AGILOG = '2';} + if ($DBagi_output =~ /BOTH/) {$AGILOG = '3';} + } +$sthA->finish(); + +$agent_zap_channel = "101"; +########## FIND playfilename ########## + +$monitor_action='MONITOR'; +### begin parsing run-time options ### +if (length($ARGV[0])>1) + { + if ($AGILOG) {$agi_string = "Perl Environment Dump:"; &agi_output;} + $i=0; + while ($#ARGV >= $i) + { + $args = "$args $ARGV[$i]"; + if ($AGILOG) {$agi_string = "$i|$ARGV[$i]"; &agi_output;} + $i++; + } + + ### list of command-line array arguments: + @ARGV_vars = split(/-----/, $ARGV[0]); + + $monitor_method = $ARGV_vars[0]; + $monitor_action = $ARGV_vars[1]; + } + +$|=1; +while() + { + chomp; + last unless length($_); + if ($AGILOG) + { + if (/^agi_(\w+)\:\s+(.*)$/) + { + $AGI{$1} = $2; + } + } + + if (/^agi_uniqueid\:\s+(.*)$/) {$unique_id = $1; $uniqueid = $unique_id;} + if (/^agi_channel\:\s+(.*)$/) {$channel = $1;} + if (/^agi_extension\:\s+(.*)$/) {$extension = $1;} + if (/^agi_type\:\s+(.*)$/) {$type = $1;} + if (/^agi_callerid\:\s+(.*)$/) {$callerid = $1;} + if (/^agi_calleridname\:\s+(.*)$/) {$calleridname = $1;} + } + +# check for monitoruser variable, if not set, then set it + +$monitorsession = $AGI->get_variable('monitorsession'); +$agent_zap_channel = $AGI->get_variable('agent_zap_channel'); +$manager_zap_channel = $AGI->get_variable('manager_zap_channel'); + +if ($AGILOG) {$agi_string = "Agent session: |$monitorsession| Channel: $channel| Agent Channel: $agent_zap_channel|"; &agi_output;} + + +#$stmtA = "SELECT channel FROM vicidial_live_agents WHERE conf_exten = '$canal' AND ifnull(trim(channel), '') <> '' and (channel in (select channel from live_channels) or comments='MANUAL') LIMIT 1"; +#$stmtA = "INSERT INTO vicidial_manager values('','','$SQLdate','NEW','N','$VARserver_ip','','Originate','$BMquery','Channel: Local/$monitor_dialstring$stage$session_id@default','Context: default','Exten: $dialplan_number','Priority: 1','Callerid: \"$BEquery\" <$outbound_cid>','$variable','','','','');"; + + +$BEquery = "BE0$now_date_epoch$monitorsession"; + + +if ($monitor_method =~ /CMD/) + { + # CMD - for commands on manager channel, default is MONITOR, mute the manager channel in agent ConfBridge session + $stmtA = "INSERT INTO vicidial_manager values('','','$SQLdate','NEW','N','$VARserver_ip','','ConfbridgeMute','$BEquery','Conference: $monitorsession','Channel: $manager_zap_channel','','','','','','','','');"; + if ($monitor_action =~ /MONITOR/) + { + $stmtA = "INSERT INTO vicidial_manager values('','','$SQLdate','NEW','N','$VARserver_ip','','ConfbridgeMute','$BEquery','Conference: $monitorsession','Channel: $manager_zap_channel','','','','','','','','');"; + } + if ($monitor_action =~ /BARGE/) + { + $stmtA = "INSERT INTO vicidial_manager values('','','$SQLdate','NEW','N','$VARserver_ip','','ConfbridgeUnmute','$BEquery','Conference: $monitorsession','Channel: $manager_zap_channel','','','','','','','','');"; + } + if ($monitor_action =~ /WHISPER/) + { + $stmtA = "INSERT INTO vicidial_manager values('','','$SQLdate','NEW','N','$VARserver_ip','','Redirect','$BEquery','Channel: $manager_zap_channel','Context: vici_monitor_whisper','Exten: 47378221$monitorsession','Priority: 1','CallerID: $BEquery','','','','','');"; + } + } +else + { + # MGR - for direct manager channel, default is MONITOR, mute the manager channel in agent ConfBridge session + $stmtA = "INSERT INTO vicidial_manager values('','','$SQLdate','NEW','N','$VARserver_ip','','ConfbridgeMute','$BEquery','Conference: $monitorsession','Channel: $channel','','','','','','','','');"; + if ($monitor_action =~ /MONITOR/) + { + $stmtA = "INSERT INTO vicidial_manager values('','','$SQLdate','NEW','N','$VARserver_ip','','ConfbridgeMute','$BEquery','Conference: $monitorsession','Channel: $channel','','','','','','','','');"; + } + if ($monitor_action =~ /BARGE/) + { + $stmtA = "INSERT INTO vicidial_manager values('','','$SQLdate','NEW','N','$VARserver_ip','','ConfbridgeUnmute','$BEquery','Conference: $monitorsession','Channel: $channel','','','','','','','','');"; + } + if ($monitor_action =~ /WHISPER/) + { + $stmtA = "INSERT INTO vicidial_manager values('','','$SQLdate','NEW','N','$VARserver_ip','','Redirect','$BEquery','Channel: $channel','Context: vici_monitor_whisper','Exten: 47378221$monitorsession','Priority: 1','CallerID: $BEquery','','','','','');"; + } + } + +$affected_rows = $dbhA->do($stmtA); +if ($AGILOG) {$agi_string = "MANAGER INSERT $channel|$affected_rows|$stmtA|"; &agi_output;} + + +exit; + + + +sub agi_output + { + ($Lsec,$Lmin,$Lhour,$Lmday,$Lmon,$Lyear,$Lwday,$Lyday,$Lisdst) = localtime(time); + if ($Lhour < 10) {$Lhour = "0$Lhour";} + if ($Lmin < 10) {$Lmin = "0$Lmin";} + if ($Lsec < 10) {$Lsec = "0$Lsec";} + $LOGtime = "$Lhour:$Lmin:$Lsec"; + + if ($AGILOG >=2) + { + ### open the log file for writing ### + open(Lout, ">>$AGILOGfile") + || die "Can't open $AGILOGfile: $!\n"; + print Lout "$LOGtime|$LOGtime|$script|$agi_string\n"; + close(Lout); + } + ### send to STDERR writing ### + if ( ($AGILOG == '1') || ($AGILOG == '3') ) + {print STDERR "$LOGtime|$LOGtime|$script|$agi_string\n";} + $agi_string=''; + } diff --git a/agc_2-X/trunk/agi/getAGENTchannel.agi b/agc_2-X/trunk/agi/getAGENTchannel.agi index 4b7714f3..164f4725 100644 --- a/agc_2-X/trunk/agi/getAGENTchannel.agi +++ b/agc_2-X/trunk/agi/getAGENTchannel.agi @@ -1,7 +1,7 @@ #!/usr/bin/perl # getAGENTchannel.agi by Omar Rodriguez www.ItContinental.com -# Copyright (C) 2016 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2025 Matt Florell LICENSE: AGPLv2 # This script is able to return the name of the channel that belongs to the agent, # to allow administrators to whisper to the agents # Has been made using Vicidial code as Base @@ -10,6 +10,7 @@ # 150728-1315 - First build # 150804-0944 - Rewritten to work on multi-server systems and with different dialplan # 160523-2352 - Fixed issue with local channels in session +# 250103-1608 - Added processing of monitorsession channel variable # $script = 'getAGENTchannel.agi'; @@ -113,10 +114,24 @@ while() if (/^agi_calleridname\:\s+(.*)$/) {$calleridname = $1;} } +# check for monitoruser variable, if not set, then set it + +$monitorsession = $AGI->get_variable('monitorsession'); + +if ( (length($extension) < 7) && (length($monitorsession) >= 7) ) + { + if ($AGILOG) {$agi_string = "Setting session with channel variable: |$monitorsession -> $extension| Channel: $channel| CID: $calleridname <$callerid>|"; &agi_output;} + $extension = $monitorsession; + } if (length($extension) > 7) {$extension = substr($extension, -7);} -if ($AGILOG) {$agi_string = "Agent session: $extension| Channel: $channel| CID: $calleridname <$callerid>|"; &agi_output;} +if ($AGILOG) {$agi_string = "Agent session: |$extension| Channel: $channel| CID: $calleridname <$callerid>|"; &agi_output;} +if (length($monitorsession) < 7) + { + if ($AGILOG) {$agi_string = "Setting session channel variable: |$extension| Channel: $channel| CID: $calleridname <$callerid>|"; &agi_output;} + $AGI->exec("EXEC Set(__monitorsession=$extension)"); + } #$stmtA = "SELECT channel FROM vicidial_live_agents WHERE conf_exten = '$canal' AND ifnull(trim(channel), '') <> '' and (channel in (select channel from live_channels) or comments='MANUAL') LIMIT 1"; @@ -146,6 +161,7 @@ if ($AGILOG) {$agi_string = "$sthArows|$agent_zap_channel|$stmtA|"; &agi_outpu #$AGI->verbose("agent_zap_channel: $agent_zap_channel"); $AGI->set_variable('agent_zap_channel', $agent_zap_channel); +$AGI->exec("EXEC Set(__manager_zap_channel=$channel)"); exit; diff --git a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl index b7c7f213..668565ab 100644 --- a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl +++ b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl @@ -15,7 +15,7 @@ # - Auto reset lists at defined times # - Auto restarts Asterisk process if enabled in servers settings # -# Copyright (C) 2024 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2025 Matt Florell LICENSE: AGPLv2 # # CHANGES # 61011-1348 - First build @@ -172,9 +172,10 @@ # 231129-0849 - Added reset of vicidial_phone_number_call_daily_counts table # 240401-1810 - Added purging of vicidial_pending_ar records older than 7 days # 240420-2209 - Added Conference Updater option +# 250103-0932 - Added ConfBridge code and enhanced_agent_monitoring system setting code # -$build = '240420-2209'; +$build = '250103-0932'; $DB=0; # Debug flag $teodDB=0; # flag to log Timeclock End of Day processes to log file @@ -486,6 +487,8 @@ $THISserver_voicemail=0; $voicemail_server_id=''; if (!$VARDB_port) {$VARDB_port='3306';} +if ($DB) {print "ADMIN_keepalive_ALL.pl - Debug enabled: ($DB|$DBX|$DBXXX) version: $build\n";} + use DBI; $dbhA = DBI->connect("DBI:mysql:$VARDB_database:$VARDB_server:$VARDB_port", "$VARDB_user", "$VARDB_pass") @@ -3100,6 +3103,63 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r $Lext .= "exten => _473782189600XXX,n,GotoIf(\$[ \"\${agent_zap_channel}\" = \"101\" ]?fin)\n"; $Lext .= "exten => _473782189600XXX,n,ChanSpy(\${agent_zap_channel},qw)\n"; $Lext .= "exten => _473782189600XXX,n(fin),Hangup()\n"; + $Lext .= "; Enhanced Agent Monitoring ConfBridge entry: MONITOR\n"; + $Lext .= "exten => _473782199600XXX,1,Answer()\n"; + $Lext .= "exten => _473782199600XXX,n,Wait(1)\n"; + $Lext .= "exten => _473782199600XXX,n,AGI(getAGENTchannel.agi)\n"; + $Lext .= "exten => _473782199600XXX,n,NoOp(\${monitorsession})\n"; + $Lext .= "exten => _473782199600XXX,n,NoOp(\${agent_zap_channel})\n"; + $Lext .= "exten => _473782199600XXX,n,NoOp(\${manager_zap_channel})\n"; + $Lext .= "exten => _473782199600XXX,n,Playback(sip-silence)\n"; + $Lext .= "exten => _473782199600XXX,n,ConfBridge(\${EXTEN:8},vici_agent_bridge,vici_monitor_user,vici_monitor_menu)\n"; + $Lext .= "exten => _473782199600XXX,n,Hangup()\n"; + $Lext .= "; Enhanced Agent Monitoring ConfBridge entry: BARGE\n"; + $Lext .= "exten => _473782209600XXX,1,Answer()\n"; + $Lext .= "exten => _473782209600XXX,n,Wait(1)\n"; + $Lext .= "exten => _473782209600XXX,n,AGI(getAGENTchannel.agi)\n"; + $Lext .= "exten => _473782209600XXX,n,NoOp(\${monitorsession})\n"; + $Lext .= "exten => _473782209600XXX,n,NoOp(\${agent_zap_channel})\n"; + $Lext .= "exten => _473782209600XXX,n,NoOp(\${manager_zap_channel})\n"; + $Lext .= "exten => _473782209600XXX,n,Playback(sip-silence)\n"; + $Lext .= "exten => _473782209600XXX,n,ConfBridge(\${EXTEN:8},vici_agent_bridge,vici_barge_user,vici_monitor_menu)\n"; + $Lext .= "exten => _473782209600XXX,n,Hangup()\n"; + $Lext .= "; Enhanced Agent Monitoring Whisper to agent channel GoTo\n"; + $Lext .= "exten => _473782219600XXX,1,GoTo(vici_monitor_whisper,\${EXTEN},1)\n"; + + $confbridge_enhanced_monitoring = "[vici_monitor_menu_exec]\n"; + $confbridge_enhanced_monitoring .= "; FastAGI for VICIDIAL/astGUIclient call logging\n"; + $confbridge_enhanced_monitoring .= "$hangup_exten_line\n"; + + $confbridge_enhanced_monitoring .= "exten => 4,1,Verbose(\"Enhanced Agent Monitoring: Mute the manager channel\")\n"; + $confbridge_enhanced_monitoring .= "exten => 4,n,AGI(enhancedMONITORswitch.agi,CMD-----MONITOR)\n"; + $confbridge_enhanced_monitoring .= "exten => 5,1,Verbose(\"Enhanced Agent Monitoring: UnMute the manager channel\")\n"; + $confbridge_enhanced_monitoring .= "exten => 5,n,AGI(enhancedMONITORswitch.agi,CMD-----BARGE)\n"; + $confbridge_enhanced_monitoring .= "exten => 6,1,Verbose(\"Enhanced Agent Monitoring: Whisper to the agent channel\")\n"; + $confbridge_enhanced_monitoring .= "exten => 6,n,AGI(enhancedMONITORswitch.agi,CMD-----WHISPER)\n"; + $confbridge_enhanced_monitoring .= "\n\n"; + + $confbridge_enhanced_monitoring .= "[vici_monitor_whisper]\n"; + $confbridge_enhanced_monitoring .= "; FastAGI for VICIDIAL/astGUIclient call logging\n"; + $confbridge_enhanced_monitoring .= "$hangup_exten_line\n"; + + $confbridge_enhanced_monitoring .= "; Enhanced Agent Monitoring Whisper to agent channel entry\n"; + $confbridge_enhanced_monitoring .= "exten => _473782219600XXX,1,Answer\n"; + $confbridge_enhanced_monitoring .= "exten => _473782219600XXX,n,Wait(1)\n"; + $confbridge_enhanced_monitoring .= "exten => _473782219600XXX,n,AGI(getAGENTchannel.agi)\n"; + $confbridge_enhanced_monitoring .= "exten => _473782219600XXX,n,NoOp(\${monitorsession})\n"; + $confbridge_enhanced_monitoring .= "exten => _473782219600XXX,n,NoOp(\${agent_zap_channel})\n"; + $confbridge_enhanced_monitoring .= "exten => _473782219600XXX,n,NoOp(\${manager_zap_channel})\n"; + $confbridge_enhanced_monitoring .= "exten => _473782219600XXX,n,GotoIf(\$[ \"\${agent_zap_channel}\" = \"101\" ]?fin)\n"; + $confbridge_enhanced_monitoring .= "exten => _473782219600XXX,n,ChanSpy(\${agent_zap_channel},qwX)\n"; + $confbridge_enhanced_monitoring .= "exten => _473782219600XXX,n(fin),Hangup()\n"; + + $confbridge_enhanced_monitoring .= "exten => 4,1,Verbose(\"Enhanced Agent Monitoring: Mute the manager channel\")\n"; + $confbridge_enhanced_monitoring .= "exten => 4,n,GoTo(default,47378219\${monitorsession},1)\n"; + $confbridge_enhanced_monitoring .= "exten => 5,1,Verbose(\"Enhanced Agent Monitoring: UnMute the manager channel\")\n"; + $confbridge_enhanced_monitoring .= "exten => 5,n,GoTo(default,47378220\${monitorsession},1)\n"; + $confbridge_enhanced_monitoring .= "exten => 6,1,Verbose(\"Enhanced Agent Monitoring: Whisper to the agent channel\")\n"; + $confbridge_enhanced_monitoring .= "exten => 6,n,GoTo(vici_monitor_whisper,47378221\${monitorsession},1)\n"; + $confbridge_enhanced_monitoring .= "\n\n"; } $Lext .= "\n"; @@ -4877,6 +4937,164 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r } ##### END generate meetme entries for this server + ##### BEGIN generate ConfBridge conf for this server + if ($conf_engine eq "CONFBRIDGE") + { + $cb = "; ViciDial ConfBridge config:\n"; + + $cb .= "; Bridge Profile for agent conferences\n"; + $cb .= "[vici_agent_bridge]\n"; + $cb .= "type=bridge\n"; + $cb .= "max_members=10\n"; + $cb .= "record_conference=no\n"; + $cb .= "internal_sample_rate=8000\n"; + $cb .= "mixing_interval=20\n"; + $cb .= "video_mode=none\n"; + $cb .= "sound_join=enter\n"; + $cb .= "sound_leave=leave\n"; + $cb .= "sound_has_joined=sip-silence\n"; + $cb .= "sound_has_left=sip-silence\n"; + $cb .= "sound_kicked=sip-silence\n"; + $cb .= "sound_muted=sip-silence\n"; + $cb .= "sound_unmuted=sip-silence\n"; + $cb .= "sound_only_person=confbridge-only-participant\n"; + $cb .= "sound_only_one=sip-silence\n"; + $cb .= "sound_there_are=sip-silence\n"; + $cb .= "sound_other_in_party=sip-silence\n"; + $cb .= "sound_begin=sip-silence\n"; + $cb .= "sound_wait_for_leader=sip-silence\n"; + $cb .= "sound_leader_has_left=sip-silence\n"; + $cb .= "sound_get_pin=sip-silence\n"; + $cb .= "sound_invalid_pin=sip-silence\n"; + $cb .= "sound_locked=sip-silence\n"; + $cb .= "sound_locked_now=sip-silence\n"; + $cb .= "sound_unlocked_now=sip-silence\n"; + $cb .= "sound_error_menu=sip-silence\n"; + $cb .= "sound_participants_muted=sip-silence\n\n"; + + $cb .= "; User Profile for agent channels\n"; + $cb .= "[vici_agent_user]\n"; + $cb .= "type=user\n"; + $cb .= "admin=no\n"; + $cb .= "quiet=no\n"; + $cb .= "startmuted=no\n"; + $cb .= "marked=yes\n"; + $cb .= "dtmf_passthrough=yes\n"; + $cb .= "hear_own_join_sound=yes\n"; + $cb .= "dsp_drop_silence=yes\n\n"; + + $cb .= "; User Profile for admin channels\n"; + $cb .= "[vici_admin_user]\n"; + $cb .= "type=user\n"; + $cb .= "admin=yes\n"; + $cb .= "quiet=no\n"; + $cb .= "startmuted=no\n"; + $cb .= "marked=yes\n"; + $cb .= "dtmf_passthrough=yes\n"; + $cb .= "dsp_drop_silence=yes\n\n"; + + $cb .= "; User Profile for monitoring\n"; + $cb .= "[vici_monitor_user]\n"; + $cb .= "type=user\n"; + $cb .= "admin=no\n"; + $cb .= "quiet=yes\n"; + $cb .= "startmuted=yes\n"; + $cb .= "marked=no\n"; + $cb .= "dtmf_passthrough=no\n"; + $cb .= "dsp_drop_silence=yes\n\n"; + + $cb .= "; User Profile for barging\n"; + $cb .= "[vici_barge_user]\n"; + $cb .= "type=user\n"; + $cb .= "admin=no\n"; + $cb .= "quiet=no\n"; + $cb .= "startmuted=no\n"; + $cb .= "marked=no\n"; + $cb .= "dtmf_passthrough=yes\n"; + $cb .= "dsp_drop_silence=yes\n\n"; + + $cb .= "; User Profile for customers channels\n"; + $cb .= "[vici_customer_user]\n"; + $cb .= "type=user\n"; + $cb .= "admin=no\n"; + $cb .= "quiet=no\n"; + $cb .= "startmuted=no\n"; + $cb .= "marked=yes\n"; + $cb .= "dtmf_passthrough=yes\n"; + $cb .= "hear_own_join_sound=no\n"; + $cb .= "dsp_drop_silence=yes\n\n"; + + $cb .= "; User Profile for call recording channels\n"; + $cb .= "[vici_recording_user]\n"; + $cb .= "type=user\n"; + $cb .= "admin=no\n"; + $cb .= "quiet=yes\n"; + $cb .= "startmuted=yes\n"; + $cb .= "marked=no\n"; + $cb .= "dtmf_passthrough=no\n"; + $cb .= "dsp_drop_silence=yes\n\n"; + + $cb .= "; User Profile for audio playback channels\n"; + $cb .= "[vici_audio_user]\n"; + $cb .= "type=user\n"; + $cb .= "admin=no\n"; + $cb .= "quiet=yes\n"; + $cb .= "startmuted=no\n"; + $cb .= "marked=no\n"; + $cb .= "dtmf_passthrough=no\n"; + $cb .= "dsp_drop_silence=yes\n\n"; + + $cb .= "; User Profile for triggering DTMF\n"; + $cb .= "[vici_dtmf_user]\n"; + $cb .= "type=user\n"; + $cb .= "admin=no\n"; + $cb .= "quiet=yes\n"; + $cb .= "startmuted=yes\n"; + $cb .= "marked=no\n"; + $cb .= "dtmf_passthrough=yes\n"; + $cb .= "dsp_drop_silence=yes\n\n"; + + $cb .= "; User Profile for RINGALL agent channels\n"; + $cb .= "[vici_ringall_user]\n"; + $cb .= "type=user\n"; + $cb .= "admin=no\n"; + $cb .= "quiet=no\n"; + $cb .= "startmuted=no\n"; + $cb .= "marked=yes\n"; + $cb .= "dtmf_passthrough=yes\n"; + $cb .= "announce_only_user=no\n"; + $cb .= "hear_own_join_sound=no\n"; + $cb .= "dsp_drop_silence=yes\n\n"; + + $cb .= "; Menu for changing how you are monitoring an agent\n"; + $cb .= "[vici_monitor_menu]\n"; + $cb .= "type=menu\n"; + $cb .= "4=dialplan_exec(vici_monitor_menu_exec,4,1)\n"; + $cb .= "5=dialplan_exec(vici_monitor_menu_exec,5,1)\n"; + $cb .= "6=dialplan_exec(vici_monitor_menu_exec,6,1)\n"; + + + # check if there are any ConfBridges defined for this server in the database, and if not, add 300 of them + $CB_ct=0; + $stmtA = "SELECT count(*) FROM vicidial_confbridges where server_ip='$server_ip';"; + $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; + $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; + $sthArowsCB=$sthA->rows; + if ($sthArowsCB > 0) + { + @aryA = $sthA->fetchrow_array; + $CB_ct = $aryA[0]; + } + $sthA->finish(); + + if ($CB_ct < 1) + { + $stmtA = "INSERT IGNORE INTO vicidial_confbridges VALUES (9600000,'$server_ip','','0',NULL),(9600001,'$server_ip','','0',NULL),(9600002,'$server_ip','','0',NULL),(9600003,'$server_ip','','0',NULL),(9600004,'$server_ip','','0',NULL),(9600005,'$server_ip','','0',NULL),(9600006,'$server_ip','','0',NULL),(9600007,'$server_ip','','0',NULL),(9600008,'$server_ip','','0',NULL),(9600009,'$server_ip','','0',NULL),(9600010,'$server_ip','','0',NULL),(9600011,'$server_ip','','0',NULL),(9600012,'$server_ip','','0',NULL),(9600013,'$server_ip','','0',NULL),(9600014,'$server_ip','','0',NULL),(9600015,'$server_ip','','0',NULL),(9600016,'$server_ip','','0',NULL),(9600017,'$server_ip','','0',NULL),(9600018,'$server_ip','','0',NULL),(9600019,'$server_ip','','0',NULL),(9600020,'$server_ip','','0',NULL),(9600021,'$server_ip','','0',NULL),(9600022,'$server_ip','','0',NULL),(9600023,'$server_ip','','0',NULL),(9600024,'$server_ip','','0',NULL),(9600025,'$server_ip','','0',NULL),(9600026,'$server_ip','','0',NULL),(9600027,'$server_ip','','0',NULL),(9600028,'$server_ip','','0',NULL),(9600029,'$server_ip','','0',NULL),(9600030,'$server_ip','','0',NULL),(9600031,'$server_ip','','0',NULL),(9600032,'$server_ip','','0',NULL),(9600033,'$server_ip','','0',NULL),(9600034,'$server_ip','','0',NULL),(9600035,'$server_ip','','0',NULL),(9600036,'$server_ip','','0',NULL),(9600037,'$server_ip','','0',NULL),(9600038,'$server_ip','','0',NULL),(9600039,'$server_ip','','0',NULL),(9600040,'$server_ip','','0',NULL),(9600041,'$server_ip','','0',NULL),(9600042,'$server_ip','','0',NULL),(9600043,'$server_ip','','0',NULL),(9600044,'$server_ip','','0',NULL),(9600045,'$server_ip','','0',NULL),(9600046,'$server_ip','','0',NULL),(9600047,'$server_ip','','0',NULL),(9600048,'$server_ip','','0',NULL),(9600049,'$server_ip','','0',NULL),(9600050,'$server_ip','','0',NULL),(9600051,'$server_ip','','0',NULL),(9600052,'$server_ip','','0',NULL),(9600053,'$server_ip','','0',NULL),(9600054,'$server_ip','','0',NULL),(9600055,'$server_ip','','0',NULL),(9600056,'$server_ip','','0',NULL),(9600057,'$server_ip','','0',NULL),(9600058,'$server_ip','','0',NULL),(9600059,'$server_ip','','0',NULL),(9600060,'$server_ip','','0',NULL),(9600061,'$server_ip','','0',NULL),(9600062,'$server_ip','','0',NULL),(9600063,'$server_ip','','0',NULL),(9600064,'$server_ip','','0',NULL),(9600065,'$server_ip','','0',NULL),(9600066,'$server_ip','','0',NULL),(9600067,'$server_ip','','0',NULL),(9600068,'$server_ip','','0',NULL),(9600069,'$server_ip','','0',NULL),(9600070,'$server_ip','','0',NULL),(9600071,'$server_ip','','0',NULL),(9600072,'$server_ip','','0',NULL),(9600073,'$server_ip','','0',NULL),(9600074,'$server_ip','','0',NULL),(9600075,'$server_ip','','0',NULL),(9600076,'$server_ip','','0',NULL),(9600077,'$server_ip','','0',NULL),(9600078,'$server_ip','','0',NULL),(9600079,'$server_ip','','0',NULL),(9600080,'$server_ip','','0',NULL),(9600081,'$server_ip','','0',NULL),(9600082,'$server_ip','','0',NULL),(9600083,'$server_ip','','0',NULL),(9600084,'$server_ip','','0',NULL),(9600085,'$server_ip','','0',NULL),(9600086,'$server_ip','','0',NULL),(9600087,'$server_ip','','0',NULL),(9600088,'$server_ip','','0',NULL),(9600089,'$server_ip','','0',NULL),(9600090,'$server_ip','','0',NULL),(9600091,'$server_ip','','0',NULL),(9600092,'$server_ip','','0',NULL),(9600093,'$server_ip','','0',NULL),(9600094,'$server_ip','','0',NULL),(9600095,'$server_ip','','0',NULL),(9600096,'$server_ip','','0',NULL),(9600097,'$server_ip','','0',NULL),(9600098,'$server_ip','','0',NULL),(9600099,'$server_ip','','0',NULL),(9600100,'$server_ip','','0',NULL),(9600101,'$server_ip','','0',NULL),(9600102,'$server_ip','','0',NULL),(9600103,'$server_ip','','0',NULL),(9600104,'$server_ip','','0',NULL),(9600105,'$server_ip','','0',NULL),(9600106,'$server_ip','','0',NULL),(9600107,'$server_ip','','0',NULL),(9600108,'$server_ip','','0',NULL),(9600109,'$server_ip','','0',NULL),(9600110,'$server_ip','','0',NULL),(9600111,'$server_ip','','0',NULL),(9600112,'$server_ip','','0',NULL),(9600113,'$server_ip','','0',NULL),(9600114,'$server_ip','','0',NULL),(9600115,'$server_ip','','0',NULL),(9600116,'$server_ip','','0',NULL),(9600117,'$server_ip','','0',NULL),(9600118,'$server_ip','','0',NULL),(9600119,'$server_ip','','0',NULL),(9600120,'$server_ip','','0',NULL),(9600121,'$server_ip','','0',NULL),(9600122,'$server_ip','','0',NULL),(9600123,'$server_ip','','0',NULL),(9600124,'$server_ip','','0',NULL),(9600125,'$server_ip','','0',NULL),(9600126,'$server_ip','','0',NULL),(9600127,'$server_ip','','0',NULL),(9600128,'$server_ip','','0',NULL),(9600129,'$server_ip','','0',NULL),(9600130,'$server_ip','','0',NULL),(9600131,'$server_ip','','0',NULL),(9600132,'$server_ip','','0',NULL),(9600133,'$server_ip','','0',NULL),(9600134,'$server_ip','','0',NULL),(9600135,'$server_ip','','0',NULL),(9600136,'$server_ip','','0',NULL),(9600137,'$server_ip','','0',NULL),(9600138,'$server_ip','','0',NULL),(9600139,'$server_ip','','0',NULL),(9600140,'$server_ip','','0',NULL),(9600141,'$server_ip','','0',NULL),(9600142,'$server_ip','','0',NULL),(9600143,'$server_ip','','0',NULL),(9600144,'$server_ip','','0',NULL),(9600145,'$server_ip','','0',NULL),(9600146,'$server_ip','','0',NULL),(9600147,'$server_ip','','0',NULL),(9600148,'$server_ip','','0',NULL),(9600149,'$server_ip','','0',NULL),(9600150,'$server_ip','','0',NULL),(9600151,'$server_ip','','0',NULL),(9600152,'$server_ip','','0',NULL),(9600153,'$server_ip','','0',NULL),(9600154,'$server_ip','','0',NULL),(9600155,'$server_ip','','0',NULL),(9600156,'$server_ip','','0',NULL),(9600157,'$server_ip','','0',NULL),(9600158,'$server_ip','','0',NULL),(9600159,'$server_ip','','0',NULL),(9600160,'$server_ip','','0',NULL),(9600161,'$server_ip','','0',NULL),(9600162,'$server_ip','','0',NULL),(9600163,'$server_ip','','0',NULL),(9600164,'$server_ip','','0',NULL),(9600165,'$server_ip','','0',NULL),(9600166,'$server_ip','','0',NULL),(9600167,'$server_ip','','0',NULL),(9600168,'$server_ip','','0',NULL),(9600169,'$server_ip','','0',NULL),(9600170,'$server_ip','','0',NULL),(9600171,'$server_ip','','0',NULL),(9600172,'$server_ip','','0',NULL),(9600173,'$server_ip','','0',NULL),(9600174,'$server_ip','','0',NULL),(9600175,'$server_ip','','0',NULL),(9600176,'$server_ip','','0',NULL),(9600177,'$server_ip','','0',NULL),(9600178,'$server_ip','','0',NULL),(9600179,'$server_ip','','0',NULL),(9600180,'$server_ip','','0',NULL),(9600181,'$server_ip','','0',NULL),(9600182,'$server_ip','','0',NULL),(9600183,'$server_ip','','0',NULL),(9600184,'$server_ip','','0',NULL),(9600185,'$server_ip','','0',NULL),(9600186,'$server_ip','','0',NULL),(9600187,'$server_ip','','0',NULL),(9600188,'$server_ip','','0',NULL),(9600189,'$server_ip','','0',NULL),(9600190,'$server_ip','','0',NULL),(9600191,'$server_ip','','0',NULL),(9600192,'$server_ip','','0',NULL),(9600193,'$server_ip','','0',NULL),(9600194,'$server_ip','','0',NULL),(9600195,'$server_ip','','0',NULL),(9600196,'$server_ip','','0',NULL),(9600197,'$server_ip','','0',NULL),(9600198,'$server_ip','','0',NULL),(9600199,'$server_ip','','0',NULL),(9600200,'$server_ip','','0',NULL),(9600201,'$server_ip','','0',NULL),(9600202,'$server_ip','','0',NULL),(9600203,'$server_ip','','0',NULL),(9600204,'$server_ip','','0',NULL),(9600205,'$server_ip','','0',NULL),(9600206,'$server_ip','','0',NULL),(9600207,'$server_ip','','0',NULL),(9600208,'$server_ip','','0',NULL),(9600209,'$server_ip','','0',NULL),(9600210,'$server_ip','','0',NULL),(9600211,'$server_ip','','0',NULL),(9600212,'$server_ip','','0',NULL),(9600213,'$server_ip','','0',NULL),(9600214,'$server_ip','','0',NULL),(9600215,'$server_ip','','0',NULL),(9600216,'$server_ip','','0',NULL),(9600217,'$server_ip','','0',NULL),(9600218,'$server_ip','','0',NULL),(9600219,'$server_ip','','0',NULL),(9600220,'$server_ip','','0',NULL),(9600221,'$server_ip','','0',NULL),(9600222,'$server_ip','','0',NULL),(9600223,'$server_ip','','0',NULL),(9600224,'$server_ip','','0',NULL),(9600225,'$server_ip','','0',NULL),(9600226,'$server_ip','','0',NULL),(9600227,'$server_ip','','0',NULL),(9600228,'$server_ip','','0',NULL),(9600229,'$server_ip','','0',NULL),(9600230,'$server_ip','','0',NULL),(9600231,'$server_ip','','0',NULL),(9600232,'$server_ip','','0',NULL),(9600233,'$server_ip','','0',NULL),(9600234,'$server_ip','','0',NULL),(9600235,'$server_ip','','0',NULL),(9600236,'$server_ip','','0',NULL),(9600237,'$server_ip','','0',NULL),(9600238,'$server_ip','','0',NULL),(9600239,'$server_ip','','0',NULL),(9600240,'$server_ip','','0',NULL),(9600241,'$server_ip','','0',NULL),(9600242,'$server_ip','','0',NULL),(9600243,'$server_ip','','0',NULL),(9600244,'$server_ip','','0',NULL),(9600245,'$server_ip','','0',NULL),(9600246,'$server_ip','','0',NULL),(9600247,'$server_ip','','0',NULL),(9600248,'$server_ip','','0',NULL),(9600249,'$server_ip','','0',NULL),(9600250,'$server_ip','','0',NULL),(9600251,'$server_ip','','0',NULL),(9600252,'$server_ip','','0',NULL),(9600253,'$server_ip','','0',NULL),(9600254,'$server_ip','','0',NULL),(9600255,'$server_ip','','0',NULL),(9600256,'$server_ip','','0',NULL),(9600257,'$server_ip','','0',NULL),(9600258,'$server_ip','','0',NULL),(9600259,'$server_ip','','0',NULL),(9600260,'$server_ip','','0',NULL),(9600261,'$server_ip','','0',NULL),(9600262,'$server_ip','','0',NULL),(9600263,'$server_ip','','0',NULL),(9600264,'$server_ip','','0',NULL),(9600265,'$server_ip','','0',NULL),(9600266,'$server_ip','','0',NULL),(9600267,'$server_ip','','0',NULL),(9600268,'$server_ip','','0',NULL),(9600269,'$server_ip','','0',NULL),(9600270,'$server_ip','','0',NULL),(9600271,'$server_ip','','0',NULL),(9600272,'$server_ip','','0',NULL),(9600273,'$server_ip','','0',NULL),(9600274,'$server_ip','','0',NULL),(9600275,'$server_ip','','0',NULL),(9600276,'$server_ip','','0',NULL),(9600277,'$server_ip','','0',NULL),(9600278,'$server_ip','','0',NULL),(9600279,'$server_ip','','0',NULL),(9600280,'$server_ip','','0',NULL),(9600281,'$server_ip','','0',NULL),(9600282,'$server_ip','','0',NULL),(9600283,'$server_ip','','0',NULL),(9600284,'$server_ip','','0',NULL),(9600285,'$server_ip','','0',NULL),(9600286,'$server_ip','','0',NULL),(9600287,'$server_ip','','0',NULL),(9600288,'$server_ip','','0',NULL),(9600289,'$server_ip','','0',NULL),(9600290,'$server_ip','','0',NULL),(9600291,'$server_ip','','0',NULL),(9600292,'$server_ip','','0',NULL),(9600293,'$server_ip','','0',NULL),(9600294,'$server_ip','','0',NULL),(9600295,'$server_ip','','0',NULL),(9600296,'$server_ip','','0',NULL),(9600297,'$server_ip','','0',NULL),(9600298,'$server_ip','','0',NULL),(9600299,'$server_ip','','0',NULL);"; + $affected_rows = $dbhA->do($stmtA) or die "Couldn't execute query: |$stmtA|\n"; + if ($DB) {print "ConfBridges DB populate: $CB_ct|$affected_rows|$stmtA|\n";} + } + } + ##### END generate ConfBridge conf for this server ##### BEGIN generate music on hold entries for this server @@ -4950,6 +5168,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r open(vm, ">/etc/asterisk/BUILDvoicemail-vicidial.conf") || die "can't open /etc/asterisk/BUILDvoicemail-vicidial.conf: $!\n"; open(moh, ">/etc/asterisk/BUILDmusiconhold-vicidial.conf") || die "can't open /etc/asterisk/BUILDmusiconhold-vicidial.conf: $!\n"; open(mm, ">/etc/asterisk/BUILDmeetme-vicidial.conf") || die "can't open /etc/asterisk/BUILDmeetme-vicidial.conf: $!\n"; + open(cb, ">/etc/asterisk/BUILDconfbridge-vicidial.conf") || die "can't open /etc/asterisk/BUILDconfbridge-vicidial.conf: $!\n"; print ext "; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST\n"; print ext "$ext\n"; @@ -4999,6 +5218,8 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r if (length($SScustom_dialplan_entry)>5) {print ext "include => vicidial-auto-system-setting-custom\n";} print ext "\n"; + print ext "$confbridge_enhanced_monitoring"; + print ext "\n"; print ext "\n; END OF FILE Last Forced System Reload: $SSreload_timestamp\n"; print iax "; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST\n"; @@ -5042,6 +5263,10 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r print mm "$mm\n"; print mm "\n; END OF FILE Last Forced System Reload: $SSreload_timestamp\n"; + print cb "; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST\n"; + print cb "$cb\n"; + print cb "\n; END OF FILE Last Forced System Reload: $SSreload_timestamp\n"; + close(ext); close(iax); close(sip); @@ -5050,6 +5275,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r close(vm); close(moh); close(mm); + close(cb); ### find cmp binary $cmpbin = ''; @@ -5092,6 +5318,9 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r if ( !-e ('/etc/asterisk/meetme-vicidial.conf')) {`echo -e \"; END OF FILE\n\" > /etc/asterisk/meetme-vicidial.conf`;} + if ( !-e ('/etc/asterisk/confbridge-vicidial.conf')) + {`echo -e \"; END OF FILE\n\" > /etc/asterisk/confbridge-vicidial.conf`;} + use File::Compare; $extCMP = compare("/etc/asterisk/BUILDextensions-vicidial.conf","/etc/asterisk/extensions-vicidial.conf"); @@ -5102,6 +5331,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r $vmCMP = compare("/etc/asterisk/BUILDvoicemail-vicidial.conf","/etc/asterisk/voicemail.conf"); $mohCMP = compare("/etc/asterisk/BUILDmusiconhold-vicidial.conf","/etc/asterisk/musiconhold-vicidial.conf"); $mmCMP = compare("/etc/asterisk/BUILDmeetme-vicidial.conf","/etc/asterisk/meetme-vicidial.conf"); + $cbCMP = compare("/etc/asterisk/BUILDconfbridge-vicidial.conf","/etc/asterisk/confbridge-vicidial.conf"); sleep(1); @@ -5210,6 +5440,13 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r if ($DB) {print "module reload app_meetme.so\n";} sleep(1); } + if ($cbCMP > 0) + { + `cp -f /etc/asterisk/BUILDconfbridge-vicidial.conf /etc/asterisk/confbridge-vicidial.conf`; + `screen -XS asterisk eval 'stuff "reload app_confbridge.so\015"'`; + if ($DB) {print "reload app_confbridge.so\n";} + sleep(1); + } } `rm -f /etc/asterisk/BUILDextensions-vicidial.conf`; @@ -5220,6 +5457,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r # `rm -f /etc/asterisk/BUILDvoicemail-vicidial.conf`; `rm -f /etc/asterisk/BUILDmusiconhold-vicidial.conf`; `rm -f /etc/asterisk/BUILDmeetme-vicidial.conf`; + `rm -f /etc/asterisk/BUILDconfbridge-vicidial.conf`; } ################################################################################ ##### END Creation of auto-generated conf files diff --git a/agc_2-X/trunk/docs/CALLER_ID_NAME_CODES.txt b/agc_2-X/trunk/docs/CALLER_ID_NAME_CODES.txt index e2f523ca..92f38b9e 100644 --- a/agc_2-X/trunk/docs/CALLER_ID_NAME_CODES.txt +++ b/agc_2-X/trunk/docs/CALLER_ID_NAME_CODES.txt @@ -1,4 +1,4 @@ -CALLER ID NAME CODES DOC Started: 2013-07-15 Updated: 2023-11-18 +CALLER ID NAME CODES DOC Started: 2013-07-15 Updated: 2025-01-03 This document is meant for reference only, and it does not contain all CID name codes possible, but more will be added over time. @@ -35,6 +35,7 @@ ULVC - Clearing of agent session in userLOGout agent screen function BM - Real-time screen blind monitor (BM149425456200006666) BB - Real-time screen blind barge (BB149425456200006666) BW - Real-time screen blind whisper (BW149425456200006666) +BE - Real-time screen enhanced monitor (BE149425456200006666) E - Inbound Email, tracking only (E0001797980001237995) ACagcW - Noone in session call agent phone (ACagcW15167259066666) AM - Agent mute of recording (AM273955W0001922575W) diff --git a/agc_2-X/trunk/docs/conf_examples/confbridge.conf.sample-18 b/agc_2-X/trunk/docs/conf_examples/confbridge.conf.sample-18 new file mode 100644 index 00000000..02cdfeb0 --- /dev/null +++ b/agc_2-X/trunk/docs/conf_examples/confbridge.conf.sample-18 @@ -0,0 +1,463 @@ +[general] +; The general section of this config +; is not currently used, but reserved +; for future use. + +; +; --- Default Information --- +; The default_user and default_bridge sections are applied +; automatically to all ConfBridge instances invoked without +; a user, or bridge argument. No menu is applied by default. +; +; Note that while properties of the default_user or default_bridge +; profile can be overridden, if removed, they will be automatically +; added and made available to the dialplan upon module load. +; + +; --- ConfBridge User Profile Options --- +[default_user] +type=user +;admin=yes ; Sets if the user is an admin or not. Off by default. + +;send_events=no ; If events are enabled for this bridge and this option is + ; set, users will receive events like join, leave, talking, + ; etc. via text messages. For users accessing the bridge + ; via chan_pjsip, this means in-dialog MESSAGE messages. + ; This is most useful for WebRTC participants where the + ; browser application can use the messages to alter the user + ; interface. +;echo_events=yes ; If events are enabled for this user and this option is set, + ; the user will receive events they trigger, talking, mute, etc. + ; If not set, they will not receive their own events. + +;marked=yes ; Sets if this is a marked user or not. Off by default. +;startmuted=yes; Sets if all users should start out muted. Off by default +;music_on_hold_when_empty=yes ; Sets whether MOH should be played when only + ; one person is in the conference or when the + ; the user is waiting on a marked user to enter + ; the conference. Off by default. +;music_on_hold_class=default ; The MOH class to use for this user. +;quiet=yes ; When enabled enter/leave prompts and user intros are not played. + ; There are some prompts, such as the prompt to enter a PIN number, + ; that must be played regardless of what this option is set to. + ; Off by default +;hear_own_join_sound=yes ; Sets if a user joining the conference should hear the sound_join + ; audio sound when they enter the conference. If set to 'no' the + ; user will not hear the sound_join audio but the other participants + ; in the conference will still hear the audio. If set to 'yes' + ; everyone hears the sound_join audio when this user enters the conference. + ; On by default +;announce_user_count=yes ; Sets if the number of users should be announced to the + ; caller. Off by default. +;announce_user_count_all=yes ; Sets if the number of users should be announced to + ; all the other users in the conference when someone joins. + ; This option can be either set to 'yes' or a number. + ; When set to a number, the announcement will only occur + ; once the user count is above the specified number. +;announce_only_user=yes ; Sets if the only user announcement should be played + ; when a channel enters a empty conference. On by default. +;wait_marked=yes ; Sets if the user must wait for a marked user to enter before + ; joining the conference. Off by default. +;end_marked=yes ; This option will kick every non-marked user with this option set in their + ; user profile after the last marked user exits the conference. +;end_marked_any=no ; This option will kick every user with this option set in + ; their user profile after any marked user exits the conference. + ; Additionally, note that unlike end_marked, this includes marked users. + +;dsp_drop_silence=yes ; This option drops what Asterisk detects as silence from + ; entering into the bridge. Enabling this option will drastically + ; improve performance and help remove the buildup of background + ; noise from the conference. Highly recommended for large conferences + ; due to its performance enhancements. + +;dsp_talking_threshold=128 ; Average magnitude threshold to determine talking. + ; + ; The minimum average magnitude per sample in a frame for the + ; DSP to consider talking/noise present. A value below this + ; level is considered silence. This value affects several + ; operations and should not be changed unless the impact on + ; call quality is fully understood. + ; + ; What this value affects internally: + ; + ; 1. Audio is only mixed out of a user's incoming audio + ; stream if talking is detected. If this value is set too + ; high the user will hear himself talking. + ; + ; 2. When talk detection AMI events are enabled, this value + ; determines when talking has begun which results in an + ; AMI event to fire. If this value is set too low AMI + ; events may be falsely triggered by variants in room + ; noise. + ; + ; 3. The 'drop_silence' option depends on this value to + ; determine when the user's audio should be mixed into the + ; bridge after periods of silence. If this value is too + ; high the user's speech will get discarded as they will + ; be considered silent. + ; + ; Valid values are 1 through 2^15. + ; By default this value is 160. + +;dsp_silence_threshold=2000 ; The number of milliseconds of silence necessary to declare + ; talking stopped. + ; + ; The time in milliseconds of sound falling below the + ; 'dsp_talking_threshold' option when a user is considered to + ; stop talking. This value affects several operations and + ; should not be changed unless the impact on call quality is + ; fully understood. + ; + ; What this value affects internally: + ; + ; 1. When talk detection AMI events are enabled, this value + ; determines when the user has stopped talking after a + ; period of talking. If this value is set too low AMI + ; events indicating the user has stopped talking may get + ; falsely sent out when the user briefly pauses during mid + ; sentence. + ; + ; 2. The 'drop_silence' option depends on this value to + ; determine when the user's audio should begin to be + ; dropped from the conference bridge after the user stops + ; talking. If this value is set too low the user's audio + ; stream may sound choppy to the other participants. This + ; is caused by the user transitioning constantly from + ; silence to talking during mid sentence. + ; + ; The best way to approach this option is to set it slightly + ; above the maximum amount of milliseconds of silence a user + ; may generate during natural speech. + ; + ; Valid values are 1 through 2^31. + ; By default this value is 2500ms. + +;talk_detection_events=yes ; This option sets whether or not notifications of when a user + ; begins and ends talking should be sent out as events over AMI. + ; By default this option is off. + +;denoise=yes ; Sets whether or not a denoise filter should be applied + ; to the audio before mixing or not. Off by default. Requires + ; func_speex to be built and installed. Do not confuse this option + ; with drop_silence. Denoise is useful if there is a lot of background + ; noise for a user as it attempts to remove the noise while preserving + ; the speech. This option does NOT remove silence from being mixed into + ; the conference and does come at the cost of a slight performance hit. + +;jitterbuffer=yes ; Enabling this option places a jitterbuffer on the user's audio stream + ; before audio mixing is performed. This is highly recommended but will + ; add a slight delay to the audio. This option is using the JITTERBUFFER + ; dialplan function's default adaptive jitterbuffer. For a more fine tuned + ; jitterbuffer, disable this option and use the JITTERBUFFER dialplan function + ; on the user before entering the ConfBridge application. + +;pin=1234 ; Sets if this user must enter a PIN number before entering + ; the conference. The PIN will be prompted for. +;announce_join_leave=yes ; When enabled, this option will prompt the user for a + ; name when entering the conference. After the name is + ; recorded, it will be played as the user enters and exists + ; the conference. This option is off by default. +;announce_join_leave_review=yes ; When enabled, implies announce_join_leave, but the user + ; will be prompted to review their recording before + ; entering the conference. During this phase, the recording + ; may be listened to, re-recorded, or accepted as is. This + ; option is off by default. +;dtmf_passthrough=yes ; Sets whether or not DTMF should pass through the conference. + ; This option is off by default. +;announcement= ; Play a sound file to the user when they join the conference. + +;timeout=3600 ; When set non-zero, this specifies the number of seconds that the participant + ; may stay in the conference before being automatically ejected. When the user + ; is ejected from the conference, the user's channel will have the CONFBRIDGE_RESULT + ; variable set to "TIMEOUT". A value of 0 indicates that there is no timeout. + ; Default: 0 +;text_messaging=yes ; When set to yes text messages will be sent to this user. Text messages + ; may occur as a result of events or can be received from other participants. + ; When set to no text messages will not be sent to this user. +;answer_channel=yes ; Sets if the channel should be answered if it hasn't been already. + ; On by default. + +; --- ConfBridge Bridge Profile Options --- +[default_bridge] +type=bridge +;max_members=50 ; This option limits the number of participants for a single + ; conference to a specific number. By default conferences + ; have no participant limit. After the limit is reached, the + ; conference will be locked until someone leaves. Note however + ; that an Admin user will always be alowed to join the conference + ; regardless if this limit is reached or not. + +;record_conference=yes ; Records the conference call starting when the first user + ; enters the room, and ending when the last user exits the room. + ; The default recorded filename is + ; 'confbridge--.wav + ; and the default format is 8khz slinear. This file will be + ; located in the configured monitoring directory in asterisk.conf. + +;record_file= ; When record_conference is set to yes, the specific name of the + ; record file can be set using this option. Note that since multiple + ; conferences may use the same bridge profile, this may cause issues + ; depending on the configuration. It is recommended to only use this + ; option dynamically with the CONFBRIDGE() dialplan function. This + ; allows the record name to be specified and a unique name to be chosen. + ; By default, the record_file is stored in Asterisk's spool/monitor directory + ; with a unique filename starting with the 'confbridge' prefix. + +;record_file_append=yes ; Append record file when starting/stopping on same conference recording. +;record_file_timestamp=yes ; Append the start time to the record file name. + +;record_options= ; Pass additional options to MixMonitor. +;record_command= ; Command to execute when recording finishes. + +;internal_sample_rate=auto ; Sets the internal native sample rate the + ; conference is mixed at. This is set to automatically + ; adjust the sample rate to the best quality by default. + ; Other values can be anything from 8000-192000. If a + ; sample rate is set that Asterisk does not support, the + ; closest sample rate Asterisk does support to the one requested + ; will be used. + +;maximum_sample_rate=none ; Sets the maximum sample rate the conference + ; is mixed at. This is set to no maximum by default. + ; Values can be anything from 8000-192000. + +;mixing_interval=40 ; Sets the internal mixing interval in milliseconds for the bridge. This + ; number reflects how tight or loose the mixing will be for the conference. + ; In order to improve performance a larger mixing interval such as 40ms may + ; be chosen. Using a larger mixing interval comes at the cost of introducing + ; larger amounts of delay into the bridge. Valid values here are 10, 20, 40, + ; or 80. By default 20ms is used. + +;video_mode = follow_talker; Sets how confbridge handles video distribution to the conference participants. + ; Note that participants wanting to view and be the source of a video feed + ; _MUST_ be sharing the same video codec. Also, using video in conjunction with + ; with the jitterbuffer currently results in the audio being slightly out of sync + ; with the video. This is a result of the jitterbuffer only working on the audio + ; stream. It is recommended to disable the jitterbuffer when video is used. + ; + ; --- MODES --- + ; none: No video sources are set by default in the conference. It is still + ; possible for a user to be set as a video source via AMI or DTMF action + ; at any time. + ; + ; follow_talker: The video feed will follow whoever is talking and providing video. + ; + ; last_marked: The last marked user to join the conference with video capabilities + ; will be the single source of video distributed to all participants. + ; If multiple marked users are capable of video, the last one to join + ; is always the source, when that user leaves it goes to the one who + ; joined before them. + ; + ; first_marked: The first marked user to join the conference with video capabilities + ; is the single source of video distribution among all participants. If + ; that user leaves, the marked user to join after them becomes the source. + ; + ; sfu: Selective Forwarding Unit - Sets multi-stream operation + ; for a multi-party video conference. + +;language=en ; Set the language used for announcements to the conference. + ; Default is en (English). + +;regcontext=conferences ; The name of the context into which to register conference names as extensions. +;video_update_discard=2000 ; Amount of time (in milliseconds) to discard video update requests after sending a video + ; update request. Default is 2000. A video update request is a request for a full video + ; intra-frame. Clients can request this if they require a full frame in order to decode + ; the video stream. Since a full frame can be large limiting how often they occur can + ; reduce bandwidth usage at the cost of increasing how long it may take a newly joined + ; channel to receive the video stream. +;remb_send_interval=1000 ; Interval (in milliseconds) at which a combined REMB frame will be sent to sources of video. + ; A REMB frame contains receiver estimated maximum bitrate information. By creating a combined + ; frame and sending it to the sources of video the sender can be influenced on what bitrate + ; they choose allowing a better experience for the receivers. This defaults to 0, or disabled. +;remb_behavior=average ; How the combined REMB report for an SFU video bridge is constructed. If set to "average" then + ; the estimated maximum bitrate of each receiver is used to construct an average bitrate. If + ; set to "lowest" the lowest maximum bitrate is forwarded to the sender. If set to "highest" + ; the highest maximum bitrate is forwarded to the sender. If set to "average_all" a single average + ; is generated from every receiver and the same value is sent to every sender. If set to + ; "lowest_all" the lowest maximum bitrate of all receivers is sent to every sender. If set to + ; "highest_all" the highest maximum bitrate of all receivers is sent to every sender. + ; When set to "force", the value set in remb_estimated_bitrate is sent to every sender. + ; This defaults to "average". +;remb_estimated_bitrate=0 ; When remb_behavior is set to 'force', this options sets the estimated bitrate + ; (in bits per second) sent to each participant in REMB reports. + +;enable_events=no ; If enabled, recipients who joined the bridge via a channel driver + ; that supports Enhanced Messaging (currently only chan_pjsip) will + ; receive in-dialog messages containing a JSON body describing the + ; event. The Content-Type header will be + ; "text/x-ast-confbridge-event". + ; This feature must also be enabled in user profiles. + +; All sounds in the conference are customizable using the bridge profile options below. +; Simply state the option followed by the filename or full path of the filename after +; the option. Example: sound_had_joined=conf-hasjoin This will play the conf-hasjoin +; sound file found in the sounds directory when announcing someone's name is joining the +; conference. + +;sound_join ; The sound played to everyone when someone enters the conference. +;sound_leave ; The sound played to everyone when someone leaves the conference. +;sound_has_joined ; The sound played before announcing someone's name has + ; joined the conference. This is used for user intros. + ; Example "_____ has joined the conference" +;sound_has_left ; The sound played when announcing someone's name has + ; left the conference. This is used for user intros. + ; Example "_____ has left the conference" +;sound_kicked ; The sound played to a user who has been kicked from the conference. +;sound_muted ; The sound played when the mute option is toggled on using DTMF menu. +;sound_unmuted ; The sound played when the mute option is toggled off using DTMF menu. +;sound_only_person ; The sound played when the user is the only person in the conference. +;sound_only_one ; The sound played to a user when there is only one other + ; person is in the conference. +;sound_there_are ; The sound played when announcing how many users there + ; are in a conference. +;sound_other_in_party; ; This file is used in conjunction with 'sound_there_are" + ; when announcing how many users there are in the conference. + ; The sounds are stringed together like this. + ; "sound_there_are" "sound_other_in_party" +;sound_place_into_conference ; The sound played when someone is placed into the conference + ; after waiting for a marked user. This sound is now deprecated + ; since it was only ever used improperly and correcting that bug + ; made it completely unused. +;sound_wait_for_leader ; The sound played when a user is placed into a conference that + ; can not start until a marked user enters. +;sound_leader_has_left ; The sound played when the last marked user leaves the conference. +;sound_get_pin ; The sound played when prompting for a conference pin number. +;sound_invalid_pin ; The sound played when an invalid pin is entered too many times. +;sound_locked ; The sound played to a user trying to join a locked conference. +;sound_locked_now ; The sound played to an admin after toggling the conference to locked mode. +;sound_unlocked_now; The sound played to an admin after toggling the conference to unlocked mode. +;sound_error_menu ; The sound played when an invalid menu option is entered. +;sound_begin ; The sound played to the conference when the first marked user enters the conference. +;sound_binaural_on ; The sound played when binaural audio is turned on +;sound_binaural_off ; The sound played when binaural audio is turned off + +; --- ConfBridge Menu Options --- +; The ConfBridge application also has the ability to +; apply custom DTMF menus to each channel using the +; application. Like the User and Bridge profiles +; a menu is passed in to ConfBridge as an argument in +; the dialplan. +; +; Below is a list of menu actions that can be assigned +; to a DTMF sequence. +; +; To have the first DTMF digit in a sequence be the '#' character, you need to +; escape it. If it is not escaped then normal config file processing will +; think it is a directive like #include. For example: +; \#1=toggle_mute ; Pressing #1 will toggle the mute setting. +; +; A single DTMF sequence can have multiple actions associated with it. This is +; accomplished by stringing the actions together and using a ',' as the delimiter. +; Example: Both listening and talking volume is reset when '5' is pressed. +; 5=reset_talking_volume, reset_listening_volume +; +; playback(&) + ; Playback will play back an audio file to a channel + ; and then immediately return to the conference. + ; This file can not be interupted by DTMF. + ; Mutliple files can be chained together using the + ; '&' character. +; playback_and_continue(&) + ; playback_and_continue will + ; play back a prompt while continuing to + ; collect the dtmf sequence. This is useful + ; when using a menu prompt that describes all + ; the menu options. Note however that any DTMF + ; during this action will terminate the prompts + ; playback. Prompt files can be chained together + ; using the '&' character as a delimiter. +; toggle_mute ; Toggle turning on and off mute. Mute will make the user silent + ; to everyone else, but the user will still be able to listen in. +; toggle_binaural ; Toggle on or off binaural audio processing. + +; no_op ; This action does nothing (No Operation). Its only real purpose exists for + ; being able to reserve a sequence in the config as a menu exit sequence. +; decrease_listening_volume ; Decreases the channel's listening volume. +; increase_listening_volume ; Increases the channel's listening volume. +; reset_listening_volume ; Reset channel's listening volume to default level. + +; decrease_talking_volume ; Decreases the channel's talking volume. +; increase_talking_volume ; Icreases the channel's talking volume. +; reset_talking_volume ; Reset channel's talking volume to default level. +; +; dialplan_exec(context,exten,priority) ; The dialplan_exec action allows a user + ; to escape from the conference and execute + ; commands in the dialplan. Once the dialplan + ; exits the user will be put back into the + ; conference. The possibilities are endless! +; leave_conference ; This action allows a user to exit the conference and continue + ; execution in the dialplan. +; +; admin_kick_last ; This action allows an Admin to kick the last participant from the + ; conference. This action will only work for admins which allows + ; a single menu to be used for both users and admins. +; +; admin_toggle_conference_lock ; This action allows an Admin to toggle locking and + ; unlocking the conference. Non admins can not use + ; this action even if it is in their menu. + +; set_as_single_video_src ; This action allows any user to set themselves as the + ; single video source distributed to all participants. + ; This will make the video feed stick to them regardless + ; of what the video_mode is set to. + +; release_as_single_video_src ; This action allows a user to release themselves as + ; the video source. If video_mode is not set to "none" + ; this action will result in the conference returning to + ; whatever video mode the bridge profile is using. + ; + ; Note that this action will have no effect if the user + ; is not currently the video source. Also, the user is + ; not guaranteed by using this action that they will not + ; become the video source again. The bridge will return + ; to whatever operation the video_mode option is set to + ; upon release of the video src. + +; admin_toggle_mute_participants ; This action allows an administrator to toggle the mute + ; state for all non-admins within a conference. + ; Subsequent non-admins joining a muted conference will + ; start muted. All admin users are unaffected by this + ; option. Note that all users, regardless of their admin + ; status, are notified that the conference is muted when + ; the state is toggled. + +; participant_count ; This action plays back the number of participants currently + ; in a conference + +[sample_user_menu] +type=menu +*=playback_and_continue(conf-usermenu) +*1=toggle_mute +1=toggle_mute +*4=decrease_listening_volume +4=decrease_listening_volume +*6=increase_listening_volume +6=increase_listening_volume +*7=decrease_talking_volume +7=decrease_talking_volume +*8=leave_conference +8=leave_conference +*9=increase_talking_volume +9=increase_talking_volume + +[sample_admin_menu] +type=menu +*=playback_and_continue(conf-adminmenu) +*1=toggle_mute +1=toggle_mute +*2=admin_toggle_conference_lock ; only applied to admin users +2=admin_toggle_conference_lock ; only applied to admin users +*3=admin_kick_last ; only applied to admin users +3=admin_kick_last ; only applied to admin users +*4=decrease_listening_volume +4=decrease_listening_volume +*6=increase_listening_volume +6=increase_listening_volume +*7=decrease_talking_volume +7=decrease_talking_volume +*8=no_op +8=no_op +*9=increase_talking_volume +9=increase_talking_volume + +#include "confbridge-vicidial.conf" diff --git a/agc_2-X/trunk/docs/conf_examples/extensions.conf.sample-18 b/agc_2-X/trunk/docs/conf_examples/extensions.conf.sample-18 index a367f4bc..9953bf4a 100644 --- a/agc_2-X/trunk/docs/conf_examples/extensions.conf.sample-18 +++ b/agc_2-X/trunk/docs/conf_examples/extensions.conf.sample-18 @@ -631,6 +631,69 @@ exten => _999XXXXXX0,n,Hangup() ;exten => 99999999999,n,Playback(conf) ;exten => 99999999999,n,Hangup() +; -------------------------- +; ConfBridge Extensions +; -------------------------- + +; use to send a customer channel into the conference +exten => _9600XXX,1,Answer() +exten => _9600XXX,n,Playback(sip-silence) +exten => _9600XXX,n,ConfBridge(${EXTEN},vici_agent_bridge,vici_customer_user) +exten => _9600XXX,n,Hangup() + +; used to send an agent channel into the conference +exten => _29600XXX,1,Answer() +exten => _29600XXX,n,Playback(sip-silence) +exten => _29600XXX,n,ConfBridge(${EXTEN:1},vici_agent_bridge,vici_agent_user) +exten => _29600XXX,n,Hangup() + +; used by an admin to enter the confernece +exten => _39600XXX,1,Answer() +exten => _39600XXX,n,Playback(sip-silence) +exten => _39600XXX,n,ConfBridge(${EXTEN:1},vici_agent_bridge,vici_admin_user) +exten => _39600XXX,n,Hangup() + +; used to monitor a conference +exten => _49600XXX,1,Answer() +exten => _49600XXX,n,Playback(sip-silence) +exten => _49600XXX,n,ConfBridge(${EXTEN:1},vici_agent_bridge,vici_monitor_user) +exten => _49600XXX,n,Hangup() + +; used to record into a conference +exten => _59600XXX,1,Answer() +exten => _59600XXX,n,Playback(sip-silence) +exten => _59600XXX,n,ConfBridge(${EXTEN:1},vici_agent_bridge,vici_recording_user) +exten => _59600XXX,n,Hangup() + +; used to barge a conference +exten => _69600XXX,1,Answer() +exten => _69600XXX,n,Playback(sip-silence) +exten => _69600XXX,n,ConfBridge(${EXTEN:1},vici_agent_bridge,vici_barge_user) +exten => _69600XXX,n,Hangup() + +; used to trigger DTMF tones in a conference +exten => _79600XXX,1,Answer() +exten => _79600XXX,n,Playback(sip-silence) +exten => _79600XXX,n,ConfBridge(${EXTEN:1},vici_agent_bridge,vici_dtmf_user) +exten => _79600XXX,n,Hangup() + +; Used to play an audio file to a conference +exten => _89600XXX,1,Answer() +exten => _89600XXX,n,Playback(sip-silence) +exten => _89600XXX,n,ConfBridge(${EXTEN:1},vici_agent_bridge,vici_audio_user) +exten => _89600XXX,n,Hangup() + +; Used to kick all channels from a conference +exten => _99600XXX,1,ConfKick(${EXTEN:1},all) +exten => _99600XXX,2,Hangup() +exten => _55559600XXX,1,ConfKick(${EXTEN:4},all) +exten => _55559600XXX,2,Hangup() + +; used to send an ringall agent channel into the conference +exten => _19600XXX,1,Answer() +exten => _19600XXX,n,Playback(sip-silence) +exten => _19600XXX,n,ConfBridge(${EXTEN:1},vici_agent_bridge,vici_ringall_user) +exten => _19600XXX,n,Hangup() [monitor] exten => h,1,AGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}-----${HANGUPCAUSE(${HANGUPCAUSE_KEYS()},tech)})) diff --git a/agc_2-X/trunk/docs/conf_examples/manager.conf.sample-18 b/agc_2-X/trunk/docs/conf_examples/manager.conf.sample-18 new file mode 100644 index 00000000..7b4a170d --- /dev/null +++ b/agc_2-X/trunk/docs/conf_examples/manager.conf.sample-18 @@ -0,0 +1,58 @@ +[general] +enabled = yes +port = 5038 +bindaddr = 0.0.0.0 +timestampevents = yes + +[cron] +secret = 1234 +read = system,call,log,verbose,command,agent,user,originate +write = system,call,log,verbose,command,agent,user,originate + +[updatecron] +secret = 1234 +read = command,reporting +write = command,reporting + +eventfilter=Event: CoreShowChannel + + +[listencron] +secret = 1234 +read = system,call,log,verbose,command,agent,user,dtmf +write = command + +eventfilter=Event: Shutdown +eventfilter=Event: DTMFBegin +eventfilter=Event: DTMFEnd +eventfilter=Event: NewCallerid +eventfilter=Event: Newstate +eventfilter=Event: Hangup +eventfilter=!Event: HangupRequest + +; Optional +eventfilter=Event: PeerStatus +eventfilter=Event: SIPRTPDisconnect +eventfilter=Event: PeerRegistered +eventfilter=Event: SIPCriticalTimeout + +[sendcron] +secret = 1234 +read = command +write = system,call,log,verbose,command,agent,user,originate + +[sipcron] +secret = 1234 +read = call +write = command + +eventfilter=Event: SIPInvite +eventfilter=Event: SIPResponse + +[confcron] +secret = 1234 +read = command,reporting +write = command,reporting + +eventfilter=Event: Meetme +eventfilter=Event: Confbridge diff --git a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql index 7ffb5bdc..93bde770 100644 --- a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql +++ b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql @@ -2051,7 +2051,8 @@ coldstorage_dbname VARCHAR(50) default '', coldstorage_login VARCHAR(50) default '', coldstorage_pass VARCHAR(50) default '', coldstorage_port VARCHAR(10) default '', -stereo_recording ENUM('0','1','2','3','4','5','6') default '0' +stereo_recording ENUM('0','1','2','3','4','5','6') default '0', +enhanced_agent_monitoring ENUM('0','1','2','3','4','5','6') default '0' ) ENGINE=MyISAM; CREATE TABLE vicidial_campaigns_list_mix ( @@ -5737,4 +5738,4 @@ INSERT INTO `wallboard_reports` VALUES ('AGENTS_AND_QUEUES','Agents and Queues', UPDATE system_settings set vdc_agent_api_active='1'; -UPDATE system_settings SET db_schema_version='1722',db_schema_update_date=NOW(),reload_timestamp=NOW(); +UPDATE system_settings SET db_schema_version='1723',db_schema_update_date=NOW(),reload_timestamp=NOW(); diff --git a/agc_2-X/trunk/extras/upgrade_2.14.sql b/agc_2-X/trunk/extras/upgrade_2.14.sql index a50e1e47..34ff0768 100644 --- a/agc_2-X/trunk/extras/upgrade_2.14.sql +++ b/agc_2-X/trunk/extras/upgrade_2.14.sql @@ -2818,3 +2818,7 @@ ALTER TABLE vicidial_inbound_dids MODIFY filter_phone_group_id TEXT; ALTER TABLE vicidial_inbound_dids MODIFY pre_filter_phone_group_id TEXT; UPDATE system_settings SET db_schema_version='1722',db_schema_update_date=NOW() where db_schema_version < 1722; + +ALTER TABLE system_settings ADD enhanced_agent_monitoring ENUM('0','1','2','3','4','5','6') default '0'; + +UPDATE system_settings SET db_schema_version='1723',db_schema_update_date=NOW() where db_schema_version < 1723; diff --git a/agc_2-X/trunk/install.pl b/agc_2-X/trunk/install.pl index 5515b205..10302f4c 100644 --- a/agc_2-X/trunk/install.pl +++ b/agc_2-X/trunk/install.pl @@ -2,7 +2,7 @@ # install.pl version 2.14 # -# Copyright (C) 2024 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2025 Matt Florell LICENSE: AGPLv2 # # CHANGES @@ -52,6 +52,7 @@ # 230117-2220 - Added --khomp-enable CLI flag # 230508-0809 - Added Asterisk 18 compatibility # 240704-0830 - Added coldstorage DB entries +# 250103-1017 - Added ConfBridge conf files updates # ############################################ @@ -95,7 +96,7 @@ $VARCS_port = '3306'; # default keepalive processes: $VARactive_keepalives = '1234568'; # default Asterisk version: -$VARasterisk_version = '13.X'; +$VARasterisk_version = '16.X'; # default recording FTP archive variables: $VARFTP_host = '10.0.0.4'; $VARFTP_user = 'cron'; @@ -2976,15 +2977,16 @@ if ( ($PROMPTcopy_conf_files =~ /y/i) || ($CLIcopy_conf_files =~ /y/i) ) } else { - if ($VARasterisk_version =~ /^18|^20/) + if ($VARasterisk_version =~ /^18|^20|^22/) { `cp -f ./docs/conf_examples/extensions.conf.sample-18 /etc/asterisk/extensions.conf`; `cp -f ./docs/conf_examples/iax.conf.sample-1.4 /etc/asterisk/iax.conf`; `cp -f ./docs/conf_examples/sip.conf.sample-13 /etc/asterisk/sip.conf`; - `cp -f ./docs/conf_examples/manager.conf.sample-13 /etc/asterisk/manager.conf`; + `cp -f ./docs/conf_examples/manager.conf.sample-18 /etc/asterisk/manager.conf`; `cp -f ./docs/conf_examples/voicemail.conf.sample-1.8 /etc/asterisk/voicemail.conf`; `cp -f ./docs/conf_examples/pjsip.conf.sample-16 /etc/asterisk/pjsip.conf`; `cp -f ./docs/conf_examples/pjsip_wizard.conf.sample-16 /etc/asterisk/pjsip_wizard.conf`; + `cp -f ./docs/conf_examples/confbridge.conf.sample-18 /etc/asterisk/confbridge.conf`; } else { diff --git a/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php b/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php index 22717001..15557419 100644 --- a/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php +++ b/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2025 Matt Florell LICENSE: AGPLv2 # # live real-time stats for the VICIDIAL Auto-Dialer all servers # @@ -133,10 +133,11 @@ # 230811-1530 - Added realtime monitoring display information # 231115-1656 - Added RS_no_DEAD_status and RS_hide_CUST_info options.php settings # 240801-1130 - Code updates for PHP8 compatibility +# 250103-0929 - Added enhanced_agent_monitoring code # -$version = '2.14-117'; -$build = '231115-1656'; +$version = '2.14-118'; +$build = '250103-0929'; $php_script='AST_timeonVDADall.php'; require("dbconnect_mysqli.php"); @@ -285,7 +286,7 @@ $db_source = 'M'; ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### -$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method,agent_whisper_enabled,allow_chats,cache_carrier_stats_realtime,report_default_format,ofcom_uk_drop_calc,enable_pause_code_limits,timeclock_end_of_day,allow_web_debug FROM system_settings;"; +$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method,agent_whisper_enabled,allow_chats,cache_carrier_stats_realtime,report_default_format,ofcom_uk_drop_calc,enable_pause_code_limits,timeclock_end_of_day,allow_web_debug,enhanced_agent_monitoring FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); #if ($DB) {echo "$stmt\n";} $qm_conf_ct = mysqli_num_rows($rslt); @@ -306,6 +307,7 @@ if ($qm_conf_ct > 0) $SSenable_pause_code_limits = $row[11]; $SStimeclock_end_of_day = $row[12]; $SSallow_web_debug = $row[13]; + $SSenhanced_agent_monitoring = $row[14]; } if ($SSallow_web_debug < 1) {$DB=0;} ##### END SETTINGS LOOKUP ##### diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index b4ddcb44..3a325b98 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2025 Matt Florell LICENSE: AGPLv2 # $startMS = microtime(); @@ -2840,6 +2840,8 @@ if (isset($_GET["manual_minimum_answer_seconds"])) {$manual_minimum_answer_sec elseif (isset($_POST["manual_minimum_answer_seconds"])) {$manual_minimum_answer_seconds=$_POST["manual_minimum_answer_seconds"];} if (isset($_GET["khomp_settings_container"])) {$khomp_settings_container=$_GET["khomp_settings_container"];} elseif (isset($_POST["khomp_settings_container"])) {$khomp_settings_container=$_POST["khomp_settings_container"];} +if (isset($_GET["enhanced_agent_monitoring"])) {$enhanced_agent_monitoring=$_GET["enhanced_agent_monitoring"];} + elseif (isset($_POST["enhanced_agent_monitoring"])) {$enhanced_agent_monitoring=$_POST["enhanced_agent_monitoring"];} $DB=preg_replace("/[^0-9a-zA-Z]/","",$DB); @@ -2855,7 +2857,7 @@ if (strlen($dial_status) > 0) ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### -$stmt = "SELECT use_non_latin,enable_queuemetrics_logging,enable_vtiger_integration,qc_features_active,outbound_autodial_active,sounds_central_control_active,enable_second_webform,user_territories_active,custom_fields_enabled,admin_web_directory,webphone_url,first_login_trigger,hosted_settings,default_phone_registration_password,default_phone_login_password,default_server_password,test_campaign_calls,active_voicemail_server,voicemail_timezones,default_voicemail_timezone,default_local_gmt,campaign_cid_areacodes_enabled,pllb_grouping_limit,did_ra_extensions_enabled,expanded_list_stats,contacts_enabled,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,call_menu_qualify_enabled,admin_list_counts,allow_voicemail_greeting,svn_revision,allow_emails,level_8_disable_add,pass_key,pass_hash_enabled,disable_auto_dial,country_code_list_stats,frozen_server_call_clear,active_modules,allow_chats,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_did_entry_list_id,enable_third_webform,default_language,user_hide_realtime_enabled,log_recording_access,alt_ivr_logging,admin_row_click,admin_screen_colors,ofcom_uk_drop_calc,agent_screen_colors,script_remove_js,manual_auto_next,user_new_lead_limit,agent_xfer_park_3way,agent_soundboards,web_loader_phone_length,agent_script,enable_auto_reports,enable_pause_code_limits,enable_drop_lists,allow_ip_lists,system_ip_blacklist,hide_inactive_lists,allow_manage_active_lists,expired_lists_inactive,did_system_filter,enable_gdpr_download_deletion,mute_recordings,user_admin_redirect,list_status_modification_confirmation,sip_event_logging,call_quota_lead_ranking,enable_second_script,enable_first_webform,recording_buttons,opensips_cid_name,require_password_length,user_account_emails,outbound_cid_any,entries_per_page,browser_call_alerts,inbound_answer_config,enable_international_dncs,daily_call_count_limit,allow_shared_dial,agent_search_method,admin_home_url,qc_claim_limit,qc_expire_days,two_factor_auth_hours,two_factor_container,call_limit_24hour,allowed_sip_stacks,agent_hide_hangup,allow_web_debug,max_logged_in_agents,user_codes_admin,abandon_check_queue,agent_notifications,demographic_quotas,inbound_credits,weekday_resets,two_factor_auth_agent_hours,hopper_hold_inserts,coldstorage_server_ip,coldstorage_dbname,coldstorage_login,coldstorage_pass,coldstorage_port FROM system_settings;"; +$stmt = "SELECT use_non_latin,enable_queuemetrics_logging,enable_vtiger_integration,qc_features_active,outbound_autodial_active,sounds_central_control_active,enable_second_webform,user_territories_active,custom_fields_enabled,admin_web_directory,webphone_url,first_login_trigger,hosted_settings,default_phone_registration_password,default_phone_login_password,default_server_password,test_campaign_calls,active_voicemail_server,voicemail_timezones,default_voicemail_timezone,default_local_gmt,campaign_cid_areacodes_enabled,pllb_grouping_limit,did_ra_extensions_enabled,expanded_list_stats,contacts_enabled,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,call_menu_qualify_enabled,admin_list_counts,allow_voicemail_greeting,svn_revision,allow_emails,level_8_disable_add,pass_key,pass_hash_enabled,disable_auto_dial,country_code_list_stats,frozen_server_call_clear,active_modules,allow_chats,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_did_entry_list_id,enable_third_webform,default_language,user_hide_realtime_enabled,log_recording_access,alt_ivr_logging,admin_row_click,admin_screen_colors,ofcom_uk_drop_calc,agent_screen_colors,script_remove_js,manual_auto_next,user_new_lead_limit,agent_xfer_park_3way,agent_soundboards,web_loader_phone_length,agent_script,enable_auto_reports,enable_pause_code_limits,enable_drop_lists,allow_ip_lists,system_ip_blacklist,hide_inactive_lists,allow_manage_active_lists,expired_lists_inactive,did_system_filter,enable_gdpr_download_deletion,mute_recordings,user_admin_redirect,list_status_modification_confirmation,sip_event_logging,call_quota_lead_ranking,enable_second_script,enable_first_webform,recording_buttons,opensips_cid_name,require_password_length,user_account_emails,outbound_cid_any,entries_per_page,browser_call_alerts,inbound_answer_config,enable_international_dncs,daily_call_count_limit,allow_shared_dial,agent_search_method,admin_home_url,qc_claim_limit,qc_expire_days,two_factor_auth_hours,two_factor_container,call_limit_24hour,allowed_sip_stacks,agent_hide_hangup,allow_web_debug,max_logged_in_agents,user_codes_admin,abandon_check_queue,agent_notifications,demographic_quotas,inbound_credits,weekday_resets,two_factor_auth_agent_hours,hopper_hold_inserts,coldstorage_server_ip,coldstorage_dbname,coldstorage_login,coldstorage_pass,coldstorage_port,enhanced_agent_monitoring FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); #if ($DB) {echo "$stmt\n";} $qm_conf_ct = mysqli_num_rows($rslt); @@ -2979,6 +2981,7 @@ if ($qm_conf_ct > 0) $SScoldstorage_login = $row[114]; $SScoldstorage_pass = $row[115]; $SScoldstorage_port = $row[116]; + $SSenhanced_agent_monitoring = $row[117]; } if ($SSallow_web_debug < 1) {$DB=0;} ##### END SETTINGS LOOKUP ##### @@ -3378,6 +3381,7 @@ $daily_phone_number_call_limit = preg_replace('/[^0-9]/','',$daily_phone_number_ $manual_minimum_ring_seconds = preg_replace('/[^0-9]/','',$manual_minimum_ring_seconds); $manual_minimum_attempt_seconds = preg_replace('/[^0-9]/','',$manual_minimum_attempt_seconds); $manual_minimum_answer_seconds = preg_replace('/[^0-9]/','',$manual_minimum_answer_seconds); +$enhanced_agent_monitoring = preg_replace('/[^0-9]/','',$enhanced_agent_monitoring); $user_new_lead_limit = preg_replace('/[^-0-9]/','',$user_new_lead_limit); $drop_call_seconds = preg_replace('/[^-0-9]/','',$drop_call_seconds); @@ -6220,12 +6224,13 @@ if ($SSscript_remove_js > 0) # 241113-2002 - Added update timestamps for sub-settings groups(like campaigns) # 241206-1527 - Do not display inactive VDAD/VDCL users in Copy User screen # 241208-1747 - Changed DID filter_phone_group_id & pre_filter_phone_group_id to multi-selects +# 250103-0843 - Added Enhanced Agent Monitoring system settings option, Changed copyright date # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time -$admin_version = '2.14-933a'; -$build = '241208-1747'; +$admin_version = '2.14-934a'; +$build = '250103-0843'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -6299,7 +6304,7 @@ if ($force_logout) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; ?> \n"; echo "\n"; @@ -21269,7 +21274,7 @@ if ($ADD==411111111111111) } } - $stmt="UPDATE system_settings set use_non_latin='$use_non_latin',webroot_writable='$webroot_writable',enable_queuemetrics_logging='$enable_queuemetrics_logging',queuemetrics_server_ip='$queuemetrics_server_ip',queuemetrics_dbname='$queuemetrics_dbname',queuemetrics_login='$queuemetrics_login',queuemetrics_pass='$queuemetrics_pass',queuemetrics_url='" . mysqli_real_escape_string($link, $queuemetrics_url) . "',queuemetrics_log_id='$queuemetrics_log_id',queuemetrics_eq_prepend='$queuemetrics_eq_prepend',vicidial_agent_disable='$vicidial_agent_disable',allow_sipsak_messages='$allow_sipsak_messages',admin_home_url='" . mysqli_real_escape_string($link, $admin_home_url) . "',enable_agc_xfer_log='$enable_agc_xfer_log',timeclock_end_of_day='$timeclock_end_of_day',vdc_header_date_format='$vdc_header_date_format',vdc_customer_date_format='$vdc_customer_date_format',vdc_header_phone_format='$vdc_header_phone_format',vdc_agent_api_active='$vdc_agent_api_active',enable_vtiger_integration='$enable_vtiger_integration',vtiger_server_ip='$vtiger_server_ip',vtiger_dbname='$vtiger_dbname',vtiger_login='$vtiger_login',vtiger_pass='$vtiger_pass',vtiger_url='" . mysqli_real_escape_string($link, $vtiger_url) . "',qc_features_active='$qc_features_active',outbound_autodial_active='$outbound_autodial_active',outbound_calls_per_second='$outbound_calls_per_second',enable_tts_integration='$enable_tts_integration',agentonly_callback_campaign_lock='$agentonly_callback_campaign_lock',sounds_central_control_active='$sounds_central_control_active',sounds_web_server='$sounds_web_server',sounds_web_directory='$sounds_web_directory',active_voicemail_server='$active_voicemail_server',auto_dial_limit='$auto_dial_limit',user_territories_active='$user_territories_active',allow_custom_dialplan='$allow_custom_dialplan',enable_second_webform='$enable_second_webform',default_webphone='$default_webphone',default_external_server_ip='$default_external_server_ip',webphone_url='" . mysqli_real_escape_string($link, $webphone_url) . "',enable_agc_dispo_log='$enable_agc_dispo_log',queuemetrics_loginout='$queuemetrics_loginout',callcard_enabled='$callcard_enabled',queuemetrics_callstatus='$queuemetrics_callstatus',default_codecs='$default_codecs',admin_web_directory='$admin_web_directory',label_title='$label_title',label_first_name='$label_first_name',label_middle_initial='$label_middle_initial',label_last_name='$label_last_name',label_address1='$label_address1',label_address2='$label_address2',label_address3='$label_address3',label_city='$label_city',label_state='$label_state',label_province='$label_province',label_postal_code='$label_postal_code',label_vendor_lead_code='$label_vendor_lead_code',label_gender='$label_gender',label_phone_number='$label_phone_number',label_phone_code='$label_phone_code',label_alt_phone='$label_alt_phone',label_security_phrase='$label_security_phrase',label_email='$label_email',label_comments='$label_comments',label_lead_id='$label_lead_id',label_list_id='$label_list_id',label_entry_date='$label_entry_date',label_gmt_offset_now='$label_gmt_offset_now',label_source_id='$label_source_id',label_called_since_last_reset='$label_called_since_last_reset',label_status='$label_status',label_user='$label_user',label_date_of_birth='$label_date_of_birth',label_country_code='$label_country_code',label_last_local_call_time='$label_last_local_call_time',label_called_count='$label_called_count',label_rank='$label_rank',label_owner='$label_owner',label_entry_list_id='$label_entry_list_id',custom_fields_enabled='$custom_fields_enabled',slave_db_server='$slave_db_server',reports_use_slave_db='$reports_use_slave_db'$custom_reports_slave_SQL,webphone_systemkey='$webphone_systemkey',first_login_trigger='$first_login_trigger',default_phone_registration_password='$default_phone_registration_password',default_phone_login_password='$default_phone_login_password',default_server_password='$default_server_password',admin_modify_refresh='$admin_modify_refresh',nocache_admin='$nocache_admin',generate_cross_server_exten='$generate_cross_server_exten',queuemetrics_addmember_enabled='$queuemetrics_addmember_enabled',queuemetrics_dispo_pause='$queuemetrics_dispo_pause',label_hide_field_logs='$label_hide_field_logs',queuemetrics_pe_phone_append='$queuemetrics_pe_phone_append',test_campaign_calls='$test_campaign_calls',agents_calls_reset='$agents_calls_reset',default_voicemail_timezone='$default_voicemail_timezone',default_local_gmt='$default_local_gmt',noanswer_log='$noanswer_log',alt_log_server_ip='$alt_log_server_ip',alt_log_dbname='$alt_log_dbname',alt_log_login='$alt_log_login',alt_log_pass='$alt_log_pass',tables_use_alt_log_db='$tables_use_alt_log_db',did_agent_log='$did_agent_log',campaign_cid_areacodes_enabled='$campaign_cid_areacodes_enabled',pllb_grouping_limit='$pllb_grouping_limit',did_ra_extensions_enabled='$did_ra_extensions_enabled',expanded_list_stats='$expanded_list_stats',contacts_enabled='$contacts_enabled',call_menu_qualify_enabled='$call_menu_qualify_enabled',admin_list_counts='$admin_list_counts',allow_voicemail_greeting='$allow_voicemail_greeting',queuemetrics_socket='$queuemetrics_socket',queuemetrics_socket_url='$queuemetrics_socket_url',enhanced_disconnect_logging='$enhanced_disconnect_logging',allow_emails='$allow_emails',level_8_disable_add='$level_8_disable_add',queuemetrics_record_hold='$queuemetrics_record_hold',country_code_list_stats='$country_code_list_stats',queuemetrics_pause_type='$queuemetrics_pause_type',frozen_server_call_clear='$frozen_server_call_clear',callback_time_24hour='$callback_time_24hour',enable_languages='$enable_languages',language_method='$language_method',meetme_enter_login_filename='$meetme_enter_login_filename',meetme_enter_leave3way_filename='$meetme_enter_leave3way_filename',enable_did_entry_list_id='$enable_did_entry_list_id',enable_third_webform='$enable_third_webform',allow_chats='$allow_chats',chat_url='" . mysqli_real_escape_string($link, $chat_url) . "',chat_timeout='$chat_timeout',agent_debug_logging='$agent_debug_logging',default_language='$default_language',agent_whisper_enabled='$agent_whisper_enabled',user_hide_realtime_enabled='$user_hide_realtime_enabled',usacan_phone_dialcode_fix='$usacan_phone_dialcode_fix',cache_carrier_stats_realtime='$cache_carrier_stats_realtime',log_recording_access='$log_recording_access',report_default_format='$report_default_format',alt_ivr_logging='$alt_ivr_logging',default_phone_code='$default_phone_code',admin_row_click='$admin_row_click',admin_screen_colors='$admin_screen_colors',ofcom_uk_drop_calc='$ofcom_uk_drop_calc',agent_screen_colors='$agent_screen_colors',script_remove_js='$script_remove_js',manual_auto_next='$manual_auto_next',user_new_lead_limit='$user_new_lead_limit',agent_xfer_park_3way='$agent_xfer_park_3way',agent_soundboards='$agent_soundboards',web_loader_phone_length='$web_loader_phone_length',agent_script='$agent_script',agent_chat_screen_colors='$agent_chat_screen_colors',enable_auto_reports='$enable_auto_reports',enable_pause_code_limits='$enable_pause_code_limits',enable_drop_lists='$enable_drop_lists',allow_ip_lists='$allow_ip_lists',system_ip_blacklist='$system_ip_blacklist',agent_push_events='$agent_push_events',agent_push_url='$agent_push_url',hide_inactive_lists='$hide_inactive_lists',allow_manage_active_lists='$allow_manage_active_lists',expired_lists_inactive='$expired_lists_inactive',did_system_filter='$did_system_filter',anyone_callback_inactive_lists='$anyone_callback_inactive_lists',enable_gdpr_download_deletion='$enable_gdpr_download_deletion',source_id_display='$source_id_display',agent_logout_link='$agent_logout_link',manual_dial_validation='$manual_dial_validation',mute_recordings='$mute_recordings',user_admin_redirect='$user_admin_redirect',list_status_modification_confirmation='$list_status_modification_confirmation',sip_event_logging='$sip_event_logging',call_quota_lead_ranking='$call_quota_lead_ranking',enable_second_script='$enable_second_script',enable_first_webform='$enable_first_webform',recording_buttons='$recording_buttons',opensips_cid_name='$opensips_cid_name',require_password_length='$require_password_length',user_account_emails='$user_account_emails',outbound_cid_any='$outbound_cid_any',entries_per_page='$entries_per_page',browser_call_alerts='$browser_call_alerts',queuemetrics_pausereason='$queuemetrics_pausereason',inbound_answer_config='$inbound_answer_config',enable_international_dncs='$enable_international_dncs',web_loader_phone_strip='$web_loader_phone_strip',manual_dial_phone_strip='$manual_dial_phone_strip',daily_call_count_limit='$daily_call_count_limit',allow_shared_dial='$allow_shared_dial',agent_search_method='$agent_search_method',phone_defaults_container='$phone_defaults_container',qc_claim_limit='$qc_claim_limit',qc_expire_days='$qc_expire_days',two_factor_auth_hours='$two_factor_auth_hours',two_factor_container='$two_factor_container',agent_hidden_sound='$agent_hidden_sound',agent_hidden_sound_volume='$agent_hidden_sound_volume',agent_hidden_sound_seconds='$agent_hidden_sound_seconds',agent_screen_timer='$agent_screen_timer',call_limit_24hour='$call_limit_24hour',allowed_sip_stacks='$allowed_sip_stacks',agent_hide_hangup='$agent_hide_hangup',allow_web_debug='$allow_web_debug',max_logged_in_agents='$max_logged_in_agents',user_codes_admin='$user_codes_admin',login_kickall='$login_kickall',abandon_check_queue='$abandon_check_queue',agent_notifications='$agent_notifications',demographic_quotas='$demographic_quotas',log_latency_gaps='$log_latency_gaps',inbound_credits='$inbound_credits',weekday_resets='$weekday_resets',two_factor_auth_agent_hours='$two_factor_auth_agent_hours',hopper_hold_inserts='$hopper_hold_inserts',coldstorage_server_ip='$coldstorage_server_ip',coldstorage_dbname='$coldstorage_dbname',coldstorage_login='$coldstorage_login',coldstorage_pass='$coldstorage_pass',coldstorage_port='$coldstorage_port'$custom_dialplanSQL;"; + $stmt="UPDATE system_settings set use_non_latin='$use_non_latin',webroot_writable='$webroot_writable',enable_queuemetrics_logging='$enable_queuemetrics_logging',queuemetrics_server_ip='$queuemetrics_server_ip',queuemetrics_dbname='$queuemetrics_dbname',queuemetrics_login='$queuemetrics_login',queuemetrics_pass='$queuemetrics_pass',queuemetrics_url='" . mysqli_real_escape_string($link, $queuemetrics_url) . "',queuemetrics_log_id='$queuemetrics_log_id',queuemetrics_eq_prepend='$queuemetrics_eq_prepend',vicidial_agent_disable='$vicidial_agent_disable',allow_sipsak_messages='$allow_sipsak_messages',admin_home_url='" . mysqli_real_escape_string($link, $admin_home_url) . "',enable_agc_xfer_log='$enable_agc_xfer_log',timeclock_end_of_day='$timeclock_end_of_day',vdc_header_date_format='$vdc_header_date_format',vdc_customer_date_format='$vdc_customer_date_format',vdc_header_phone_format='$vdc_header_phone_format',vdc_agent_api_active='$vdc_agent_api_active',enable_vtiger_integration='$enable_vtiger_integration',vtiger_server_ip='$vtiger_server_ip',vtiger_dbname='$vtiger_dbname',vtiger_login='$vtiger_login',vtiger_pass='$vtiger_pass',vtiger_url='" . mysqli_real_escape_string($link, $vtiger_url) . "',qc_features_active='$qc_features_active',outbound_autodial_active='$outbound_autodial_active',outbound_calls_per_second='$outbound_calls_per_second',enable_tts_integration='$enable_tts_integration',agentonly_callback_campaign_lock='$agentonly_callback_campaign_lock',sounds_central_control_active='$sounds_central_control_active',sounds_web_server='$sounds_web_server',sounds_web_directory='$sounds_web_directory',active_voicemail_server='$active_voicemail_server',auto_dial_limit='$auto_dial_limit',user_territories_active='$user_territories_active',allow_custom_dialplan='$allow_custom_dialplan',enable_second_webform='$enable_second_webform',default_webphone='$default_webphone',default_external_server_ip='$default_external_server_ip',webphone_url='" . mysqli_real_escape_string($link, $webphone_url) . "',enable_agc_dispo_log='$enable_agc_dispo_log',queuemetrics_loginout='$queuemetrics_loginout',callcard_enabled='$callcard_enabled',queuemetrics_callstatus='$queuemetrics_callstatus',default_codecs='$default_codecs',admin_web_directory='$admin_web_directory',label_title='$label_title',label_first_name='$label_first_name',label_middle_initial='$label_middle_initial',label_last_name='$label_last_name',label_address1='$label_address1',label_address2='$label_address2',label_address3='$label_address3',label_city='$label_city',label_state='$label_state',label_province='$label_province',label_postal_code='$label_postal_code',label_vendor_lead_code='$label_vendor_lead_code',label_gender='$label_gender',label_phone_number='$label_phone_number',label_phone_code='$label_phone_code',label_alt_phone='$label_alt_phone',label_security_phrase='$label_security_phrase',label_email='$label_email',label_comments='$label_comments',label_lead_id='$label_lead_id',label_list_id='$label_list_id',label_entry_date='$label_entry_date',label_gmt_offset_now='$label_gmt_offset_now',label_source_id='$label_source_id',label_called_since_last_reset='$label_called_since_last_reset',label_status='$label_status',label_user='$label_user',label_date_of_birth='$label_date_of_birth',label_country_code='$label_country_code',label_last_local_call_time='$label_last_local_call_time',label_called_count='$label_called_count',label_rank='$label_rank',label_owner='$label_owner',label_entry_list_id='$label_entry_list_id',custom_fields_enabled='$custom_fields_enabled',slave_db_server='$slave_db_server',reports_use_slave_db='$reports_use_slave_db'$custom_reports_slave_SQL,webphone_systemkey='$webphone_systemkey',first_login_trigger='$first_login_trigger',default_phone_registration_password='$default_phone_registration_password',default_phone_login_password='$default_phone_login_password',default_server_password='$default_server_password',admin_modify_refresh='$admin_modify_refresh',nocache_admin='$nocache_admin',generate_cross_server_exten='$generate_cross_server_exten',queuemetrics_addmember_enabled='$queuemetrics_addmember_enabled',queuemetrics_dispo_pause='$queuemetrics_dispo_pause',label_hide_field_logs='$label_hide_field_logs',queuemetrics_pe_phone_append='$queuemetrics_pe_phone_append',test_campaign_calls='$test_campaign_calls',agents_calls_reset='$agents_calls_reset',default_voicemail_timezone='$default_voicemail_timezone',default_local_gmt='$default_local_gmt',noanswer_log='$noanswer_log',alt_log_server_ip='$alt_log_server_ip',alt_log_dbname='$alt_log_dbname',alt_log_login='$alt_log_login',alt_log_pass='$alt_log_pass',tables_use_alt_log_db='$tables_use_alt_log_db',did_agent_log='$did_agent_log',campaign_cid_areacodes_enabled='$campaign_cid_areacodes_enabled',pllb_grouping_limit='$pllb_grouping_limit',did_ra_extensions_enabled='$did_ra_extensions_enabled',expanded_list_stats='$expanded_list_stats',contacts_enabled='$contacts_enabled',call_menu_qualify_enabled='$call_menu_qualify_enabled',admin_list_counts='$admin_list_counts',allow_voicemail_greeting='$allow_voicemail_greeting',queuemetrics_socket='$queuemetrics_socket',queuemetrics_socket_url='$queuemetrics_socket_url',enhanced_disconnect_logging='$enhanced_disconnect_logging',allow_emails='$allow_emails',level_8_disable_add='$level_8_disable_add',queuemetrics_record_hold='$queuemetrics_record_hold',country_code_list_stats='$country_code_list_stats',queuemetrics_pause_type='$queuemetrics_pause_type',frozen_server_call_clear='$frozen_server_call_clear',callback_time_24hour='$callback_time_24hour',enable_languages='$enable_languages',language_method='$language_method',meetme_enter_login_filename='$meetme_enter_login_filename',meetme_enter_leave3way_filename='$meetme_enter_leave3way_filename',enable_did_entry_list_id='$enable_did_entry_list_id',enable_third_webform='$enable_third_webform',allow_chats='$allow_chats',chat_url='" . mysqli_real_escape_string($link, $chat_url) . "',chat_timeout='$chat_timeout',agent_debug_logging='$agent_debug_logging',default_language='$default_language',agent_whisper_enabled='$agent_whisper_enabled',user_hide_realtime_enabled='$user_hide_realtime_enabled',usacan_phone_dialcode_fix='$usacan_phone_dialcode_fix',cache_carrier_stats_realtime='$cache_carrier_stats_realtime',log_recording_access='$log_recording_access',report_default_format='$report_default_format',alt_ivr_logging='$alt_ivr_logging',default_phone_code='$default_phone_code',admin_row_click='$admin_row_click',admin_screen_colors='$admin_screen_colors',ofcom_uk_drop_calc='$ofcom_uk_drop_calc',agent_screen_colors='$agent_screen_colors',script_remove_js='$script_remove_js',manual_auto_next='$manual_auto_next',user_new_lead_limit='$user_new_lead_limit',agent_xfer_park_3way='$agent_xfer_park_3way',agent_soundboards='$agent_soundboards',web_loader_phone_length='$web_loader_phone_length',agent_script='$agent_script',agent_chat_screen_colors='$agent_chat_screen_colors',enable_auto_reports='$enable_auto_reports',enable_pause_code_limits='$enable_pause_code_limits',enable_drop_lists='$enable_drop_lists',allow_ip_lists='$allow_ip_lists',system_ip_blacklist='$system_ip_blacklist',agent_push_events='$agent_push_events',agent_push_url='$agent_push_url',hide_inactive_lists='$hide_inactive_lists',allow_manage_active_lists='$allow_manage_active_lists',expired_lists_inactive='$expired_lists_inactive',did_system_filter='$did_system_filter',anyone_callback_inactive_lists='$anyone_callback_inactive_lists',enable_gdpr_download_deletion='$enable_gdpr_download_deletion',source_id_display='$source_id_display',agent_logout_link='$agent_logout_link',manual_dial_validation='$manual_dial_validation',mute_recordings='$mute_recordings',user_admin_redirect='$user_admin_redirect',list_status_modification_confirmation='$list_status_modification_confirmation',sip_event_logging='$sip_event_logging',call_quota_lead_ranking='$call_quota_lead_ranking',enable_second_script='$enable_second_script',enable_first_webform='$enable_first_webform',recording_buttons='$recording_buttons',opensips_cid_name='$opensips_cid_name',require_password_length='$require_password_length',user_account_emails='$user_account_emails',outbound_cid_any='$outbound_cid_any',entries_per_page='$entries_per_page',browser_call_alerts='$browser_call_alerts',queuemetrics_pausereason='$queuemetrics_pausereason',inbound_answer_config='$inbound_answer_config',enable_international_dncs='$enable_international_dncs',web_loader_phone_strip='$web_loader_phone_strip',manual_dial_phone_strip='$manual_dial_phone_strip',daily_call_count_limit='$daily_call_count_limit',allow_shared_dial='$allow_shared_dial',agent_search_method='$agent_search_method',phone_defaults_container='$phone_defaults_container',qc_claim_limit='$qc_claim_limit',qc_expire_days='$qc_expire_days',two_factor_auth_hours='$two_factor_auth_hours',two_factor_container='$two_factor_container',agent_hidden_sound='$agent_hidden_sound',agent_hidden_sound_volume='$agent_hidden_sound_volume',agent_hidden_sound_seconds='$agent_hidden_sound_seconds',agent_screen_timer='$agent_screen_timer',call_limit_24hour='$call_limit_24hour',allowed_sip_stacks='$allowed_sip_stacks',agent_hide_hangup='$agent_hide_hangup',allow_web_debug='$allow_web_debug',max_logged_in_agents='$max_logged_in_agents',user_codes_admin='$user_codes_admin',login_kickall='$login_kickall',abandon_check_queue='$abandon_check_queue',agent_notifications='$agent_notifications',demographic_quotas='$demographic_quotas',log_latency_gaps='$log_latency_gaps',inbound_credits='$inbound_credits',weekday_resets='$weekday_resets',two_factor_auth_agent_hours='$two_factor_auth_agent_hours',hopper_hold_inserts='$hopper_hold_inserts',coldstorage_server_ip='$coldstorage_server_ip',coldstorage_dbname='$coldstorage_dbname',coldstorage_login='$coldstorage_login',coldstorage_pass='$coldstorage_pass',coldstorage_port='$coldstorage_port',enhanced_agent_monitoring='$enhanced_agent_monitoring'$custom_dialplanSQL;"; $rslt=mysql_to_mysqli($stmt, $link); $update_main_rows=mysqli_affected_rows($link); if ($DB) {echo "$update_main_rows|$stmt|\n";} @@ -44108,7 +44113,7 @@ if ($ADD==311111111111111) $ALLagent_count = $rowx[2]; } - $stmt="SELECT version,install_date,use_non_latin,webroot_writable,enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_url,queuemetrics_log_id,queuemetrics_eq_prepend,vicidial_agent_disable,allow_sipsak_messages,admin_home_url,enable_agc_xfer_log,db_schema_version,auto_user_add_value,timeclock_end_of_day,timeclock_last_reset_date,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,vdc_agent_api_active,qc_last_pull_time,enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url,qc_features_active,outbound_autodial_active,outbound_calls_per_second,enable_tts_integration,agentonly_callback_campaign_lock,sounds_central_control_active,sounds_web_server,sounds_web_directory,active_voicemail_server,auto_dial_limit,user_territories_active,allow_custom_dialplan,db_schema_update_date,enable_second_webform,default_webphone,default_external_server_ip,webphone_url,enable_agc_dispo_log,custom_dialplan_entry,queuemetrics_loginout,callcard_enabled,queuemetrics_callstatus,default_codecs,admin_web_directory,label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments,custom_fields_enabled,slave_db_server,reports_use_slave_db,webphone_systemkey,first_login_trigger,default_phone_registration_password,default_phone_login_password,default_server_password,admin_modify_refresh,nocache_admin,generate_cross_server_exten,queuemetrics_addmember_enabled,queuemetrics_dispo_pause,label_hide_field_logs,queuemetrics_pe_phone_append,test_campaign_calls,agents_calls_reset,default_voicemail_timezone,default_local_gmt,noanswer_log,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,did_agent_log,campaign_cid_areacodes_enabled,pllb_grouping_limit,did_ra_extensions_enabled,expanded_list_stats,contacts_enabled,call_menu_qualify_enabled,admin_list_counts,allow_voicemail_greeting,svn_revision,queuemetrics_socket,queuemetrics_socket_url,enhanced_disconnect_logging,allow_emails,level_8_disable_add,pass_hash_enabled,pass_key,pass_cost,disable_auto_dial,queuemetrics_record_hold,country_code_list_stats,reload_timestamp,queuemetrics_pause_type,frozen_server_call_clear,callback_time_24hour,allow_chats,chat_url,chat_timeout,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_did_entry_list_id,enable_third_webform,agent_debug_logging,default_language,agent_whisper_enabled,user_hide_realtime_enabled,usacan_phone_dialcode_fix,cache_carrier_stats_realtime,oldest_logs_date,log_recording_access,report_default_format,alt_ivr_logging,default_phone_code,admin_row_click,admin_screen_colors,ofcom_uk_drop_calc,agent_screen_colors,script_remove_js,manual_auto_next,user_new_lead_limit,agent_xfer_park_3way,rec_prompt_count,agent_soundboards,web_loader_phone_length,agent_script,agent_chat_screen_colors,enable_auto_reports,enable_pause_code_limits,enable_drop_lists,allow_ip_lists,system_ip_blacklist,agent_push_events,agent_push_url,hide_inactive_lists,allow_manage_active_lists,expired_lists_inactive,did_system_filter,anyone_callback_inactive_lists,enable_gdpr_download_deletion,source_id_display,agent_logout_link,manual_dial_validation,mute_recordings,user_admin_redirect,list_status_modification_confirmation,sip_event_logging,call_quota_lead_ranking,enable_second_script,enable_first_webform,recording_buttons,opensips_cid_name,require_password_length,user_account_emails,outbound_cid_any,entries_per_page,browser_call_alerts,queuemetrics_pausereason,inbound_answer_config,enable_international_dncs,web_loader_phone_strip,manual_dial_phone_strip,daily_call_count_limit,allow_shared_dial,agent_search_method,phone_defaults_container,qc_claim_limit,qc_expire_days,two_factor_auth_hours,two_factor_container,agent_hidden_sound,agent_hidden_sound_volume,agent_hidden_sound_seconds,agent_screen_timer,label_lead_id,label_list_id,label_entry_date,label_gmt_offset_now,label_source_id,label_called_since_last_reset,label_status,label_user,label_date_of_birth,label_country_code,label_last_local_call_time,label_called_count,label_rank,label_owner,label_entry_list_id,call_limit_24hour,allowed_sip_stacks,agent_hide_hangup,allow_web_debug,max_logged_in_agents,user_codes_admin,login_kickall,abandon_check_queue,agent_notifications,demographic_quotas,log_latency_gaps,inbound_credits,weekday_resets,two_factor_auth_agent_hours,highest_lead_id,hopper_hold_inserts,coldstorage_server_ip,coldstorage_dbname,coldstorage_login,coldstorage_pass,coldstorage_port from system_settings;"; + $stmt="SELECT version,install_date,use_non_latin,webroot_writable,enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_url,queuemetrics_log_id,queuemetrics_eq_prepend,vicidial_agent_disable,allow_sipsak_messages,admin_home_url,enable_agc_xfer_log,db_schema_version,auto_user_add_value,timeclock_end_of_day,timeclock_last_reset_date,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,vdc_agent_api_active,qc_last_pull_time,enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url,qc_features_active,outbound_autodial_active,outbound_calls_per_second,enable_tts_integration,agentonly_callback_campaign_lock,sounds_central_control_active,sounds_web_server,sounds_web_directory,active_voicemail_server,auto_dial_limit,user_territories_active,allow_custom_dialplan,db_schema_update_date,enable_second_webform,default_webphone,default_external_server_ip,webphone_url,enable_agc_dispo_log,custom_dialplan_entry,queuemetrics_loginout,callcard_enabled,queuemetrics_callstatus,default_codecs,admin_web_directory,label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments,custom_fields_enabled,slave_db_server,reports_use_slave_db,webphone_systemkey,first_login_trigger,default_phone_registration_password,default_phone_login_password,default_server_password,admin_modify_refresh,nocache_admin,generate_cross_server_exten,queuemetrics_addmember_enabled,queuemetrics_dispo_pause,label_hide_field_logs,queuemetrics_pe_phone_append,test_campaign_calls,agents_calls_reset,default_voicemail_timezone,default_local_gmt,noanswer_log,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,did_agent_log,campaign_cid_areacodes_enabled,pllb_grouping_limit,did_ra_extensions_enabled,expanded_list_stats,contacts_enabled,call_menu_qualify_enabled,admin_list_counts,allow_voicemail_greeting,svn_revision,queuemetrics_socket,queuemetrics_socket_url,enhanced_disconnect_logging,allow_emails,level_8_disable_add,pass_hash_enabled,pass_key,pass_cost,disable_auto_dial,queuemetrics_record_hold,country_code_list_stats,reload_timestamp,queuemetrics_pause_type,frozen_server_call_clear,callback_time_24hour,allow_chats,chat_url,chat_timeout,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_did_entry_list_id,enable_third_webform,agent_debug_logging,default_language,agent_whisper_enabled,user_hide_realtime_enabled,usacan_phone_dialcode_fix,cache_carrier_stats_realtime,oldest_logs_date,log_recording_access,report_default_format,alt_ivr_logging,default_phone_code,admin_row_click,admin_screen_colors,ofcom_uk_drop_calc,agent_screen_colors,script_remove_js,manual_auto_next,user_new_lead_limit,agent_xfer_park_3way,rec_prompt_count,agent_soundboards,web_loader_phone_length,agent_script,agent_chat_screen_colors,enable_auto_reports,enable_pause_code_limits,enable_drop_lists,allow_ip_lists,system_ip_blacklist,agent_push_events,agent_push_url,hide_inactive_lists,allow_manage_active_lists,expired_lists_inactive,did_system_filter,anyone_callback_inactive_lists,enable_gdpr_download_deletion,source_id_display,agent_logout_link,manual_dial_validation,mute_recordings,user_admin_redirect,list_status_modification_confirmation,sip_event_logging,call_quota_lead_ranking,enable_second_script,enable_first_webform,recording_buttons,opensips_cid_name,require_password_length,user_account_emails,outbound_cid_any,entries_per_page,browser_call_alerts,queuemetrics_pausereason,inbound_answer_config,enable_international_dncs,web_loader_phone_strip,manual_dial_phone_strip,daily_call_count_limit,allow_shared_dial,agent_search_method,phone_defaults_container,qc_claim_limit,qc_expire_days,two_factor_auth_hours,two_factor_container,agent_hidden_sound,agent_hidden_sound_volume,agent_hidden_sound_seconds,agent_screen_timer,label_lead_id,label_list_id,label_entry_date,label_gmt_offset_now,label_source_id,label_called_since_last_reset,label_status,label_user,label_date_of_birth,label_country_code,label_last_local_call_time,label_called_count,label_rank,label_owner,label_entry_list_id,call_limit_24hour,allowed_sip_stacks,agent_hide_hangup,allow_web_debug,max_logged_in_agents,user_codes_admin,login_kickall,abandon_check_queue,agent_notifications,demographic_quotas,log_latency_gaps,inbound_credits,weekday_resets,two_factor_auth_agent_hours,highest_lead_id,hopper_hold_inserts,coldstorage_server_ip,coldstorage_dbname,coldstorage_login,coldstorage_pass,coldstorage_port,enhanced_agent_monitoring from system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $version = $row[0]; @@ -44351,6 +44356,7 @@ if ($ADD==311111111111111) $coldstorage_login = $row[237]; $coldstorage_pass = $row[238]; $coldstorage_port = $row[239]; + $enhanced_agent_monitoring = $row[240]; if ($pass_hash_enabled > 0) {$pass_hash_enabled = 'ENABLED';} else {$pass_hash_enabled = 'DISABLED';} @@ -44818,7 +44824,23 @@ if ($ADD==311111111111111) echo ""._QXZ("Enable Remote Agent Extension Overrides").": $NWB#settings-did_ra_extensions_enabled$NWE\n"; - echo ""._QXZ("Enable Agent Whisper Monitoring").": $NWB#settings-agent_whisper_enabled$NWE\n"; + # check if any servers are using CONFBRIDGE, if not, don't allow Enable Enhanced Agent Monitoring to be enabled + $CB_ct=0; + $stmt="SELECT count(*) from servers where active='Y' and conf_engine='CONFBRIDGE';"; + $rslt=mysql_to_mysqli($stmt, $link); + $cbs_to_print = mysqli_num_rows($rslt); + if ($cbs_to_print > 0) + { + $rowx=mysqli_fetch_row($rslt); + $CB_ct = $rowx[0]; + } + + echo ""._QXZ("Enable Enhanced Agent Monitoring").": $NWB#settings-enhanced_agent_monitoring$NWE\n"; + + echo ""._QXZ("Enable Agent Whisper Monitoring").": $NWB#settings-agent_whisper_enabled$NWE\n"; echo ""._QXZ("Enable User Hide RealTime").": $NWB#settings-user_hide_realtime_enabled$NWE\n"; @@ -51053,7 +51075,7 @@ if ($ADD==999995) echo "
"._QXZ("Welcome to ViciDial: copyright, trademark and license page")."

\n"; echo "
\n"; - echo "\n"; + echo "\n"; echo "\n"; @@ -52385,7 +52407,7 @@ echo "

"; echo _QXZ("BUILD").": $build\n"; if (!preg_match("/_BUILD_/",$SShosted_settings)) - {echo "
© 2024 ViciDial Group
";} + {echo "
© 2025 ViciDial Group
";} echo "
\n"; ?> diff --git a/agc_2-X/trunk/www/vicidial/help_documentation.txt b/agc_2-X/trunk/www/vicidial/help_documentation.txt index b3ebe514..3cee4380 100644 --- a/agc_2-X/trunk/www/vicidial/help_documentation.txt +++ b/agc_2-X/trunk/www/vicidial/help_documentation.txt @@ -1,4 +1,4 @@ -# version: 20241208171601 +# version: 20250103083301 users-user User ID This field is where you put the users ID number, can be up to 20 digits in length, Must be at least 2 characters in length. We strongly recommend not reusing user accounts for different users, for reporting accuracy. To disable a user account, set the Active option to -N-. users-pass Password This field is where you put the users password. Must be at least 2 characters in length, unless the User Password Minimum Length system setting is enabled, which will require a longer password. Only letters and numbers are allowed in user passwords. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters. users-force_change_password Force Change Password If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage or the agent screen. Default is N. @@ -1207,6 +1207,7 @@ settings-campaign_cid_areacodes_enabled Enable CID Groups and Campaign Areacode settings-outbound_cid_any Outbound Call Any CID This option allows you to use any Outbound CallerID that is set in the Agent API external_dial function to override whatever the settings for the campaign say the CID should be for that call. Default is DISABLED. settings-opensips_cid_name OpenSIPs CID Name Support If your system is using an OpenSIPs server to route outbound phone calls, and your system administrator has set up that server to be able to send CallerID Name through it, you can enable this setting to allow you to define an OpenSIPs CallerID Name in the Campaign Detail screen. Default is 0 for disabled. settings-did_ra_extensions_enabled Enable Remote Agent Extension Overrides This setting enables DIDs to have extension overrides for remote agent routed calls through in-groups. Default is 0 for disabled. +settings-enhanced_agent_monitoring Enable Enhanced Agent Monitoring For systems using servers with CONFBRIDGE agent sessions only. If enabled, this will allow agent monitoring sessions initiated through the Real-Time Report to allow the manager to switch from monitoring to barging to whispering by pressing a single DTMF key -4,5,6- on their monitoring phone. Default is 0 for disabled. settings-agent_whisper_enabled Enable Agent Whisper Monitoring This setting allows a manager to be able to speak to a logged in agent without the customer being able to hear them. WARNING, this feature is considered experimental and may not function properly in some cases. Older versions of Asterisk have shown to have serious issues at times with this feature and can cause Asterisk to freeze or crash. Default is 0 for disabled. settings-user_hide_realtime_enabled Enable User Hide RealTime This setting allows a User Modify setting to be changed to allow a user to be hidden from all managers in the Real-Time Report. Default is 0 for disabled. settings-manual_auto_next Enable Manual Dial Auto Next This setting allows the campaign setting to be enabled forcing a manual dial after X seconds in a manual or inbound manual dial mode. Default is 0 for disabled. diff --git a/agc_2-X/trunk/www/vicidial/non_agent_api.php b/agc_2-X/trunk/www/vicidial/non_agent_api.php index 66f87d2e..d299a231 100644 --- a/agc_2-X/trunk/www/vicidial/non_agent_api.php +++ b/agc_2-X/trunk/www/vicidial/non_agent_api.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2025 Matt Florell LICENSE: AGPLv2 # # This script is designed as an API(Application Programming Interface) to allow # other programs to interact with all non-agent-screen VICIDIAL functions @@ -220,10 +220,11 @@ # 241113-1600 - Added in_groups as input option for update_user function # 241121-1501 - Fix for issue in user_group_status function # 241127-2148 - Fix for custom fields issue #1533 +# 250105-1001 - Added enhanced_agent_monitoring option compatibility # -$version = '2.14-197'; -$build = '241127-2148'; +$version = '2.14-198'; +$build = '250105-1001'; $php_script='non_agent_api.php'; $api_url_log = 0; $camp_lead_order_random=1; @@ -766,7 +767,7 @@ header ("Pragma: no-cache"); // HTTP/1.0 ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### -$stmt = "SELECT use_non_latin,custom_fields_enabled,pass_hash_enabled,agent_whisper_enabled,active_modules,auto_dial_limit,enable_languages,language_method,admin_web_directory,sounds_web_server,allow_web_debug FROM system_settings;"; +$stmt = "SELECT use_non_latin,custom_fields_enabled,pass_hash_enabled,agent_whisper_enabled,active_modules,auto_dial_limit,enable_languages,language_method,admin_web_directory,sounds_web_server,allow_web_debug,enhanced_agent_monitoring FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); $qm_conf_ct = mysqli_num_rows($rslt); if ($qm_conf_ct > 0) @@ -785,6 +786,7 @@ if ($qm_conf_ct > 0) $SSadmin_web_directory = $row[8]; $SSsounds_web_server = $row[9]; $SSallow_web_debug = $row[10]; + $SSenhanced_agent_monitoring = $row[11]; } if ($SSallow_web_debug < 1) {$DB=0;} ##### END SETTINGS LOOKUP ##### @@ -3424,17 +3426,28 @@ if ($function == 'blind_monitor') $monitor_dialstring = "$D_s_ip[0]$S$D_s_ip[1]$S$D_s_ip[2]$S$D_s_ip[3]$S"; $monitor_type='LISTEN'; $cid_prefix='BM'; $swap_chan=0; - if ( (preg_match('/MONITOR/',$stage)) or (strlen($stage)<1) ) {$stage = $monitor_prefix;} + if ( (preg_match('/MONITOR/',$stage)) or (strlen($stage)<1) ) + { + $stage = $monitor_prefix; + if ($SSenhanced_agent_monitoring > 0) + {$stage = '47378219';} + } if (preg_match('/BARGE/',$stage)) { if (preg_match('/SWAP/',$stage)) {$swap_chan=1;} $stage = $barge_prefix; $monitor_type='BARGE'; $cid_prefix='BB'; + if ($SSenhanced_agent_monitoring > 0) + {$stage = '47378220';} } if (preg_match('/HIJACK/',$stage)) {$stage = ''; $monitor_type='HIJACK'; $cid_prefix='BB';} if (preg_match('/WHISPER/',$stage)) { if ($agent_whisper_enabled == '1') - {$stage = '47378218'; $monitor_type='WHISPER'; $cid_prefix='BW';} + { + $stage = '47378218'; $monitor_type='WHISPER'; $cid_prefix='BW'; + if ($SSenhanced_agent_monitoring > 0) + {$stage = '47378221';} + } else { # WHISPER not enabled @@ -3458,11 +3471,13 @@ if ($function == 'blind_monitor') $AGENTstatus = $row[3]; } + $variable = "Variable: __monitorsession=$session_id"; + ### insert a new lead in the system with this phone number - $stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$monitor_server_ip','','Originate','$BMquery','Channel: Local/$monitor_dialstring$stage$session_id@default','Context: default','Exten: $dialplan_number','Priority: 1','Callerid: \"$BMquery\" <$outbound_cid>','','','','','');"; + $stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$monitor_server_ip','','Originate','$BMquery','Channel: Local/$monitor_dialstring$stage$session_id@default','Context: default','Exten: $dialplan_number','Priority: 1','Callerid: \"$BMquery\" <$outbound_cid>','$variable','','','','');"; if ($swap_chan > 0) { - $stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$monitor_server_ip','','Originate','$BMquery','Channel: Local/$dialplan_number@default','Context: default','Exten: $monitor_dialstring$stage$session_id','Priority: 1','Callerid: \"$BMquery\" <$outbound_cid>','','','','','');"; + $stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$monitor_server_ip','','Originate','$BMquery','Channel: Local/$dialplan_number@default','Context: default','Exten: $monitor_dialstring$stage$session_id','Priority: 1','Callerid: \"$BMquery\" <$outbound_cid>','$variable','','','','');"; } if ($DB>0) {echo "DEBUG: blind_monitor query - $stmt\n";} $rslt=mysql_to_mysqli($stmt, $link);
"._QXZ("Copyright").":   "._QXZ("The ViciDial Contact Center Suite is maintained by the")." ViciDial Group, © 2024
"._QXZ("Copyright").":   "._QXZ("The ViciDial Contact Center Suite is maintained by the")." ViciDial Group, © 2025
"._QXZ("Trademark").":   \"VICIDIAL\" "._QXZ("is a registered trademark of the")." ViciDial Group. Here is our "._QXZ("trademark use policy")."