hello liste i have create an menu like below exten => my_number,1,Ringing() exten => my_number,2,Wait(4) exten => my_number,3,Goto(home,s,1) [home] exten => s,1,SetGlobalVar(sounds_path=/var/lib/asterisk/sounds/) exten => s,2,Background(${sounds_path}welcome) exten => #,1,Goto(menu,s,1) exten => i,1,Playback(${sounds_path}error-key) exten => t,1,Goto(home,s,1) with this menu i call "my_number" and i cal listen the welcome message without issue but when there no key pressed the call hang up i verify in gool and i found that "exten => t,1,Goto(home,s,1)" is to send to the "home" until i press a key could you please tell me what is wrong with this menu. Nb: i use asterisk 1.4 best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110620/e96c9313/attachment.htm>
Put this line in Exten => s,3,goto(home,s,1) You are experiencing "fall through" when no dtmf is pressed and since there is no handling, the call hangs up. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of salaheddine elharit Sent: Monday, June 20, 2011 12:18 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] menu issue hello liste i have create an menu like below exten => my_number,1,Ringing() exten => my_number,2,Wait(4) exten => my_number,3,Goto(home,s,1) [home] exten => s,1,SetGlobalVar(sounds_path=/var/lib/asterisk/sounds/) exten => s,2,Background(${sounds_path}welcome) exten => #,1,Goto(menu,s,1) exten => i,1,Playback(${sounds_path}error-key) exten => t,1,Goto(home,s,1) with this menu i call "my_number" and i cal listen the welcome message without issue but when there no key pressed the call hang up i verify in gool and i found that "exten => t,1,Goto(home,s,1)" is to send to the "home" until i press a key could you please tell me what is wrong with this menu. Nb: i use asterisk 1.4 best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110620/71b8b10b/attachment.htm>
On Mon, Jun 20, 2011 at 12:17 PM, salaheddine elharit < salah.elharit200 at gmail.com> wrote:> [home] > exten => s,1,SetGlobalVar(sounds_path=/var/lib/asterisk/sounds/) > exten => s,2,Background(${sounds_path}welcome) > exten => #,1,Goto(menu,s,1) > exten => i,1,Playback(${sounds_path}error-key) > exten => t,1,Goto(home,s,1) > >You need to add the following to the [home] context: exten => s,3,WaitExten(10) which will cause the call to wait 10 seconds for input, otherwise it will timeout and go to the 't' extension. The way you currently have it, the call will end after the Background() app finishes playing because it has no additional steps and nothing that will tell it to go to the 't' extension. Also, consider switching your dialplan priorities away from "1,2,3..." and go to "1,n,n,n..." as this reduces headaches in the longrun. -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com <http://www.selbytech.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110620/621e1cd1/attachment.htm>