[Asterisk-Users] Collecting dialed digits
Mark Spencer
markster at digium.com
Sun Apr 27 18:04:14 MST 2003
The correct app names are ResponseTimeout and DigitTimeout.
Mark
On Sun, 27 Apr 2003, Frank Hoonhout wrote:
> I try using a similar setup for autoattendent for a inbound SIP call.
> I notice that the SetResponseTimeout and SetAbsoluteTimeout, hang up the
> call when executed.
>
> When * get to step 5 or 6 (when 5 is commented out), it hangs up the call.
> Here is the output from *.
> == Spawn extension (default, 12345, 5) exited non-zero on 'SIP/50007-5499'
>
> Any ideas?
>
> ; Inbound SIP calls from FWD
> exten => 12345,1,Ringing ; Let it at least ring,
> before pickup
> exten => 12345,2,Wait,3 ; Wait 3 seconds
> exten => 12345,3,Answer ; Off Hook
> exten => 12345,4,Wait,3 ; Wait 3 seconds
> exten => 12345,5,SetResponseTimeout(20) ; Set Response Timeout for 20
> seconds
> exten => 12345,6,SetAbsoluteTimeout(60) ; Hang up call after 60 seconds if
> no response
> exten => 12345,7,Background(Greeting) ; Play Greeting
> ;
> exten => t,1,Goto,12345|7 ; If no response, replay
> Greeting and goto 12345, step 7
> ;
> exten => 1,1,Playback(option1)
> exten => 2,1,Playback(option2)
> exten => 3,1,Playback(option3)
>
>
> Frank...
>
> > -----Original Message-----
> > From: asterisk-users-admin at lists.digium.com
> > [mailto:asterisk-users-admin at lists.digium.com] On Behalf Of
> > Tilghman Lesher
> > Sent: Thursday, April 24, 2003 1:00 PM
> > To: asterisk-users at lists.digium.com
> > Subject: Re: [Asterisk-Users] Collecting dialed digits
> >
> >
> > On Thursday 24 April 2003 13:49, JKNUTSEN at UP.COM wrote:
> > > I am trying to set up an auto attendant for the first time,
> > > and am having trouble getting to the submenu. My
> > > extensions.conf file looks like this:
> > >
> > > [incoming]
> > >
> > > exten=> s,1,Background,menu1
> > > exten=> s,2,Wait,20
> > > exten=> s,3,Goto,s|1
> > >
> > > exten=> 1,1,Playback,option1
> > > exten=> 2,1,Playback,option2
> > > exten=> 3,1,Playback,option3
> >
> > You should instead take advantage of the timeout. Asterisk will
> > not receive DTMF during a Wait.
> >
> > exten => s,1,SetResponseTimeout(20)
> > ; Prevent the dialplan from looping forever (in case hangup is
> > ; not detected)
> > exten => s,2,SetAbsoluteTimeout(60)
> > exten => s,3,Background(menu1)
> >
> > exten => t,1,Goto,s|3
> >
> > exten => 1,1,Playback(option1)
> > exten => 2,1,Playback(option2)
> > exten => 3,1,Playback(option3)
> >
> > -Tilghman
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list