- Contents
- Next Steps
Provisioning: Emergency NumbersAG Projects RTC Platforms (Provisioning Guides)
Provisioning: Emergency Numbers
AG Projects RTC Platforms (Provisioning Guides)
This guide describes the provisioning functions for Emergency Numbers.
Emergency calls refer to dialing short numbers usually associated with emergency services like police or fire-brigade (e.g. 112 or 911). When a SIP session is setup to a short number designated as emergency (in the SIP Proxy configuration), a secondary database lookup is performed in the proxy database in the emergency_mapping table. Based on the region attribute provisioned with each SIP account, the final destination number for the emergency service in the region of the account is looked up.
- Define the emergency numbers in /etc/opensips/config/settings.m4
/etc/opensips/config/settings.m4
# Emergency numbers define(`EMERGENCY_NR1', `112') define(`EMERGENCY_NR2', `911') define(`EMERGENCY_NRS', `2')
- Add the local access number for each region to emergency_mapping table, the table has the following structure:
Field | Type |
---|---|
id | int(10) unsigned |
username | varchar(64) |
domain | varchar(64) |
region | varchar(32) |
target | varchar(128) |
change_date | timestamp |
Example:
+----------+-------------+-----------+-------------------------------+---------------------+ | username | domain | region | target | change_date | +----------+-------------+-----------+-------------------------------+---------------------+ | 112 | example.com | 010 | sip:0031141217112@example.com | 2006-05-09 14:33:18 | | 112 | example.com | 0111 | sip:0031141219112@example.com | 2006-05-09 14:33:18 | | 112 | example.com | 0113 | sip:0031141219112@example.com | 2006-05-09 14:33:18 | | 112 | example.com | 0114 | sip:0031141219112@example.com | 2006-05-09 14:33:18 | | 112 | example.com | 0115 | sip:0031141219112@example.com | 2006-05-09 14:33:18 | +----------+-------------+-----------+-------------------------------+---------------------+
- Set the region attribute for each SIP account using Sip → updateAccount()
to match the region column in emergency_mapping table.
Next Steps
Continue by:
- learning about Main Entities used in Provisioning; or
- learning about Provisioning: DNS; or
- learning about Provisioning: ENUM; or
- learning about Provisioning: PSTN; or
- learning about Provisioning: SIP; or
- learning about Provisioning: Trusted Peers; or
- learning about Provisioning: User Notifications; or
- learning about Provisioning: Voicemail; or
- going back to Provisioning Introduction.