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

From innovaphone wiki
Jump to navigation Jump to search
 
(12 intermediate revisions by 7 users not shown)
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 21: Line 19:


===Configuration===
===Configuration===
* Configure a VM object which points to the modified vm.xml script
* Create a new folder called e.g. ''notify'' on the CF card or within the V13-FilesApp
(for example http://127.0.0.1/DRIVE/CF0/NOTE/prompt-or-record.xml)
* Copy files from the [[Howto:Wiki_Sources#notify | download page]] to this new folder
* Create a new folder called NOTE on the CF card
* Configure a VM object which points to the contained xml script (for example <nowiki>http://127.0.0.1/DRIVE/CF0/notify/prompt-or-record.xml</nowiki>)
* 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
** From V13 on you can upload files to the AP-Platform based FilesApp to get access to them via webdav. [[Howto13r1:Record_an_announcement_by_phone#Using_V13_Files-app_as_storage_location|Read here howto accomplish it]].
* 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 -->


===Known Problems===
===Known Problems===
Line 60: Line 33:


<!-- == Howto Configure the innovaphone Voicemail == -->
<!-- == Howto Configure the innovaphone Voicemail == -->
== Download ==
*[http://wiki.innovaphone.com/index.php?title=Howto:Wiki_Sources#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}}]]

Latest revision as of 09:56, 10 April 2024

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

  • Create a new folder called e.g. notify on the CF card or within the V13-FilesApp
  • Copy files from the download page to this new folder
  • Configure a VM object which points to the contained xml script (for example http://127.0.0.1/DRIVE/CF0/notify/prompt-or-record.xml)
  • 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

  • Download the complete file package of scripts and files described in this article.