Assign an Inbound Processing Region to a SIP Trunk

POST /v2/Trunks/{SipTrunkDomain}

Assign an Inbound Processing Region to a SIP Trunk

Path parameters

  • SipTrunkDomain string Required

    The absolute URL of the SIP Trunk

application/x-www-form-urlencoded

Body

  • VoiceRegion string

    The Inbound Processing Region used for this SIP Trunk for voice

  • FriendlyName string

    A human readable description of this resource, up to 64 characters.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • sip_trunk_domain string | null

      The absolute URL of the SIP Trunk

    • url string(uri) | null

      The absolute URL of the resource.

    • sid string | null

      A 34 character string that uniquely identifies the Inbound Processing Region assignments for this SIP Trunk.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^QQ[0-9a-fA-F]{32}$.

    • account_sid string | null

      The unique SID identifier of the Account.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • friendly_name string | null

      A human readable description of the Inbound Processing Region assignments for this SIP Trunk, up to 64 characters.

    • voice_region string | null

      The Inbound Processing Region used for this SIP Trunk for voice.

    • date_created string(date-time) | null

      The date that this SIP Trunk was assigned an Inbound Processing Region, given in ISO 8601 format.

    • date_updated string(date-time) | null

      The date that the Inbound Processing Region was updated for this SIP Trunk, given in ISO 8601 format.

POST /v2/Trunks/{SipTrunkDomain}
curl \
 --request POST 'https://routes.twilio.com/v2/Trunks/{SipTrunkDomain}' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'VoiceRegion=au1&FriendlyName=friendly_name'
Request example
{"VoiceRegion"=>"au1", "FriendlyName"=>"friendly_name"}
Response examples (200)
{
  "sid": "QQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://routes.twilio.com/v2/Trunks/test.pstn.twilio.com",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "date_created": "2020-08-07T22:29:24Z",
  "date_updated": "2020-08-07T22:29:24Z",
  "voice_region": "au1",
  "friendly_name": "friendly_name",
  "sip_trunk_domain": "test.pstn.twilio.com"
}