===== extensions.conf ===== [general] static=yes writeprotect=no clearglobalvars=yes [globals] CONSOLE => Console/dsp [external] #exec /etc/asterisk/myapp/getdata.sh getqueuedialplan?dialplantype=external [internal] #exec /etc/asterisk/myapp/getdata.sh getqueuedialplan?dialplantype=external ===== end of extensions.conf ===== output of /etc/asterisk/myapp/getdata.sh getqueuedialplan?dialplantype=external exten => 456,1,Hangup() =================================== output of /etc/asterisk/myapp/getdata.sh getqueuedialplan?dialplantype=internal exten => 123,1,Hangup() =================================== output of dialplan reload dialplan reload == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/var/tmp/exec.1209752330.-1208673472': == Found *CLI> [May 2 19:18:51] WARNING[4777]: config.c:258 ast_include_new: '/etc/asterisk/extensions.conf', line 15: Same File included more than once! This data will be saved in /var/tmp/exec.1209752330.-1208673472~~1 if saved back to disk. == Parsing '/var/tmp/exec.1209752330.-1208673472': == Found == Setting global variable 'CONSOLE' to 'Console/dsp' -- Registered extension context 'external' -- Added extension '456' priority 1 to external -- Registered extension context 'internal' -- Added extension '123' priority 1 to internal *CLI> dialplan add reload remove save set show *CLI> dialplan show [ Context 'internal' created by 'pbx_config' ] '123' => 1. Hangup() [pbx_config] [ Context 'external' created by 'pbx_config' ] '456' => 1. Hangup() [pbx_config] [ Context 'app_queue_gosub_virtual_context' created by 'app_queue' ] 's' => 1. KeepAlive() [app_queue] [ Context 'app_dial_gosub_virtual_context' created by 'app_dial' ] 's' => 1. KeepAlive() [app_dial] -= 4 extensions (4 priorities) in 4 contexts. =-