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 It is my understanding that asterisk treats the digits entered by the caller at the first menu as an extension. When I run asterisk and call in and enter a number for my option, I am not passed on, rather I just loop through. Is there something more that I need to set up. Also, is there a way to store dialed digits as a variable? I am interested in writing a calling card/debit card application, and I think storing the digits as a variable would be something that I would need to do to accomplish that. If anyone as experience with that I would appreciate your advice as well. Thanks, Jesse
>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 > >It is my understanding that asterisk treats the digits entered by the >caller at the first menu as an extension. When I run asterisk and call in >and enter a number for my option, I am not passed on, rather I just loop >through. Is there something more that I need to set up.No, that should work. Make sure you've reloaded the changes into your running system ("reload")>Also, is there a way to store dialed digits as a variable? I am interested >in writing a calling card/debit card application, and I think storing the >digits as a variable would be something that I would need to do to >accomplish that. If anyone as experience with that I would appreciate your >advice as well.You can set a variable to be equal to ${EXTEN} which is the current dialed number that * is matching against. exten => _.,1,SetVar(FOO=${EXTEN}) . . . From there on out, ${FOO} will be permanently set to whatever the number was that you were matching against, even if the user is pushed through other DTMF sequences that change ${EXTEN} dynamically. JT>Thanks, >Jesse
You forgot the simplest ;-) The "Answer" application :) Your extensions.conf shoud look like this: exten => s,1,Wait(1) exten => s,2,Answer exten => s,3,SetDigitTimeout(5) exten => s,4,SetResponseTimeout(10) exten => s,5,Background,menu1 -- Stefano ----- Original Message ----- From: <JKNUTSEN@UP.COM> To: <asterisk-users@lists.digium.com> Sent: Thursday, April 24, 2003 8:49 PM Subject: [Asterisk-Users] Collecting dialed digits> 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 >
On Thursday 24 April 2003 13:49, JKNUTSEN@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,option3You 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