[asterisk-users] Re: Match a Numer - then continue with dialplan

Douglas Garstang dgarstang at oneeighty.com
Wed Dec 20 13:16:38 MST 2006


> [example]
> include => ctx31X
> include => ctx3XX
> 
> exten => _X.,1,NoOp(this gets executed first for everything)
> exten => _X.,2,NoOp(this gets executed second only if ctx31X 
> or ctx3XX didnt match)
> exten => _X.,3,NoOp(this gets executed third for everything)
> 
> [ctx31X]
> exten => _31X,2,NoOp(this gets executed second for 310-319)
> 
> [ctx3XX]
> exten => _3XX,2,NoOp(this gets executed second for 300-309 
> and 320-399)

Does this really work? I've never seen this behavior documented anywhere.
Asterisk always searches the current context before looking in included ones for a start.
Second, I don't see how it can just jump out of [example] into [ctx31X] and back again without being told to do so.... 


More information about the asterisk-users mailing list