@@ -13,7 +13,7 @@ Creating a Sip Domain
13
13
14
14
The :class: `Domains ` resource allows you to create a new domain. To
15
15
create a new domain, you'll need to choose a unique domain that lives
16
- under sip.twilio.com. For example, doug .sip.twilio.com.
16
+ under sip.twilio.com. For example, dunder-mifflin-scranton .sip.twilio.com.
17
17
18
18
.. code-block :: python
19
19
@@ -25,9 +25,9 @@ under sip.twilio.com. For example, doug.sip.twilio.com.
25
25
client = TwilioRestClient(account_sid, auth_token)
26
26
27
27
domain = client.sip.domains.create(
28
- friendly_name = " Sam's Domain" ,
28
+ friendly_name = " The Office Domain" ,
29
29
voice_url = " http://example.com/voice" ,
30
- domain_name = " sam .sip.twilio.com" ,
30
+ domain_name = " dunder-mifflin-scranton .sip.twilio.com" ,
31
31
)
32
32
print domain.sid
33
33
@@ -36,7 +36,7 @@ Creating a new IpAccessControlList
36
36
37
37
To control access to your new domain, you'll need to explicitly grant access
38
38
to individual ip addresses. To do this, you'll first need to create an
39
- :class: `IpAccessControlList ` to hold the ip addresses you wish to allow.
39
+ :class: `IpAccessControlList ` to hold the ip addresses you wish to allow.
40
40
41
41
.. code-block :: python
42
42
@@ -48,7 +48,7 @@ to individual ip addresses. To do this, you'll first need to create an
48
48
client = TwilioRestClient(account_sid, auth_token)
49
49
50
50
ip_acl = client.sip.ip_access_control_lists.create(
51
- friendly_name = " My IpAccessControlList" ,
51
+ friendly_name = " The Office IpAccessControlList" ,
52
52
)
53
53
print ip_acl.sid
54
54
@@ -69,7 +69,7 @@ Now it's time to add an :class:`IpAddress` to your new :class:`IpAccessControlLi
69
69
ip_address = client.sip.ip_addresses(
70
70
" AL456" , # IpAccessControlList sid
71
71
).create(
72
- friendly_name = " Sam 's Computer" ,
72
+ friendly_name = " Dwight 's Computer" ,
73
73
423B
ip_address = " 192.168.1.42" ,
74
74
)
75
75
print ip_address.sid
0 commit comments