pandorafms/pandora_server/util/pandora2ast
guruevi 4bfb4c57e0 2008-08-28 Evi Vanoost <vanooste@rcbi.rochester.edu>
* operation/events/events.php: Updated the queries and fixed some minor 
        bugs with the event selections. Style changes.

        * operation/agentes/networkmap.php: Style changes

        * pandora2ast: Removed hidden swapfile

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1048 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-29 16:05:08 +00:00
..
GPL
README
channelcommands
extensions.conf.add
pandora2ast.pl
text2speech.php

README

Text2Speech for Asterisk

1. Install Asterisk and Festival on the Asterisk machine.

2. Copy/paste what is in extensions.conf.add to your 
Asterisk extensions.conf (usually /etc/asterisk/extensions.conf)

3. Put the PHP script text2speech.php in your Asterisk 
AGI binary directory (on my machine /usr/share/asterisk/agi-bin)

Another host can then execute the actions in channelcommand with 
the proper variables by connecting through a clear text (try 
telnet) to: asteriskhost:5038

pandora2ast.pl is a sample Perl script which can be called with 
some options from Pandora FMS and will initiate a call through 
the Asterisk Manager (over port 5038). Modify to your liking
You can put it in /usr/bin or anywhere you would like. Then go
to the Pandora Console and add an alert with the command
/usr/bin/pandora2ast.pl _agent_ _data_ _field1_ _field2_

In Pandora you can specify an alert to call this script with 
the following options: _agent_ _data_ _field1_ _field2_ which 
will in turn initiate a call to _field1_ (which should be a SIP 
or other extension eg. SIP/6549 would call through SIP extension 
6549 - see the Asterisk manuals how to dial stuff) and have a 
caller id show up of _field2_. It will say as soon as the end
picks up in a computer voice: "This is a message from the Pandora 
FMS monitoring system. Agent _agent_. _data_"

There could be a delay as Asterisk processes the voice data.