[Asterisk-Users] bug or feature?

Steven Critchfield critch at basesys.com
Wed May 26 20:04:33 MST 2004


On Wed, 2004-05-26 at 14:45, Maveric wrote:
> At 08:08 AM 5/26/2004, you wrote:
> >On Wed, 26 May 2004, Maveric waxed:
> >
> > > I've noticed that when i pass a wait in an exten => that it doesn't allow
> >
> >Are you talking about the Wait() application ?
> >'show application wait'
> >
> > > for dtmf tone input.  Also on another note i've noticed that when using
> >
> >Background() is what you want if you want to *wait* for DTMF.
> >
> > > gotoif it will also cut the dtmf tones and drop the first part if the
> > > gotoif is hit in the middle of input.  Anybody else seen this or have this
> > > problem?
> >
> >GotoIf should execute a lot faster than your fingers can
> >push buttons to send DTMF.  Can you post the relevant
> >section(s) of your extensions.conf ?
> >
> >--Chris
> >
> >
> >--
> >Chris Maj, Rochester
> >cmaj_at_freedomcorpse_dot_com
> >Pronunciation Guide: Maj == May
> >_______________________________________________
> >Asterisk-Users mailing list
> >Asterisk-Users at lists.digium.com
> >http://lists.digium.com/mailman/listinfo/asterisk-users
> >To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> [easynews]
> exten => s,1,SetVar,"COUNTER=0";
> exten => s,2,Answer
> exten => s,3,DigitTimeout,5


> exten => s,18,BackGround(digits/5)
> exten => s,19,SetVar,"COUNTER=$[${COUNTER} + 1]";
> exten => s,20,GotoIf,"$[${COUNTER} < 4]?23:21"
> exten => s,21,Playback(vm-goodbye)
> exten => s,22,Hangup
> exten => s,23,Wait(0)


Everything through s,19 is good. Delete s,20-23. Make a t extension so
you can wait a moment for input.

exten => t,1,GotoIf($[${COUNTER} < 4]?s,5:h)
exten => h,1,Playback(vm-goodbye)
exten => h,2,Hangup()

> exten => t,1,Goto(s,5)

You can't reach the t extension if you don't let asterisk fall out of
your commands into an idle state. That is why I mention how to fix it
the way I did above.

> exten => i,1,Playback(invalid)
> exten => i,2,Goto(s,5)
> 
> It was much different before but this is how i worked around it.  Also i 
> was calling Background before the wait but i think the wait should still 
> allow input.

Wait doesn't accept input, you need to quit telling asterisk to be
active and let it do it's work.
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list