Justin Killen
2007-Dec-20 01:12 UTC
[asterisk-users] turn off auto-seek extention - force use timeout
I have an application where a call-in user is prompted to enter an identification number for schedule information. That id number is setup as an extension, and if that extension doesn't exist, it tells them that they are not scheduled, then loops back to ask for the id number again. My problem is that asterisk pre-emptively goes to the i extension (invalid) too early depending on available extensions. For example, if I put in id number 4768, and there is only 4790 and 4732, it will push to the invalid extension on the 6, then the "not scheduled" playback message (a cepstral command) gets cancelled out from the DTMF push of the 8. So, if I put in 4768, I get prompted to enter an id number. What I would like to do is turn off this feature, so that the number input does not get evaluated until after the timeout (preferably configurable from the extensions.conf file). Thanks in advance -Justin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071219/ef6b03a2/attachment.htm
Paul Hales
2007-Dec-20 01:48 UTC
[asterisk-users] turn off auto-seek extention - force use timeout
Creative use of the 'read' application? PaulH On Wed, 2007-12-19 at 17:12 -0800, Justin Killen wrote:> I have an application where a call-in user is prompted to enter an > identification number for schedule information. That id number is > setup as an extension, and if that extension doesn?t exist, it tells > them that they are not scheduled, then loops back to ask for the id > number again. My problem is that asterisk pre-emptively goes to the i > extension (invalid) too early depending on available extensions. For > example, if I put in id number 4768, and there is only 4790 and 4732, > it will push to the invalid extension on the 6, then the ?not > scheduled? playback message (a cepstral command) gets cancelled out > from the DTMF push of the 8. So, if I put in 4768, I get prompted to > enter an id number. What I would like to do is turn off this feature, > so that the number input does not get evaluated until after the > timeout (preferably configurable from the extensions.conf file). > > > > Thanks in advance > > -Justin > > > _______________________________________________ > --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-Dec-20 01:51 UTC
[asterisk-users] turn off auto-seek extention - force use timeout
So I'm guessing this is what you're doing: ------------------------------------------------------------------------------ [ids] exten => s,1,playback(enter your id number) exten => s,2,WaitExten(10) exten => s,3,Goto(1) exten => 4768,1,blahblahblah exten => 4790,1,blahblahblah exten => 4732,1,blahblahblah exten => i,1,playback(error) exten => i,2,goto(s,1) ------------------------------------------------------------------------------ So, maybe place the phones in a context that waits for a four-digit id _before_ matching it to the context you were initially trying: ------------------------------------------------------------------------------ [getid] exten => s,1,playback(enter your id number) exten => s,2,WaitExten(10) exten => s,3,Goto(1) exten => _4XXX,1,goto(ids,${exten},1) [ids] exten => 4768,1,blahblahblah exten => 4790,1,blahblahblah exten => 4732,1,blahblahblah exten => i,1,playback(error) exten => i,2,goto(getid,s,1) ------------------------------------------------------------------------------ Untested: I wonder if one entered an extension that didn't exist, say 4555, when we tried to Goto(ids, 4555, 1) would we get directed to extension i in the extensions context or would the call be dropped completely? Moj Justin Killen wrote:> > I have an application where a call-in user is prompted to enter an > identification number for schedule information. That id number is > setup as an extension, and if that extension doesn?t exist, it tells > them that they are not scheduled, then loops back to ask for the id > number again. My problem is that asterisk pre-emptively goes to the i > extension (invalid) too early depending on available extensions. For > example, if I put in id number 4768, and there is only 4790 and 4732, > it will push to the invalid extension on the 6, then the ?not > scheduled? playback message (a cepstral command) gets cancelled out > from the DTMF push of the 8. So, if I put in 4768, I get prompted to > enter an id number. What I would like to do is turn off this feature, > so that the number input does not get evaluated until after the > timeout (preferably configurable from the extensions.conf file). > > Thanks in advance > > -Justin > > ------------------------------------------------------------------------ > > _______________________________________________ > --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