[asterisk-users] Introducing ToRELP.. A quick and dirty way to push notifications away from Asterisk to a Python Tornado process.

Shane Spencer shane at bogomip.com
Tue Nov 6 11:49:59 CST 2012


Heya everybody.

I work on a lot of AGI/AMI/AJAM/etc.. projects and recently discovered
RELP (available via rsyslog) which is defined here:
http://www.librelp.com/relp.html

I've been pimping out (yes.. pimping) the Log dialplan application to
quickly emit a message to my local syslog which is then delivered to
rsyslog.  I have rsyslog configured to use RELP between itself and a
remote RELP server (ToRELP) in a reliable way.

Messages are queued and redelivered if for any reason the remote RELP
server dies.

After doing some testing I've found that setting the core debug and
verbosity to 0 does not negatively impact messages going to syslog..
which is wonderful.

I personally use this to send JSON commands off to a worker process
that helps with some screenpop processes.

https://github.com/whardier/torelp

My dialplan has a line like the following in it:

Log(NOTICE, JSON:{'i': 'havealovelybunchofcoconuts', 'dee': 'dledee'})

Have fun.. always looking for contributions to my projects.  Hope
somebody out there can utilize this.



More information about the asterisk-users mailing list