VoIP How to: IVR and Voicemail Example

From AAISP Support Site

(January 2016, Under construction)

Description of Requirements

Here is a mini example to set up a telephone service that provides these features:

  • Public telephone number offering two IVR options... (IVR is where you hear a recorded message which gives you options to press 1 for this, 2 for that, etc.)
    1. Option no. 1, to a VoIP Phone
    2. Option no. 2, redirect to a PSTN line during working hours and Voicemail at other times

The customer is a small veterinary surgery. They would like their main number to offer the choice to talk to staff during working hours and leave a message out of hours, or to call emergency 24 hour contact.

As it happens, the 24 hour contact is a SIP telephone and the office runs from a mobile phone.

Call Diagram

We can represent this example as a simple flow chart:

Flow diagram of call

Overview of configuration

We'll need three numbers for this example, let's assume our numbers are as follows:

  1. 123001, the main number that customers call. This will play the pre-recorded message and offer calles to press 1 or 2.
  2. 123002, the number that is used for the VoIP phone. Pressing 1 on the main number will call this number.
  3. 123003, the number that is used to redirect to an external number or go to voicemail. Pressing 2 on the main number will call this number.

We can expand the flow chart a little to better explain how the numbers are going to be used:

Further flow diagram of call

Number Configuration: 123001

This number is just used for the IVR message which plays a message and allows the caller to choose where the call should be sent to.

  1. Log in to the Control Pages with your xxx@a login
  2. Click on the Number: 123001
  3. Set a (secure) SIP Password
  4. Click the 'Incoming Tab'
  5. Set it to always to go voicemail
  6. Fill in the Also-rings so that 1 goes to 123002 and 2 goes to 123003.
  7. Mandatory: Enter a 'fail' number, as 123001 - this will be used as the default number to call if no digits are keyed by the caller
  8. Click Save
  9. Register a phone to the 'Main' number, dial 1571 and record your 'Please press 1 for Sales, 2 for support...' message

Number Configuration: 123002

This number is used for the SIP phone's registration. The SIP phone will be configured for this number. The main number (123001) will direct calls to this number if option one is selected from the IVR menu.

  1. Log in to the Control Pages with your xxx@a login
  2. Click on the Number: 123002
  3. Set a (secure) SIP Password
  4. Click Save
  5. Configure the SIP phone to register against this number

Number Configuration: 123003

This number is used to ring an external number during office hours and go to voicemail out of hours. There are a number of things to set for this number: Redirect, Time Profile and Voicemail. Here goes:

  1. Log in to the Control Pages with your xxx@a login
  2. Click on the Number: 123003

Configure Redirect

  1. Click the Incoming tab
  2. Enter in 456789 as the first "Also Ring"
  3. Click Save

Configure the time Profile

  1. Click the Incoming tab
  2. Click "Edit time profiles":
    • Set a profile name of: Office Hours
    • Set Start time to be "09:00:00"
    • Set End time to be "17:00:00"
    • Set Active days to be: "Mon, Tue, Wed, thu, Fri"
    • Click "Add profile"
  3. Ensure the "Profile" is set to "Office Hours"
  4. Click Save


  1. Click the Incoming tab
  2. Set "Voicemail" to be "On Fail/Busy" (this will catch calls out of hours)
  3. Set "Format" to be MP3, or whatever file you prefer
  4. Set your email address in the "Email To" box
  5. Click Save

See also

VoIP - Call Gate