メニュー

Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

SIP Domain Resource

A SIP Domain resource describes a custom DNS hostname that can accept SIP traffic for your account. A SIP request to that domain, such as to sip:alice@example.sip.twilio.com, routes to Twilio. Twilio authenticates the request and requests TwiML from the voice_url of the SIP Domain.

SIP Domain Authentication

Your SIP Domain must map at least one of these two authentication methods or requests to it will be blocked.

SipDomain properties

Names in REST API format
account_sid
sid<AC> Not PII

The SID of the Account that created the SipDomain resource.

api_version
文字列 Not PII

The API version used to process the call.

auth_type
文字列 Not PII

The types of authentication you have mapped to your domain. Can be: IP_ACL and CREDENTIAL_LIST. If you have both defined for your domain, both will be returned in a comma delimited string. If auth_type is not defined, the domain will not be able to receive any traffic.

date_created
date_time<rfc2822> Not PII

The date and time in GMT that the resource was created specified in RFC 2822 format.

date_updated
date_time<rfc2822> Not PII

The date and time in GMT that the resource was last updated specified in RFC 2822 format.

domain_name
文字列 Not PII

The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and "-".

friendly_name
文字列 Not PII

The string that you assigned to describe the resource.

sid
sid<SD> Not PII

The unique string that that we created to identify the SipDomain resource.

uri
uri Not PII

The URI of the resource, relative to https://api.twilio.com.

voice_fallback_method
http_method Not PII

The HTTP method we use to call voice_fallback_url. Can be: GET or POST.

voice_fallback_url

The URL that we call when an error occurs while retrieving or executing the TwiML requested from voice_url.

voice_method
http_method Not PII

The HTTP method we use to call voice_url. Can be: GET or POST.

voice_status_callback_method
http_method Not PII

The HTTP method we use to call voice_status_callback_url. Either GET or POST.

voice_status_callback_url

The URL that we call to pass status parameters (such as call ended) to your application.

voice_url

The URL we call using the voice_method when the domain receives a call.

subresource_uris
uri_map Not PII

A list of mapping resources associated with the SIP Domain resource identified by their relative URIs.

sip_registration
boolean Not PII

Whether to allow SIP Endpoints to register with the domain to receive calls.

Create a SipDomain resource

post
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json
パラメーター
Names in None format
domain_name
必須
post 文字列 Not PII

The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and "-".

friendly_name
オプション
post 文字列 Not PII

A descriptive string that you created to describe the resource. It can be up to 64 characters long.

voice_url
オプション
post url PII MTL: 30 DAYS

The URL we should when the domain receives a call.

voice_method
オプション
post http_method Not PII

The HTTP method we should use to call voice_url. Can be: GET or POST.

voice_fallback_url
オプション
post url PII MTL: 30 DAYS

The URL that we should call when an error occurs while retrieving or executing the TwiML from voice_url.

voice_fallback_method
オプション
post http_method Not PII

The HTTP method we should use to call voice_fallback_url. Can be: GET or POST.

voice_status_callback_url
オプション
post url PII MTL: 30 DAYS

The URL that we should call to pass status parameters (such as call ended) to your application.

voice_status_callback_method
オプション
post http_method Not PII

The HTTP method we should use to call voice_status_callback_url. Can be: GET or POST.

sip_registration
オプション
post boolean Not PII

Whether to allow SIP Endpoints to register with the domain to receive calls. Can be true or false. true allows SIP Endpoints to register with the domain to receive calls, false does not.

account_sid
必須
post sid<AC> Not PII

The SID of the Account that will create the resource.

例 1
        
        
        
        

        Fetch a SipDomain resource

        GET
        https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json
        パラメーター
        Names in None format
        account_sid
        必須
        GET sid<AC> Not PII

        The SID of the Account that created the SipDomain resource to fetch.

        sid
        必須
        GET sid<SD> Not PII

        The Twilio-provided string that uniquely identifies the SipDomain resource to fetch.

        例 1
              
              
              
              

              Read multiple SipDomain resources

              GET
              https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json
              パラメーター
              Names in None format
              account_sid
              必須
              GET sid<AC> Not PII

              The SID of the Account that created the SipDomain resources to read.

              例 1
                    
                    
                    
                    

                    Update a SipDomain resource

                    post
                    https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json
                    パラメーター
                    Names in None format
                    account_sid
                    必須
                    post sid<AC> Not PII

                    The SID of the Account that created the SipDomain resource to update.

                    sid
                    必須
                    post sid<SD> Not PII

                    The Twilio-provided string that uniquely identifies the SipDomain resource to update.

                    friendly_name
                    オプション
                    post 文字列 Not PII

                    A descriptive string that you created to describe the resource. It can be up to 64 characters long.

                    voice_fallback_method
                    オプション
                    post http_method Not PII

                    The HTTP method we should use to call voice_fallback_url. Can be: GET or POST.

                    voice_fallback_url
                    オプション
                    post url PII MTL: 30 DAYS

                    The URL that we should call when an error occurs while retrieving or executing the TwiML requested by voice_url.

                    voice_method
                    オプション
                    post http_method Not PII

                    The HTTP method we should use to call voice_url

                    voice_status_callback_method
                    オプション
                    post http_method Not PII

                    The HTTP method we should use to call voice_status_callback_url. Can be: GET or POST.

                    voice_status_callback_url
                    オプション
                    post url PII MTL: 30 DAYS

                    The URL that we should call to pass status parameters (such as call ended) to your application.

                    voice_url
                    オプション
                    post url PII MTL: 30 DAYS

                    The URL we should call when the domain receives a call.

                    sip_registration
                    オプション
                    post boolean Not PII

                    Whether to allow SIP Endpoints to register with the domain to receive calls. Can be true or false. true allows SIP Endpoints to register with the domain to receive calls, false does not.

                    domain_name
                    オプション
                    post 文字列 Not PII

                    The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and "-".

                    例 1
                          
                          
                          
                          

                          Delete a SipDomain resource

                          削除する
                          https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json
                          パラメーター
                          Names in None format
                          account_sid
                          必須
                          削除する sid<AC> Not PII

                          The SID of the Account that created the SipDomain resources to delete.

                          sid
                          必須
                          削除する sid<SD> Not PII

                          The Twilio-provided string that uniquely identifies the SipDomain resource to delete.

                          例 1
                                
                                
                                
                                
                                Rate this page:

                                ヘルプが必要ですか?

                                We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.