Robert McNaught
2007-Nov-19 18:23 UTC
[asterisk-users] dialplan design - unknown extension length
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
Mojo with Horan & Company, LLC
2007-Nov-19 18:49 UTC
[asterisk-users] dialplan design - unknown extension length
Should work fine: [incoming] exten => s,1,Background(blahblahblah) exten => s,2,WaitExten(10) exten => s,3,Background(make your selection) exten => s,4,Goto(2) exten => 0,1,Goto(operator,s,1) exten => _XXXX,1,Goto(agents,${EXTEN}, 1) [operator] exten => s,1,Dial(SIP/110,,twk) [agents] exten => 1234,1,Dial(SIP/1234,,twk) exten => 5678,1,Dial(SIP/5678,,twk) Robert McNaught wrote:> 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 > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Mojo with Horan & Company, LLC
2007-Nov-19 19:30 UTC
[asterisk-users] dialplan design - unknown extension length
Sorry, to answer your question, pattern matching should work just fine with WaitExten(). Robert McNaught wrote:> 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? >
Robert McNaught
2007-Nov-19 20:13 UTC
[asterisk-users] dialplan design - unknown extension length
Thanks, I think it did not work for me before, as I may have had other extensions in the context, so was using the Read application and having the user press pound - the pattern match does work. Thanks :-) Robert On Nov 19, 2007 11:30 AM, Mojo with Horan & Company, LLC <mojo at horanappraisals.com> wrote:> Sorry, to answer your question, pattern matching should work just fine > with WaitExten(). > > > Robert McNaught wrote: > > 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? > > > > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >