[asterisk-users] turn off auto-seek extention - force usetimeout

Justin Killen jkillen at allamericanasphalt.net
Thu Dec 20 13:27:46 CST 2007


Hey, that works great!

Thanks!


> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Mojo with Horan & Company, LLC
> Sent: Wednesday, December 19, 2007 5:52 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] turn off auto-seek extention - force
> usetimeout
> 
> 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
> 
> 
> _______________________________________________
> --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




More information about the asterisk-users mailing list