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.


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to