guruevi 853aecefb9 2008-08-28 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandora_console/extensions/update_manager.php: Check for an empty
        variable so it doesn't give a warning

        * pandora_console/extensions/update_manager/lib/libupdate_manager_utils.php,
        libupdate_manager_client.php: Removed referenced variables from
        function calls so it doesn't give a warning that it is deprecated.

        * pandora_server/util/pandora2ast: Pandora to Asterisk script. Check README 
	for how to install it and use it


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1046 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-28 16:21:21 +00:00

32 lines
1.4 KiB
Plaintext

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.