[Asterisk-Users] Whats wrong with dialplan?

Florian Overkamp florian at obsimref.com
Wed Feb 4 08:13:38 MST 2004


Hi, 

> -----Original Message-----
> In the following dialplan, I am not able to press 8 to get to 
> voicemail main while the 3000 mailbox unavailable message is 
> being read in the background.
> What am I doing wrong?


You need to put the exten = > 8,... Line in the same context as extensions,
otherwise it won't work like that.

During a Background play, you can access extensions in your _current_
context.


> [voicemail access]
> ;Extension 8 to get to voicmail:
> exten => 8,1,VoicemailMain
> 
> [no match]
> exten => _.,1,Playback(sorry-no-match)
> exten => _.,2,Hangup
> 
> [extensions]
> ;ext3000:
> exten => 3000,1,Dial(${p1},10,tr)
> exten => 3000,2,Answer
> exten => 3000,3,Background,vm/3000/unavail exten => 
> 3000,4,Voicemail,3000 exten => 3000,5,Hangup ;If Busy:
> exten => 3000,102,Background,vm/3000/unavail
> exten => 3000,103,Goto,4

Florian




More information about the asterisk-users mailing list