sorry - correction
Main Topics
Browse All TopicsIm really struggling with setting up a after hours function in asterisk.
its an appliance AA50, so Ive been using the gui, but changing things manually.
I have 3 menus
Welcome (Main Menu)
FMBH (Business Hours)
FMAH (After Hours)
What is the code for Welcome to make it go to FMAH (after hours outside of 9 - 5.)
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If I understand correctly, then you would like to skip to FMAH instead of playing the background welcome message (or possibly after).
In the case, just use the "exten=>1" I used anywhere that fits your scenario (immediately after Answer or after playing the welcome message). Just have it jump to FMAH instead of FMBH.
The options in the menu should jump to locations in FMBH.
Usually you don't do it this way, but have the call land on a neutral context, make the switch there and then present the caller with a totally different IVR. Alternatively you can have the incoming context set a variable that contains the sound file to be played and then use one welcome context with the same options.
let me add to that.
(welcome context)
As soon as someone calls it should check if its between business hours.
The welcome context is the main entry point which says press 1 for sales and 2 for support.
If its inside business hours and I press 1 it will go to FMBH
exten=1,1,Goto(voiceme
If its outside business hours and I press 1 it will go to FMAH.
<pre class="prettyprint">exten=
Business Accounts
Answer for Membership
by: e-tsikPosted on 2008-08-19 at 00:46:59ID: 22257817
Hi :-)
|mon-fri?F MBH|s|1)
I can't really tell what the wellcome menu is for, but here is the switch between daytime and other.
You usually implement it without having the user type something, so the switch happens really when the call is answered.
[ivr-switch]
exten => s,1,GotoIfTime(09:00-17:00
exten => s,1,Goto(BMBH|s|1)