Howto:Simple caller notification Voicemail XML Script

From innovaphone wiki
Revision as of 13:15, 12 April 2010 by Tsr (talk | contribs)
Jump to navigation Jump to search
3rd party input
this is 3rd party content not provided by innovaphone, see history for authors.

Applies To

This information applies to

  • innovaphone PBX, V6 SR1 and later
  • innovaphone Voicemail
  • innovaphone phones, including softphone and bria softphone


More Information

This article explains how a simple caller notification could be set up by using a modified voicemail script. The Calling Party will get a simple notification without the possibility to leave a message. The most popular example is a caller notification, that he is calling beyond working hours.

System Requirements

  • Running innovaphone PBX V6 SR1 and later
  • Installed compact flash card or external WebServer with webdav funtionatilty
  • Running innovaphone Voicemail

Configuration

  • Configure a VM object which points to the modified vm.xml script

(for example http://127.0.0.1/DRIVE/CF0/NOTE/prompt-or-record.xml)

  • Create a new folder called NOTE on the CF card
  • Copy the two files beep.g711a and en_please_speak_after_the_signal.g711a from the original voicemail folder to the new folder named NOTE
  • Create a new XML file in the folder NOTE with the following content and save as "prompt-or-record.xml":
  <?xml version="1.0" encoding="utf-8" ?>
  <voicemail xmlns="http://www.innovaphone.com/xsd/voicemail6.xsd">
      <function define="Main">
          <pbx-getcallinfo out-leg2="$leg2"/>
          <if cond="$leg2">
              <store-get root="" name="announcement.g711a" out-url="$url"/>
              <pbx-prompt url="$url" barge-in="false"/>
              <pbx-disc/>
          </if>
          <else>
              <store-get root="" name="en_please_speak_after_the_signal.g711a" out-url="$url" />
              <pbx-prompt url="$url" barge-in="false"/>
              <store-get root="" name="beep.g711a" out-url="$url" />
              <pbx-prompt url="$url" />
              <store-get root="" name="announcement.g711a" out-url="$url"/>
              <pbx-record url="$url"/>
          </else>
      </function>
  </voicemail>
  • Calling the VM object will allow you to record the notification - this will be saved as announcement.g711a
  • A call diverted to the VM object will play the announcement and quit the call


Known Problems

A simple call to the VM object can delete/overwrite the announcement. To provide this, you may delete the extension number after recording and make the call divertion depending on the NAME of the VM object.