IVR menu & star key

I’d like to implement an IVR menu with something like "for this, press 1; for that press 2; to repeat the menu press *, press # to release."
How can I match the * key in my extension.conf?

I’d like to have something like this:

[IVR]
exten => s,1,Background(menu)
exten => s,n,WaitExten
exten => i,1,Playback(invalid)
exten => 1,1,Playback(this)
exten => 2,1,Playback(that)
exten => #,1,hangup
exten => *,1,Background(menu)
exten => *,n,WaitExten

Unfortunately, the last two lines don’t work, whenever I press *, the “invalid” option is played.

This is because ‘*’ and ‘#’ are predefined in asterisk. But I do not think there should be any problem with *.

I tried again, and today it works fine. Both. the # and the * are recognized properly. There must have been something else wrong last night…

you can use * by using the a exten

exten = a,1,Background(Menu)

I am having some trouble setting up our IVR (Voice Menu) for the first time. I want it to say in short "Thanks for calling please enter extension if you know it (then you have a couple seconds to enter an extension). Press 1 for secretary, press 2 for sales, press 3 for accounting, press 4 for investor relations (gives caller a couple seconds to select 1 of the 4 menu options), otherwise dial 411 for directory or 0 to leave a message. (again a couple more seconds to dial 411 or 0) and then the menu repeats itself after a few seconds.

include=default
exten=s,1,NoOp(RealtyNet Advisors)
exten=s,2,Answer
exten=s,3,Wait(1)
exten=s,4,Background(thank-you-for-calling)
exten=s,5,Background(if-u-know-ext-dial)
exten=s,6,WaitExten(3)
exten=s,7,Background(press-1)
exten=s,8,Background(for)
exten=s,9,Background(secretary)
exten=s,10,Wait(1)
exten=s,11,Background(press-2)
exten=s,12,Background(for-sales)
exten=s,13,Wait(1)
exten=s,14,Background(press-3)
exten=s,15,Background(for-accounting)
exten=s,16,Wait(1)
exten=s,17,Background(for-investor-relations)
exten=s,18,Background(for)
exten=s,19,Wait(1)
exten=s,20,Background(otherwise)
exten=s,21,Background(company-dir-411)
exten=s,22,WaitExten(6)
exten=s,23,Goto(voicemenu-custom-1|s|1)
exten=0,1,Voicemail(1110,u)
exten=1,1,Goto(default|1110|1)
exten=2,1,Goto(default|1118|1)
exten=3,1,Goto(default|1116|1)
exten=4,1,Goto(ringroups-custom-1|s|1)
exten=*,1,Goto(directory|411|1)
exten=#,1,Goto(directory|411|1)