[asterisk-users] difference between playback and background?

Kingsley Tart kingsley at skymarket.co.uk
Tue Nov 22 08:25:21 CST 2011


Alternatively, if you don't have that extension defined anywhere,
Asterisk will jump to the i extension, where you can then read the
actual entered digits from the INVALID_EXTEN variable and jump back to
the main part of the dialplan.

Note that if they enter digits that *could* match a defined extension,
Asterisk won't necessarily jump to the i extension until more digits are
entered which may or may not cause no explicitly defined extensions to
be matched.

Cheers,
Kingsley.

On Mon, 2011-11-21 at 12:32 -0800, Steve Edwards wrote:
> On Mon, 21 Nov 2011, Danny Nicholas wrote:
> 
> > Option 2
> > Use WaitExten with Background
> > [getnum]
> > Exten => start,1,background(prompt)
> > Exten => start,n,waitexten(2)
> > Exten => 1111,1,noop(user pressed 1111)
> > Exten => I,1,playback(invalid)
> >
> > For option 2 you have to define each valid 4 digit entry in the context.
> 
> Or, (since the OP seems a bit newbish), read up on extension pattern 
> matching.
> 
-- 
Cheers,
Kingsley.




More information about the asterisk-users mailing list