With all the ups and downs of the trunk registrations lately I initially set out to write a script to monitor the trunks. Long story short, I ended up finding one written by someone else that works very well (or at least it seems to). I think this will work with any front end with Asterisk, as well as a standalone Asterisk. I currently have it running on an Elastix install.
I can't claim to have anything to do with this script, and please only use it at your own risk. I am a PHP coder and I can't see anything wrong in it ( IE no calling out to a mother ship or setting up a Torrent server ).
The code is here https://raw.github.com/lgaetz/freepbx-t ... _trunk.php and it has pretty good instructions in it. It's all fairly simple, especially if you can get Asterisk running in the first place. What I like about it is in the script there is a bit where it will try and reload the trunks if it finds one down.
Anyway, hope this helps someone, it has eased my guess work if my FPL lines are up or not.
Asterisk Trunk Monitor
-
- Tried and True
- Posts: 330
- Joined: 09/21/2010
- SIP Device Name: PIAF/Mitel/PolyCom/Cisco
- Firmware Version: Asterisk 1.8
- ISP Name: Rogers
- Computer OS: CentOS/Windows2008/Win7/Android
- Router: pfSense/Neoware thin client
- Location: Ottawa
Re: Asterisk Trunk Monitor
I was using something similar, but have it disabled now as the email chatter was getting annoying. I've just been checking my logs regularly to see how FPL has been doing. I must say, mine's been good compared to what people have been reporting.
-
- Just Passing Thru
- Posts: 18
- Joined: 06/01/2010
- SIP Device Name: Linksys PAP2T-NA
- ISP Name: Teksavvy
- Computer OS: Windows 7
Re: Asterisk Trunk Monitor
Awesome, thanks. I am using this script for a week and no e-mail notifications yet, which is a good sign!