Howto:Simple caller notification Voicemail XML Script: Difference between revisions

From innovaphone wiki
Jump to navigation Jump to search
mNo edit summary
Line 6: Line 6:
* innovaphone Voicemail
* innovaphone Voicemail
* innovaphone phones, including softphone and bria softphone
* innovaphone phones, including softphone and bria softphone


<!-- Keywords: enter keywords, foreign translations and/or synoyms not appearing in the article here for better search results -->
<!-- Keywords: enter keywords, foreign translations and/or synoyms not appearing in the article here for better search results -->
==More Information==
==More Information==
This article explains how a simple caller notification could be set up by using a modified voicemail script.
This article explains how a simple caller notification could be set up by using a modified voicemail script.
Line 22: Line 20:
===Configuration===
===Configuration===
* Configure a VM object which points to the modified vm.xml script
* 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)
(for example http://127.0.0.1/DRIVE/CF0/notify/prompt-or-record.xml)
* Create a new folder called NOTE on the CF card
* Create a new folder called ''notify'' 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
* Copy files from the [[Howto:Simple_caller_notification_Voicemail_XML_Script#Download | download page]] to the new folder named ''notify''
* 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">
              <!-- If leg2 is present, then it's a diverted call  -->
          <pbx-getcallinfo out-leg2="$leg2"/>
          <if cond="$leg2">
                  <!-- it's a diverted call, play announcement -->
              <store-get root="" name="announcement.g711a" out-url="$url"/>
              <pbx-prompt url="$url" barge-in="false"/>
              <pbx-disc/>
          </if>
          <else>
                  <!-- it's not a diverted call, record -->
                  <!-- intro -->
              <store-get root="" name="en_please_speak_after_the_signal.g711a" out-url="$url" />
              <pbx-prompt url="$url" barge-in="false"/>
                  <!-- beep -->
              <store-get root="" name="beep.g711a" out-url="$url" />
              <pbx-prompt url="$url" />
                  <!-- record -->
              <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''
* 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
* A call diverted to the VM object will play the announcement and quit the call


<!-- Keywords: voicemail voice mail no voicebox -->
<!-- Keywords: voicemail voice mail no voicebox -->
===Known Problems===
===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.
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.


<!-- == Howto Configure the innovaphone Voicemail == -->
<!-- == Howto Configure the innovaphone Voicemail == -->
== Download ==
*[http://download.innovaphone.com/ice/wiki-src#notify http://download.innovaphone.com/ice/wiki-src#notify] - download the complete file package of scripts and files described in this article.


[[Category:Howto|{{PAGENAME}}]]
[[Category:Howto|{{PAGENAME}}]]
[[Category:Sample|{{PAGENAME}}]]
[[Category:Sample|{{PAGENAME}}]]

Revision as of 16:30, 10 September 2010

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/notify/prompt-or-record.xml)

  • Create a new folder called notify on the CF card
  • Copy files from the download page to the new folder named notify
  • 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.

Download