Class: DomainContext

DomainContext(version, accountSid, sid)

new DomainContext(version, accountSid, sid)

Initialize the DomainContext
Parameters:
Name Type Description
version V2010 Version of the resource
accountSid sid The SID of the Account that created the resource to fetch
sid sid The unique string that identifies the resource
Properties:
Name Type Description
ipAccessControlListMappings Twilio.Api.V2010.AccountContext.SipContext.DomainContext.IpAccessControlListMappingList ipAccessControlListMappings resource
credentialListMappings Twilio.Api.V2010.AccountContext.SipContext.DomainContext.CredentialListMappingList credentialListMappings resource
auth Twilio.Api.V2010.AccountContext.SipContext.DomainContext.AuthTypesList auth resource
Source:

Classes

AuthTypesList
CredentialListMappingContext
CredentialListMappingInstance
CredentialListMappingList
CredentialListMappingPage
IpAccessControlListMappingContext
IpAccessControlListMappingInstance
IpAccessControlListMappingList
IpAccessControlListMappingPage

Methods

auth(sid) → {Twilio.Api.V2010.AccountContext.SipContext.DomainContext.AuthTypesContext}

Parameters:
Name Type Description
sid string sid of instance
Source:
Returns:
Type
Twilio.Api.V2010.AccountContext.SipContext.DomainContext.AuthTypesContext

credentialListMappings(sid) → {Twilio.Api.V2010.AccountContext.SipContext.DomainContext.CredentialListMappingContext}

Parameters:
Name Type Description
sid string sid of instance
Source:
Returns:
Type
Twilio.Api.V2010.AccountContext.SipContext.DomainContext.CredentialListMappingContext

fetch(callbackopt) → {Promise}

fetch a DomainInstance
Parameters:
Name Type Attributes Description
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed DomainInstance
Type
Promise

ipAccessControlListMappings(sid) → {Twilio.Api.V2010.AccountContext.SipContext.DomainContext.IpAccessControlListMappingContext}

Parameters:
Name Type Description
sid string sid of instance
Source:
Returns:
Type
Twilio.Api.V2010.AccountContext.SipContext.DomainContext.IpAccessControlListMappingContext

remove(callbackopt) → {Promise}

remove a DomainInstance
Parameters:
Name Type Attributes Description
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed DomainInstance
Type
Promise

toJSON()

Provide a user-friendly representation
Source:
Returns:
Object

update(optsopt, callbackopt) → {Promise}

update a DomainInstance
Parameters:
Name Type Attributes Description
opts object <optional>
Options for request
Properties
Name Type Attributes Description
friendlyName string <optional>
A string to describe the resource
voiceFallbackMethod string <optional>
The HTTP method used with voice_fallback_url
voiceFallbackUrl string <optional>
The URL we should call when an error occurs in executing TwiML
voiceMethod string <optional>
The HTTP method we should use with voice_url
voiceStatusCallbackMethod string <optional>
The HTTP method we should use to call voice_status_callback_url
voiceStatusCallbackUrl string <optional>
The URL that we should call to pass status updates
voiceUrl string <optional>
The URL we should call when receiving a call
sipRegistration boolean <optional>
Whether SIP registration is allowed
domainName string <optional>
The unique address on Twilio to route SIP traffic
emergencyCallingEnabled boolean <optional>
Whether emergency calling is enabled for the domain.
secure boolean <optional>
Whether secure SIP is enabled for the domain
byocTrunkSid string <optional>
The SID of the BYOC Trunk resource.
emergencyCallerSid string <optional>
Whether an emergency caller sid is configured for the domain.
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed DomainInstance
Type
Promise