Call Termination script

This script is interpreted when the Call Termination Event is fired.

It executes as follows:

  1. Check to see if a voicemail has been recorded.
  2. If one has, then strip all skills from the call and assign the VoiceMailSkill.
  3. Send the voicemail using email.

The blocks function as follows.

Block

Name

Description

Condition

CheckVMFile

Checks to see if the optional parameter VMFile is set to anything but NULL (""). If it is not NULL, then the caller has recorded a voicemail that must be sent via email before terminating.

Remove Skill

RemoveAllSkills

Removes all skills that have been assigned to this call so far.

Add Skill

VoicemailSkill

Adds the VoiceMailSkill to the call.

Send Email

SendEmail

Sends the voicemail as an attachment to an email.