Trying to automate a fix for an issue I have. I’ve moved my freepbx distro to a cloud based server. When I used to have it on local hardware and my internet would go down, my sip provider would detect the PBX was offline and automatically failover calls to my cell.
Now that the pbx is in the cloud it never goes offline so if my local internet is down calls will just go to voicemail instead of being re-routed to the failover number (as this is a function of the sip provider).
I’m wondering if there is a way (a script perhaps) that I could detect if all the sip peers were offline and forward all inbound calls to an external number?