[asterisk-users] dialplan design - unknown extension length

Robert McNaught asteriskator at gmail.com
Mon Nov 19 12:23:26 CST 2007


Hi,

Trying to figure out what would be the best practice for the following:-

Problem: From the main number IVR, allowing a user to dial a 0 to
reach an endpoint instantly (without pressing pound, or having any
delay), or allowing the customer to type in 1234 then pound to be
transferred somewhere else.

If you use the Read() application, then it specifies either the wait
time or the number of digits to accept, if you press 0 - you have to
wait until the Read application stops accepting digits - if you set
this timeout low then the wait is not too long, but is confusing to
the user:

The other option is the Background (using the m flag) or WaitExten
application, but cannot get these to work using a pattern match - I am
assuming that this is impossible with a pattern match?


exten => 9161231234,1,Background(soundfile,m)

exten => 0,1,XXXXX

exten => _XXXX,1,dosomethingelse

Has anyone done this before in production? and is there a best way to
design this?

Cheers - any info appreciated :-)

Robert



More information about the asterisk-users mailing list