Emergency Calling for SIP Interfaces API
Twilio’s Emergency Calling for SIP API enables emergency call routing to Public Safety Answering Points (PSAPs) in the US, Canada, and the UK.
Emergency calling is enabled on a per phone number basis. This page outlines the process you should follow to enable or disable emergency calling using Programmable Voice SIP Interfaces. Please ensure that you also read our emergency calling documentation.
Phone numbers are managed through the core Twilio REST API. Check out the IncomingPhoneNumber resource documentation for more information.
Twilio電話番号で緊急通話をオンにする
- 新しい緊急連絡先を作成および有効にする
- Twilio電話番号に緊急連絡先を関連づける
- Twilio電話番号で緊急通話をオンにする
- Twilio電話番号の緊急通話ステータスを確認する
- Enable Emergency Calling on a SIP Domain
Twilio電話番号で緊急通話をオフにする
- Twilio電話番号で緊急通話をオフにする
- Twilio電話番号の緊急通話ステータスを確認する
- Twilio番号から緊急連絡先の関連づけを削除する
- 緊急連絡先を削除する
- Disable Emergency Calling on a SIP Domain
Twilio電話番号における緊急連絡先の変更
- Twilio電話番号で緊急通話をオフにする
- Twilio番号で緊急通話ステータスをチェックし、アクティブでないことを確認する
- Twilio電話番号に新しい緊急連絡先を関連づける
- Twilio電話番号で緊急通話をオンにする
- Twilio番号で緊急通話ステータスをチェックし、アクティブであることを確認する
Add Emergency Caller ID
- Set Emergency Enabled Twilio Phone Number as Emergency Caller ID
アクション
新しい緊急連絡先を作成および有効にする
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Addresses
Create a new Address and validate it for Emergency Calling by setting the EmergencyEnabled
parameter to true
.
レスポンス例
新しい住所は検証プロセスの一環として推奨されることがあります:
<?xml version='1.0' encoding='UTF-8'?> <TwilioResponse> <RestException> <Code>21629</Code> <Message>Failed to validate address. Check the suggested address. | FriendlyName: Twilio, CustomerName: Twilio, Street: 645 HARRISON ST, Locality: SAN FRANCISCO, Region: CA, PostalCode: 94105, IsoCountry: US</Message> <MoreInfo>https://www.twilio.com/docs/errors/21629</MoreInfo> <Status>400</Status> </RestException> </TwilioResponse> }
Twilio電話番号に緊急連絡先を関連づける
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{PhoneNumberSid}
You can disassociate an Emergency Address by updating the the emergency_address_sid
to null
(or undefined
, None
or nil
depending on your programming language).
For curl leave the right side of the =
blank:
curl -X POST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json \ --data-urlencode "EmergencyAddressSid=" \ -u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
Enable and disable Emergency Calling
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{PhoneNumberSid}
Please note that this step must not be combined with the previous one, they must be two separate API calls. You must associate/disassociate and then enable/disable.
Note the EmergencyStatus
parameter will change to Pending Activation
. This process might take up to 5 minutes.
Note the EmergencyStatus
parameter will change to Pending Deactivation
. This process may take up to 5 minutes.
Twilio電話番号の緊急通話ステータスを確認する
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{PhoneNumberSid}
緊急連絡先を削除する
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}
Enable and Disable Emergency Calling on SIP Domain
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{SipDomainSid}
ヘルプが必要ですか?
誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。