Emergency Handling
------------------

Emergency handling is device-based. It uses the device pool local route
group to handle call routing. When a phone has no Direct Inward Dial (DDI)
or the phone has DDI but it is in a remote location, emergency handling
uses the Site's Emergency number.

The implementation is as follows:

* An Emergency partition is created for each site.
* For Device-Based Routing (DBR), a DeviceDBR CSS is created and for
  Line Based Routing (LBR) an EmerCSS is created. Both CSSs are country
  and site specific and they contains the Emergency partition.
* Emergency Number translation patterns are added to the emergency
  partition when a site dial plan is added. This translation pattern
  leverages the UseOriginatingCSS, prefixes the called number with \**104
  and the calling number is prefixed with \*1\*LRID* to uniquely identify
  the calling site.
* An Emergency route pattern matching \**104 is added to the emergency
  partition with the route list set to use the Device Pool Emergency
  Local Route Group.

Emergency Calling

|emergency-calling|


.. |emergency-calling| image:: /src/images/emergency-calling.png