Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

 

Access to Voicemail

 

REQUIREMENTS

Voicemail name must be the same of the sip name (e.g. john.doe).
The voicemail password must be numeric (e.g. 0000).

 

HOW IT WORKS
Access to voicemail can be handled by using ivr script and a custom application (VoiceMailMain).
You need to set two different dial plans:

 

  • An internal DID that need to execute the custom application (VoiceMailMain). The application VoiceMailMain allows you to manage the voicemail messages.

  • An external DID to access to the ivr script. The ivr asks the voicemail extension you want to check and performs the query to xcally db to retrieve the voicemail name (sip name). Then the call goes to the internal dialplan to execute the VoiceMailMain application.

 

Image Removed

 

THE IVR SCRIPT
Variables
Add two channel variables: VM_EXT and VM_USER

 

Image Removed

 

Database
Set the DB connection

 

Image Removed

 

Sounds
Upload the audio file

 

Image Removed

 

Design

 

Image Removed

 

Block details
GetDigit block settings

 

Image Removed

 

Database block settings

 

Image Removed

 

GoTo block settings

 

Image Removed

 

Where *1000 is the DID of internal dial plan we use to execute the VoiceMailMain application

 

 

DIAL-PLAN SETTINGS
The external inbound dialplan
Add an external inbound dial-plan and set a DID you want to use to check the voicemail boxes

 

Image Removed

 

In the advanced settings add the cally square project

 

Image Removed

 

The internal inbound dialplan
Add an internal inbound dial plan and set the DID *1000 (or the same you use in the GOTO block).

 

Image Removed

 

In the advanced settings add a Custom Application:
Application name: VoiceMailMain
Params: ${VM_USER[0][name]}@from-voicemail

 

Image Removed

 

Your remote access to check the voicemails is ready!

Email notification for inbound calls

...

A system application can be used in IVR to send an email notification whenever an inbound call is received. The following example show a simple IVR where an incoming call is routed to a menu option.

  • In the menu, we insert the name of audio file to be played and we set appropriate values to response timeout, max digit and retry. We need to select a variable that will store the option selected by the caller.

  • System application: The following is a command for sending email using mailx. (To install mailx use “ sudo yum install mailx”)

 echo -e " This is the Body" | mail -s "This is the Subject" -r "<sender@example.com>" recipient@example.com

  •  Body message : " Caller Number: {CALLERID(num)}   Choice: {CHOICE}   Call Time: {CDR(ANSWER)} "
  • Subject : "Caller Info"