Bug fix for on-hook agents using Asterisk 1.8 & 11 in ALL inbound AGI

git-svn-id: svn://192.168.202.10@2839 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2017-10-11 17:15:22 +00:00
parent ab2e6961cf
commit 8939c5c268
+2 -1
View File
@@ -217,6 +217,7 @@
# 170914-1634 - Added Asterisk 13 compatibility
# 170921-2008 - Fix for CALLID in beginning of recording filename
# 170930-0913 - Added extension append options
# 171011-1312 - Bug fix for on-hook agents using Asterisk 1.8 & 11
#
$script = 'agi-VDAD_ALL_inbound.agi';
@@ -3229,7 +3230,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override
$dbhP=$dbhA; $mysql_count='02167'; $MEL_aff_rows=$RAFaffected_rows; &mysql_error_logging;
%ast_ver_str = parse_asterisk_version($asterisk_version);
if (( $ast_ver_str{major} = 1 ) && ($ast_ver_str{minor} < 6))
if (( $ast_ver_str{major} = 1 ) && ($ast_ver_str{minor} < 12))
{ $RINGALLexten = "8331*$auto_call_id*$callerid*$ARuser[$ragp]*$ARdialplan_number[$ragp]"; }
else
{ $RINGALLexten = "$routing_prefix" . "8331*$auto_call_id*$callerid*$ARuser[$ragp]*$ARdialplan_number[$ragp]"; }