menu issue

Home » Asterisk Users » menu issue
Asterisk Users 3 Comments

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

3 thoughts on - menu issue

  • On Mon, Jun 20, 2011 at 12:17 PM, salaheddine elharit <
    salah.elharit200@gmail.com> wrote:

    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.

  • Hi khalid

    thank you for your response i have verify the chapter that talks about
    contexts and also menu in asterisk book
    and now i can create my menu without issue,if i have any question i will
    send an email to this perfect list

    thanks evrey one for the help and support

    Kind Regards

    2011/6/21 khalid touati