[asterisk-users] difference between playback and background?
    Steve Edwards 
    asterisk.org at sedwards.com
       
    Mon Nov 21 14:32:08 CST 2011
    
    
  
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.
-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000
    
    
More information about the asterisk-users
mailing list