Outbound routes have a great Notification option to send an email any time anything goes through that Outbound route. I’m trying to do something similar for Inbound routes – or, in some other way, send an email any time a call comes in.
To explain why… I have several FreePBX installations and everything is working great. I use Twilio as my SIP provider. What I do is set up a failover at Twilio so that if Twilio cannot connect to the primary FreePBX server, it connects to a failover server that I use for the several FreePBX installations. Basically, if the internet is down to a location, I want to handle any incoming calls in some way. All this failover server does is accept those incoming calls and either connect them to an emergency cell number or, for most, play a message that is the standard “The number you have reached is temporarily unavailable” sort of thing.
Again, this all works great – but what I want is to be notified if that failover server ever gets hit. Basically, if ANY call comes into that server, it means that something is broken somewhere else. So, I want it to email me if it gets any call (and then do the normal action for that call – such as calling a cell number or playing the “temporarily not in service” recording).
Any suggestions on how to go about doing that? Maybe a custom extension in extensions_custom.conf? Is that the best way?