[Asterisk-Users] Collecting dialed digits

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Apr 24 13:00:09 MST 2003


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




More information about the asterisk-users mailing list