Asterisk hangsup [solved]

Hello,

I am trying to make an interactive menu on my asterisk. What is the command to make asterisk wait for input for 5 seconds than do a timeout, instead of immediatly hanging up?

As soon as ‘beep’ it hangs up. No time to enter my select.
The only option in the pasted code is ‘1’ which is for voicemail.

Any ideas?

Thanks,

David

[menu]
exten => s,1,NoOp()
exten => s,n,Answer
exten => s,n,Background(beep)
exten => 1,1,Voicemail(u1001)
exten => t,1,Goto(s|1)
exten => i,1,Goto(s|1)

[local]
exten => 1234,1,Answer
exten => 1234,2,Goto(menu,s,1)

Check out the Read and WaitforExten commands.

I was reading last night about waiting 5 seconds before going to an extension 250

(5w250)

thats how they had it wrote, dont remember where i read it at or if this is what u needed

[menu]
exten => s,1,NoOp()
exten => s,n,Answer
exten => s,n,Background(beep)
exten => s,n,WaitExten(10) ; wait another 10 seconds for them to dial something
exten => 1,1,Voicemail(u1001)
exten => t,1,Goto(s|1)
exten => i,1,Goto(s|1)

Thanks.

I knew I was missing something! This is what I needed!

David