Emergency calling and dispatchable locations
When someone dials an emergency number, the people who respond need to know where the caller is, down to the building, floor and room. MonoPbx keeps a dispatchable location for every phone and uses it in two ways:
- Notifications. The emergency notifications (e-mail, the alert message in the chat room, the
call.emergencyevent and its webhooks) show the caller's location, for exampleHQ floor 3: 100 Main St, Floor 3, Room 301, Austin TX 78701, US. - The call itself. For a trunk whose carrier supports it, the emergency call carries the location to the carrier (see Sending the location to the carrier).
Emergency numbers, their routes and their notifications are set under Numbers and trunks, Emergency numbers (see Trunks and routing). Locations are set on their own page, next to Sites.
How emergency calls must be handled depends on the rules of each country and on your carrier. MonoPbx gives you the tools; you are responsible for configuring and testing them for every site where phones are used. This page is not legal advice.
Dialling the emergency number
Users dial the emergency number directly (for example 911), with no outside-line prefix. Phones that are used to dialling a prefix first (9911) and phones that add a send key (911#) still reach it. An emergency call is never blocked by calling permissions, call limits or a busy extension.
Locations
Open People and devices, Sites, then the Emergency locations tab (/admin/emergency-locations), or use the Emergency locations button on the Sites page. You need dial_plans:read to see the page and dial_plans:write to change it.
A location belongs to a site and holds:
| Field | Example |
|---|---|
| Name | HQ floor 3 east (unique in the company) |
| Address | Country, state or region, city, street, house number, postal code |
| Inside the building | Building, floor, unit, room, seat or desk, and a free note (Reception desk) |
| Networks | The networks (subnets) whose phones are at this location, for example 10.1.3.0/24 |
| Site's own location | The location every phone of the site falls back to (one per site) |
Give at least the country and a street (or a house number, place name, landmark or note). The address fields follow the standard civic address format that emergency networks use, so they reach the carrier exactly as you type them.
Which location a call gets
MonoPbx picks the caller's location at the moment of the call, in this order:
- Network. The phone's address is inside the networks of a location (the most specific network wins). This keeps desk phones right when they move between floors. When the PBX sees your office through a router, a phone's own local address counts only when the call comes from the same site's network, so a home network that happens to use the same addresses never takes the office's location.
- The person's own address, for apps. When someone set their own address (see Setting your own address), it is used before the address an administrator assigned: it is where they say they are right now, which is more current than a standing assignment.
- User location, for apps. The mobile, desktop and browser apps move with their user, so an administrator's assigned location for the user is used next.
- Phone location. The location set for the phone itself.
- Site location. The site's own location: the phone's site, otherwise the user's site.
If none applies, the call is still routed exactly as before, and the notifications say that no location is set.
Setting the location of a phone or a user
On the Emergency locations page:
- Assign sets the location of a phone, or the location of a user's apps.
- Phones without a location lists every phone that has no phone location, no user location (for apps) and no site location. Set one from the list. A network of a location may still find a location when such a phone calls, but a fixed location is the safer choice.
A phone with a MAC address (a provisioned desk phone) always counts as a desk phone, so the user's location does not cover it.
Setting your own address
Anyone can tell MonoPbx where they are right now, for their own apps, without needing an administrator: GET and PUT /api/v1/me/emergency-location (see the API reference). This is for someone who is not where an administrator assigned them, such as working from home or travelling, and it never changes anyone else's call. A console or app page for this is on its way; today it is reached through the API, for example from a script or a tool your administrator sets up for you.
Clear it (send null) once you are back at a place your administrator already described, so a stale address does not outlast you.
Sending the location to the carrier
Open the trunk under Numbers and trunks, Trunks, and turn on Send the caller's location on emergency calls. Emergency calls over that trunk then carry:
- the caller's location as a PIDF-LO document (the standard location format of emergency networks), in the call request next to the media description, with a
Geolocationheader that points at it; - the callback number in
P-Asserted-Identity(the emergency caller ID of the emergency number, as before).
Turn it on only when your carrier confirms it accepts location by value on emergency calls: a carrier that does not support it may refuse the call. The setting is off by default, and trunks without it get emergency calls exactly as before. Other calls never carry a location.
After you set it up, place a test call the way your carrier and your local emergency service tell you to, and check that the location they receive is right.
Limits
- The location is only as good as what you enter. Review it when people or phones move, and when you add networks.
- Apps used away from the office report the person's own address when they set one (see Setting your own address), otherwise the location an administrator assigned. Ask people who work from home or travel to keep their own address up to date, or to call from a mobile network when they can.
- Calls cannot be placed when the PBX, the office network or the internet connection is down.
With MonoPbx Voice, US numbers also need an emergency address registered with the service; see Emergency calls with MonoPbx Voice.