Friday, September 07, 2012

IVR with night mode (go to voice mailbox straightaway after office hours)

We just have a client who operates a small call center. Their hotline
is served with an IVR which provides some self-serviced functions and an
option to talk to agents. After office hours, callers should be sent to
voice mailbox straightaway as all agents are off-duty.

This time-conditional forward is implemented using GotoIfTime function.

Here is an example that we provided.

When the caller presses the IVR option for agent, the GotoIfTime() will
determine whether it is within office hours.
exten => s,1,noop
exten => s,n,GotoIfTime(${CS-HOUR},*,*,*?open)
exten => s,n(closed),Playback(after-office-hour-msg)
exten => s,n,Voicemail(vm-night-mode@context,s)
exten => s,n,Hangup()
exten => s,n(open),noop
exten => s,n,PlayBack(queue-greeting)
exten => s,n,Queue(agent-queue,,,,60)
exten => s,n(queue-busy),Playback(queue-busy)
exten => s,n,Voicemail(vm-day-mode@context,s)
exten => s,n,Hangup()

The variable CS-HOUR is defined previously as.
exten => s,n,Set(CS-HOUR="09:00-22:30")

We could have office hours for night shift as well. For instance,
exten => s,n,Set(CS-HOUR="22:30-09:00")


  1. WP WOO SMS Plugin is a multi useful completely coordinated word-press module particularly intended for charm trade clients to improve your business and deals through advertising.

    woo sms notifications

  2. Interesting article, and the system as described therein. As the exchange of useful information I want to draw your attention to a resource that can provide you with maximum security of your personal or corporate data security-online


  3. Fantastic!)
    Thank you for sharing, for me this is very valuable information!


  4. Thank you very much for your information.
    Australia ETA/eVisitor Visa
    is quiet easy to apply online from Singapore,
    Malaysia, United Kingdom, United States, Canada, France and including all others ETA Eligible Countries from our website.