911 Routing Based On IP Address or User Group?

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:

  1. Determine the local IP address of the phone.
  2. Set the proper CID for the call. (For example, 192.168.10.xx=8881230001. 192.168.20.xx=8881230002)
  3. 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)
  4. If no CID is found, set the “default CID” and trigger an email to IT support to check it out
  5. Set the proper email address(s) to be notified based on IP address or extension range
  6. MacroExit()

See some links: