How i can do select menu?

Hi all,

I want to do select menu that containing sub menus

if the user press 1 - first menu
if the user press 2 - Second menu …

How i can do that in asterisk ??

See Background and WaitExten. The menu selection becomers an extension number.

I seem to remember that thiere is an examle in the sample configuratoin file.

[quote=“david55”]See Background and WaitExten. The menu selection becomers an extension number.

I seem to remember that thiere is an examle in the sample configuratoin file.[/quote]

OK , i used the Background and WaitExten
but when i pressed 1,2 or 3 it not moves to the select extension
and if i pressed 4,5,6,7,8,9 or 0 it work fine
what the problem ??

Unless you provide the complete dialplan, I can’t tell you what is wrong with it.

However, the likely reason is that you have multi-digit extension numbers in or included from, the context you are using, and those begin with 1, 2 and 3.

[quote=“david55”]Unless you provide the complete dialplan, I can’t tell you what is wrong with it.

However, the likely reason is that you have multi-digit extension numbers in or included from, the context you are using, and those begin with 1, 2 and 3.[/quote]

This for example :

exten => 5000,1,Answer()
exten => 5000,2,Background(sound-file)

exten => 0,1,Background(sound-file0)

exten => 1,1,Background(sound-file1)

exten => 2,1,Background(sound-file2)

exten => 3,1,Background(sound-file3)

exten => 4,1,Background(sound-file4)

exten => 5,1,Background(sound-file5)

note that : 0,4 and 5 work fine but 1,2 and not work

Are these lines in a separate context?

Provide CLI logs for success and failure cases.

–Satish Barot
Ahmedabad, India

No ,in the same context

Make the IVR part of the dialplan in a separate context. Then use Goto() function to “jump” from the “IVR context” to the context where you have all the extensions defined. This is the usual way of defining the IVR in Asterisk Dialplan.

I will try that …

thank you