Separated vicidial-auto dialplan entries into different contexts
Added phone_context as option in bulk phone insert script git-svn-id: svn://192.168.202.10@1783 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -69,6 +69,7 @@
|
||||
# 111004-2333 - Added Call Menu option for update of fields
|
||||
# 111221-1454 - Added resetting of max stats records at timeclock end of day
|
||||
# 120124-1032 - Added Answer to all call menus at the top
|
||||
# 120209-1525 - Separated all vicidial-auto dialplan contexts into their own contexts to allow for more control of dialing access through phones
|
||||
#
|
||||
|
||||
$DB=0; # Debug flag
|
||||
@@ -2514,16 +2515,48 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
|
||||
print ext "; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST\n";
|
||||
print ext "$ext\n";
|
||||
print ext "$call_menu_ext\n";
|
||||
print ext "\n";
|
||||
if (length($SScustom_dialplan_entry)>5)
|
||||
{
|
||||
print ext "[vicidial-auto-system-setting-custom]\n";
|
||||
print ext 'exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})';
|
||||
print ext "\n";
|
||||
print ext "; System Setting Custom Dialplan\n$SScustom_dialplan_entry\n\n";
|
||||
}
|
||||
if (length($SERVERcustom_dialplan_entry)>5)
|
||||
{
|
||||
print ext "[vicidial-auto-server-custom]\n";
|
||||
print ext 'exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})';
|
||||
print ext "\n";
|
||||
print ext "; Server Custom Dialplan\n$SERVERcustom_dialplan_entry\n\n";
|
||||
}
|
||||
print ext "[vicidial-auto-external]\n";
|
||||
print ext 'exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})';
|
||||
print ext "\n";
|
||||
print ext "$Lext\n";
|
||||
|
||||
print ext "[vicidial-auto-internal]\n";
|
||||
print ext 'exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})';
|
||||
print ext "\n";
|
||||
print ext "$Vext\n";
|
||||
|
||||
print ext "[vicidial-auto-phones]\n";
|
||||
print ext 'exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})';
|
||||
print ext "\n";
|
||||
print ext "$Pext\n";
|
||||
|
||||
print ext "[vicidial-auto]\n";
|
||||
print ext 'exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})';
|
||||
print ext "\n";
|
||||
print ext "\n";
|
||||
if (length($SScustom_dialplan_entry)>5)
|
||||
{print ext "; System Setting Custom Dialplan\n$SScustom_dialplan_entry\n\n";}
|
||||
{print ext "include => vicidial-auto-system-setting-custom\n";}
|
||||
if (length($SERVERcustom_dialplan_entry)>5)
|
||||
{print ext "; Server Custom Dialplan\n$SERVERcustom_dialplan_entry\n\n";}
|
||||
print ext "$Lext\n";
|
||||
print ext "$Vext\n";
|
||||
print ext "$Pext\n";
|
||||
{print ext "include => vicidial-auto-server-custom\n";}
|
||||
print ext "include => vicidial-auto-external\n";
|
||||
print ext "include => vicidial-auto-internal\n";
|
||||
print ext "include => vicidial-auto-phones\n";
|
||||
print ext "\n";
|
||||
print ext "\n; END OF FILE\n";
|
||||
|
||||
print iax "; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST\n";
|
||||
|
||||
Reference in New Issue
Block a user