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
This commit is contained in:
mattf
2009-06-18 15:26:26 +00:00
parent 64831634a4
commit b9abf6c66b
+8 -6
View File
@@ -1245,12 +1245,6 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
$call_menu_ext .= "\n"; $call_menu_ext .= "\n";
$call_menu_ext .= "$call_menu_options_ext"; $call_menu_ext .= "$call_menu_options_ext";
$call_menu_ext .= "\n"; $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) 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 .= "; hangup\n";
$call_menu_ext .= 'exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})'; $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"; $call_menu_ext .= "\n\n";
$i++; $i++;