I’m still relatively new to FreePBX. I work at a school district with 30+ schools and a few other buildings. Please forgive me if there is an obvious answer to this, but I haven’t found much searching around.
With our current phone system (Alcatel), if someone calls 911 from School A, certain people from School A will get an email, phone call, and pop up saying someone called 911. Same with School B, C, etc.
My questions are:
Is there a way to have this without needing to set up 30+ outbound emergency routes, with a different group of people to be emailed, paged, etc.?
If not, is there a way to route calls based on the phone’s IP address or what user group the extension is (if I make a group for each building) so it will go through the proper building’s route, alerting the right people?
I would do with with a custom dialplan using the macro-dialout-trunk-predial-hook hook and checking if the uses an emergency route.
If true, then do the following:
Determine the local IP address of the phone.
Set the proper CID for the call. (For example, 192.168.10.xx=8881230001. 192.168.20.xx=8881230002)
If for some reason we can’t match the IP address to any CID, then check if the call already has an emergency CID set. (useful for remote home user who you can simply set the emergency CID on the extension level)
If no CID is found, set the “default CID” and trigger an email to IT support to check it out
Set the proper email address(s) to be notified based on IP address or extension range
I know with our (my company’s) provider module we allow management of 911 per extension, or route. Note depending on how your provider is handling it I would imagine you simply set your emergency caller id which is sent when dialing through an emergency route.
You could use the extension’s account code field to store the emergency notification email address and then use the predial hook to watch for 911 calls and use the email address in that field to generate notifications.
I did kind of get that working. I might stick with it based on IP address at this point though. I don’t like when it happens because it makes tracking harder, but occasionally a phone from one school will make its way to another school so that account code might not get updated. (Of course that’s mainly on me, I just have to take the time to make sure the account codes are set correctly and updated as needed)