Hello,
On 11/7/13 1:17 AM, Oriol Capsada wrote:
Hi Phillip,
On 06/11/2013, at 22:29, phillman25 phillman25@gmail.com wrote:
Hi
I was wondering which module i could use to configure an email alert upon an event in kamailio.cfg file
i.e. if ...... then send to email address xxxx
any ideas?
There's no module to do so, but as an alternative you could print a log message and use some monitoring program (ex. monit or fail2ban) to check the log file and send the alert if your message is found.
you can also use exec module to run an external application such as 'mail' - I used it in the past. Now I would use Lua via app_lua (or other embedded languages) to send emails (for example, I use them for doing custom http requests).
Might be a good idea to do it via mqueue + rtimer combination, so you don't block the sip worker -- if you search on the web, you should find some presentation that shows async notifications to twitter.
Cheers, Daniel