- Joined
- Jan 30, 2021
- Messages
- 28
- Reaction score
- 13
This is probably a cray idea but curious if anyone has ever actually done anything similar. Short version is I'd like 3CX to programmatically place a call and if that call fails, send a notification email.
What's happening is that the SIP gateway from our local telco just stops sending/receiving calls. It returns a "server internal error (500)" when this happens but only on outbound calls from 3CX and I get an email notification on it. Inbound calls just get dropped on the telco side, so there's no way to know their gateway has goofed up unless an outbound call is made. The fix is a simple power cycle of their gateway and in 30 seconds, everything is back to normal.
My thought is that if I can have 3CX or some kind of script run every 15 minutes to programmatically dial an outside number and if it errors out, I can get a notification to remotely power cycle their sip gateway which I can do with our Eaton UPS at that office, thus keeping me from a one hour drive and no telling how many missed calls into the office. I'm pretty good with Powershell and we have a network/server monitoring system (OpManager) I can leverage too. Even if I can just get 3CX to make a test call every 15 minutes, I can have OpManager to search the correct 3CX log file for that entry and alert me if needed. I can even have it remotely power cycle that port on the UPS via SNMP and make it 100% automated. The question is how can I programmatically place a call?
Thoughts?
What's happening is that the SIP gateway from our local telco just stops sending/receiving calls. It returns a "server internal error (500)" when this happens but only on outbound calls from 3CX and I get an email notification on it. Inbound calls just get dropped on the telco side, so there's no way to know their gateway has goofed up unless an outbound call is made. The fix is a simple power cycle of their gateway and in 30 seconds, everything is back to normal.
My thought is that if I can have 3CX or some kind of script run every 15 minutes to programmatically dial an outside number and if it errors out, I can get a notification to remotely power cycle their sip gateway which I can do with our Eaton UPS at that office, thus keeping me from a one hour drive and no telling how many missed calls into the office. I'm pretty good with Powershell and we have a network/server monitoring system (OpManager) I can leverage too. Even if I can just get 3CX to make a test call every 15 minutes, I can have OpManager to search the correct 3CX log file for that entry and alert me if needed. I can even have it remotely power cycle that port on the UPS via SNMP and make it 100% automated. The question is how can I programmatically place a call?
Thoughts?