Asterisk Clustering with DRBD/Heartbeat

Today a friend of mine asked me if I have got any manual for an Asterisk HA setup, so I decided to write this post to share with everyone else.

In this manual, we are using DRBD with Heartbeat on Debian. Feel free to try it on any other linux distro (make sure to do the proper adjustments). Please don’t use the configuration samples here in any production environment, unless you have had it completely tested in your lab.

Scenario:

Continue Reading

Asterisk tips for integration with Avaya

There are many occasions where you need to have some sort of communication between your Asterisk system and an external system, be it another telephony platform or external application. The beauty of Asterisk is it’s superb flexibility in terms of collaboration or integration with external phone systems or applications. One common scenario is integration to Avaya system. Here in this post I try to highlight some of the tips and tricks in order to establish a successful communication with Avaya.

Continue Reading

Digium Gateway remote logging

We have recently used Digium gateway as alternative to other existing PRI interfaces and it’s been working like a charm. However, we had a client who needed to monitor the PRI connections and send an email alert whenever the PRI go down. Back then we had no issue with PRI PCI cards as we had access to DAHDI and could simply write a daemon to monitor “pri show spans”. With this gateway however, we cannot do it as simple as that as we have no access to the PRI and there is no SNMP tool whatsoever. The way I could think of was to push the syslog to Asterisk server and parse the syslog looking for anything suspicious. Now here is how I worked that out:

Continue Reading