From e55d0e7979c5bbe3c673f113eb63aab882bf671c Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 13 Jan 2014 00:40:22 +0000 Subject: [PATCH] Fixed play order issue with MoH in Astrisk 1.8 git-svn-id: svn://192.168.202.10@2054 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl index f29c3619..561cb6bc 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) 2013 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # CHANGES # 61011-1348 - First build @@ -89,9 +89,10 @@ # 130716-1441 - Clear out vicidial_monitor_calls records older than 1 day old # 130921-1044 - Small change to triggers allowing for them to be launched in a screen session if SCREEN is in the name # 131022-1746 - Added uptime gathering and asterisk auto-restart feature +# 140112-1910 - Fixed issue with MoH in Astrisk 1.8 # -$build = '131022-1746'; +$build = '140112-1910'; $DB=0; # Debug flag $MT[0]=''; $MT[1]=''; @@ -2861,6 +2862,8 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r $moh .= "directory=/var/lib/asterisk/$moh_id[$j]\n"; if ($random[$j] =~ /Y/) {$moh .= "random=yes\n";} + else + {$moh .= "sort=alpha\n";} $moh .= "\n"; $j++;