Reload dialplan

Hi… first of all… I introduce my self… My name is Dago, and I’m new to Asterisk. Right now I’m working on a test platform in order to learn and test Asterisk.

Well… this is my situation. I successful installed Asterisk 1.4.26.2 (compiled from sourcecode) in a virtual machine running Ubuntu Server 8.04 (fully updated).
As I’m learning Asterisk, I installed samples files too, so when I enter the CLI console, and I type “dialplan show” command, It shows me the dialplan according to the sample extensions.conf.
As a base of learning I’m using the book “Asterisk: The Future of Telephony”, and as it said in there, I rename extensions.conf to extensions.conf.sample (for future reference) and I start form a blank extensions.conf file and then introduce this lines

[globals] [general] [default] exten => s,1,Verbose(1|Unrouted call handler) exten => s,n,Answer() exten => s,n,Wait(1) exten => s,n,Playback(tt-weasels) exten => s,n,Hangup() [incoming_calls] [internal] exten => 500,1,Verbose(1|Echo test application) exten => 500,n,Echo() exten => 500,n,Hangup() [phones] include => internal

the run “dialplan reload” from CLI console… output looks correct

asterisk*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': Found -- Registered extension context 'default' -- Added extension 's' priority 1 to default -- Added extension 's' priority 2 to default -- Added extension 's' priority 3 to default -- Added extension 's' priority 4 to default -- Added extension 's' priority 5 to default -- Registered extension context 'incoming_calls' -- Registered extension context 'internal' -- Added extension '500' priority 1 to internal -- Added extension '500' priority 2 to internal -- Added extension '500' priority 3 to internal -- Registered extension context 'phones' -- Including context 'internal' in context 'phones' == Parsing '/etc/asterisk/users.conf': Found

but, when I type “dialplan show” command, it shows that the current dialplan is still the old one (the sample one)

[code]asterisk*CLI> dialplan show
[ Context ‘phones’ created by ‘pbx_config’ ]
Include => ‘internal’ [pbx_config]

[ Context ‘internal’ created by ‘pbx_config’ ]
‘500’ => 1. Verbose(1|Echo test application) [pbx_config]
2. Echo() [pbx_config]
3. Hangup() [pbx_config]

[ Context ‘incoming_calls’ created by ‘pbx_config’ ]

[ Context ‘default’ created by ‘pbx_config’ ]
‘s’ => 1. Verbose(1|Unrouted call handler) [pbx_config]
2. Answer() [pbx_config]
3. Wait(1) [pbx_config]
4. Playback(tt-weasels) [pbx_config]
5. Hangup() [pbx_config]

[ Context ‘ael-default’ created by ‘pbx_ael’ ]
Include => ‘ael-demo’ [pbx_ael]

[ Context ‘ael-demo’ created by ‘pbx_ael’ ]
’#’ => 1. Playback(demo-thanks) [pbx_ael]
2. Hangup() [pbx_ael]
‘1000’ => 1. Goto(ael-default|s|1) [pbx_ael]
‘2’ => 1. Background(demo-moreinfo) [pbx_ael]
2. Goto(s|instructions) [pbx_ael]
‘3’ => 1. Set(LANGUAGE()=fr) [pbx_ael]
2. Goto(s|restart) [pbx_ael]
‘500’ => 1. Playback(demo-abouttotry) [pbx_ael]
2. Dial(IAX2/guest@misery.digium.com/s@default) [pbx_ael]
3. Playback(demo-nogo) [pbx_ael]
4. Goto(s|instructions) [pbx_ael]
‘600’ => 1. Playback(demo-echotest) [pbx_ael]
2. Echo() [pbx_ael]
3. Playback(demo-echodone) [pbx_ael]
4. Goto(s|instructions) [pbx_ael]
‘8500’ => 1. VoicemailMain() [pbx_ael]
2. Goto(s|instructions) [pbx_ael]
‘i’ => 1. Playback(invalid) [pbx_ael]
‘s’ => 1. Wait(1) [pbx_ael]
2. Answer() [pbx_ael]
3. Set(TIMEOUT(digit)=5) [pbx_ael]
4. Set(TIMEOUT(response)=10) [pbx_ael]
[restart] 5. Background(demo-congrats) [pbx_ael]
[instructions] 6. Set(x=$[0]) [pbx_ael]
7. GotoIf($[ ${x} < 3]?8:12) [pbx_ael]
8. Background(demo-instruct) [pbx_ael]
9. WaitExten() [pbx_ael]
10. Set(x=$[${x} + 1]) [pbx_ael]
11. Goto(7) [pbx_ael]
12. NoOp(Finish for-ael-demo-3) [pbx_ael]
‘t’ => 1. Goto(#|1) [pbx_ael]
’_1234’ => 1. Macro(ael-std-exten-ael|${EXTEN}| “IAX2”) [pbx_ael]

[ Context ‘macro-ael-std-exten-ael’ created by ‘pbx_ael’ ]
‘a’ => 1. VoiceMailMain(${ext}) [pbx_ael]
2. Goto(3) [pbx_ael]
3. NoOp(End of Extension a) [pbx_ael]
‘s’ => 1. Set(ext=${ARG1}) [pbx_ael]
2. Set(dev=${ARG2}) [pbx_ael]
3. Set(EXTEN=${EXTEN}) [pbx_ael]
4. Dial(${dev}/${ext}|20) [pbx_ael]
5. Goto(sw-1-${DIALSTATUS}|10) [pbx_ael]
6. NoOp(Finish switch-ael-std-exten-ael-1) [pbx_ael]
7. Goto(8) [pbx_ael]
8. NoOp(End of Macro ael-std-exten-ael-s) [pbx_ael]
‘sw-1-’ => 10. Goto(sw-1-.|10) [pbx_ael]
‘sw-1-BUSY’ => 10. Voicemail(${ext}|b) [pbx_ael]
11. Goto(s|6) [pbx_ael]
’_sw-1-.’ => 10. Voicemail(${ext}|u) [pbx_ael]
11. Goto(s|6) [pbx_ael]

[ Context ‘ael-local’ created by ‘pbx_ael’ ]
Include => ‘ael-default’ [pbx_ael]
Include => ‘ael-trunklocal’ [pbx_ael]
Include => ‘ael-iaxtel700’ [pbx_ael]
Include => ‘ael-trunktollfree’ [pbx_ael]
Include => ‘ael-iaxprovider’ [pbx_ael]
Ignore pattern => ‘9’ [pbx_ael]

[ Context ‘ael-longdistance’ created by ‘pbx_ael’ ]
Include => ‘ael-local’ [pbx_ael]
Include => ‘ael-trunkld’ [pbx_ael]
Ignore pattern => ‘9’ [pbx_ael]

[ Context ‘ael-international’ created by ‘pbx_ael’ ]
Include => ‘ael-longdistance’ [pbx_ael]
Include => ‘ael-trunkint’ [pbx_ael]
Ignore pattern => ‘9’ [pbx_ael]

[ Context ‘ael-trunktollfree’ created by ‘pbx_ael’ ]
’_91800NXXXXXX’ => 1. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) [pbx_ael]
’_91866NXXXXXX’ => 1. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) [pbx_ael]
’_91877NXXXXXX’ => 1. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) [pbx_ael]
’_91888NXXXXXX’ => 1. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) [pbx_ael]

[ Context ‘ael-trunklocal’ created by ‘pbx_ael’ ]
’_9NXXXXXX’ => 1. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) [pbx_ael]

[ Context ‘ael-trunkld’ created by ‘pbx_ael’ ]
’_91NXXNXXXXXX’ => 1. Macro(ael-dundi-e164|${EXTEN:1}) [pbx_ael]
2. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) [pbx_ael]
Include => ‘ael-dundi-e164-lookup’ [pbx_ael]

[ Context ‘ael-trunkint’ created by ‘pbx_ael’ ]
’_9011.’ => 1. Macro(ael-dundi-e164|${EXTEN:4}) [pbx_ael]
2. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) [pbx_ael]
Include => ‘ael-dundi-e164-lookup’ [pbx_ael]

[ Context ‘ael-iaxprovider’ created by ‘pbx_ael’ ]

[ Context ‘ael-iaxtel700’ created by ‘pbx_ael’ ]
’_91700XXXXXXX’ => 1. Dial(IAX2/${IAXINFO}@iaxtel.com/${EXTEN:1}@iaxtel) [pbx_ael]

[ Context ‘macro-ael-dundi-e164’ created by ‘pbx_ael’ ]
‘s’ => 1. Set(exten=${ARG1}) [pbx_ael]
2. Goto(${exten}|1) [pbx_ael]
3. Goto(4) [pbx_ael]
4. NoOp(End of Macro ael-dundi-e164-s) [pbx_ael]

[ Context ‘ael-dundi-e164-lookup’ created by ‘pbx_ael’ ]
Include => ‘ael-dundi-e164-local’ [pbx_ael]
Include => ‘ael-dundi-e164-switch’ [pbx_ael]

[ Context ‘ael-dundi-e164-switch’ created by ‘pbx_ael’ ]
Alt. Switch => ‘DUNDi/e164’ [pbx_ael]

[ Context ‘ael-dundi-e164-local’ created by ‘pbx_ael’ ]
Include => ‘ael-dundi-e164-canonical’ [pbx_ael]
Include => ‘ael-dundi-e164-customers’ [pbx_ael]
Include => ‘ael-dundi-e164-via-pstn’ [pbx_ael]

[ Context ‘ael-dundi-e164-via-pstn’ created by ‘pbx_ael’ ]

[ Context ‘ael-dundi-e164-customers’ created by ‘pbx_ael’ ]

[ Context ‘ael-dundi-e164-canonical’ created by ‘pbx_ael’ ]

[ Context ‘parkedcalls’ created by ‘res_features’ ]
‘700’ => 1. Park() [res_features]

-= 28 extensions (71 priorities) in 24 contexts. =-
[/code]

I restared Asterisk and even restarted the machine… but still apply the old extensions file.
What should I do?

Thanks everybody

There is a second sample config file using the newer Asterisk extensions language, called “extensions.ael” in the /etc/asterisk directory. You will need to rename/remove that file, as well.

thanks… that worked fine. :smiley: