From b9abf6c66babab14e64cdc0ea6d393f62eef2cde Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 18 Jun 2009 15:26:26 +0000 Subject: [PATCH] moved custom dialplan entries in call menus to the bottom of the context git-svn-id: svn://192.168.202.10@1159 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl index ce1f91a2..3d58cd90 100644 --- a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl +++ b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl @@ -1245,12 +1245,6 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r $call_menu_ext .= "\n"; $call_menu_ext .= "$call_menu_options_ext"; $call_menu_ext .= "\n"; - if (length($custom_dialplan_entry[$i]) > 4) - { - $call_menu_ext .= "; custom dialplan entries\n"; - $call_menu_ext .= "$custom_dialplan_entry[$i]\n"; - $call_menu_ext .= "\n"; - } if (length($call_menu_timeout_ext) < 1) { @@ -1287,6 +1281,14 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r $call_menu_ext .= "; hangup\n"; $call_menu_ext .= 'exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})'; + + if (length($custom_dialplan_entry[$i]) > 4) + { + $call_menu_ext .= "\n\n"; + $call_menu_ext .= "; custom dialplan entries\n"; + $call_menu_ext .= "$custom_dialplan_entry[$i]\n"; + } + $call_menu_ext .= "\n\n"; $i++;