IpAccessControlListMapping resources contain the list of IpAccessControlList resources associated with this domain. IpAccessControlList resources contain the IpAddress resources that describe the IP addresses with access to the SIP Domain.
When an INVITE is received for a SIP Domain, the source IP address must be in one of the mapped lists to be accepted.
The SID of the Account that created the IpAccessControlListMapping resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The date and time in GMT that the resource was created specified in RFC 2822 format.
The date and time in GMT that the resource was last updated specified in RFC 2822 format.
The unique string that that we created to identify the IpAccessControlListMapping resource.
^AL[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json
The SID of the Account that will create the resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the SIP domain that will contain the new resource.
^SD[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
application/x-www-form-urlencoded
The SID of the IpAccessControlList resource to map to the SIP domain.
^AL[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function createSipAuthCallsIpAccessControlListMapping() {11const ipAccessControlListMapping = await client.sip12.domains("SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")13.auth.calls.ipAccessControlListMappings.create({14ipAccessControlListSid: "ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",15});1617console.log(ipAccessControlListMapping.accountSid);18}1920createSipAuthCallsIpAccessControlListMapping();
1{2"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",3"date_created": "Thu, 30 Jul 2015 20:00:00 +0000",4"date_updated": "Thu, 30 Jul 2015 20:00:00 +0000",5"friendly_name": "friendly_name",6"sid": "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"7}
GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json
The SID of the Account that created the IpAccessControlListMapping resource to fetch.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the SIP domain that contains the resource to fetch.
^SD[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to fetch.
^AL[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchSipAuthCallsIpAccessControlListMapping() {11const ipAccessControlListMapping = await client.sip12.domains("SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")13.auth.calls.ipAccessControlListMappings(14"ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"15)16.fetch();1718console.log(ipAccessControlListMapping.accountSid);19}2021fetchSipAuthCallsIpAccessControlListMapping();
1{2"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",3"date_created": "Thu, 30 Jul 2015 20:00:00 +0000",4"date_updated": "Thu, 30 Jul 2015 20:00:00 +0000",5"friendly_name": "friendly_name",6"sid": "ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"7}
GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json
The SID of the Account that created the IpAccessControlListMapping resources to read.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the SIP domain that contains the resources to read.
^SD[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
How many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Maximum: 1000
The page token. This is provided by the API.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function listSipAuthCallsIpAccessControlListMapping() {11const ipAccessControlListMappings = await client.sip12.domains("SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")13.auth.calls.ipAccessControlListMappings.list({ limit: 20 });1415ipAccessControlListMappings.forEach((i) => console.log(i.accountSid));16}1718listSipAuthCallsIpAccessControlListMapping();
1{2"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Auth/Calls/IpAccessControlListMappings.json?PageSize=50&Page=0",3"end": 0,4"previous_page_uri": null,5"contents": [],6"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Auth/Calls/IpAccessControlListMappings.json?PageSize=50&Page=0",7"page_size": 50,8"start": 0,9"next_page_uri": null,10"page": 011}
DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json
The SID of the Account that created the IpAccessControlListMapping resources to delete.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the SIP domain that contains the resources to delete.
^SD[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete.
^AL[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function deleteSipAuthCallsIpAccessControlListMapping() {11await client.sip12.domains("SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")13.auth.calls.ipAccessControlListMappings(14"ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"15)16.remove();17}1819deleteSipAuthCallsIpAccessControlListMapping();