Here is my first plugin, I'm new to Eventghost and Python so please be nice. It's quick and dirty, and I'm sure there are better ways to do what I am doing - but it seems to work for the intended purpose.
This plugin connects to an asterisk box via the AMI interface. It generates an eventghost event each time it receives an event from the AMI.
Just as an example, this could be used to perform an action on an incoming call - Like a popup message with the callerid within xbmc.
To enable the AMI interface on your asterisk box, you will need to modify /etc/asterick/manager.conf
Code: Select all
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
[eg]
secret = eg
permit=0.0.0.0/0.0.0.0
read = system,call,log,verbose,command,agent,user,originatev0.1.0 - 2011-10-12 - Initial release
v0.2.0 - 2011-10-12 - Added filtering