channels
voice
calls
sip-trunks
sip-trunk-management

Create SIP trunk

Create a SIP trunk. Fields not sent in request body will take default values. This operation is asynchronous. The SIP trunk will be created in the background.

post/calls/1/sip-trunks

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic
    • or OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token

Request body

type'STATIC' | 'REGISTERED' | 'PROVIDER' | 'AUTHENTICATED'

SIP trunk type.

namestring required

SIP trunk name.

location'SAO_PAULO' | 'BOGOTA' | 'FRANKFURT' | 'SWEDEN' | 'JOHANNESBURG' | 'NEW_YORK' | 'PORTLAND' | 'MOSCOW' | 'SINGAPORE' | 'ISTANBUL' | 'KUALA_LUMPUR'

SIP trunk location.

internationalCallsAllowedboolean

Indicates whether international calls should be allowed. Calls between different countries are considered international.

channelLimitinteger required

Maximum number of concurrent channels.

Example request

{
  "billingPackage": {
    "packageType": "METERED",
    "countryCode": "USA"
  }
}

Response

Create SIP trunk request accepted.

idstring

SIP trunk ID.

type'STATIC' | 'REGISTERED' | 'PROVIDER' | 'AUTHENTICATED'

SIP trunk type.

namestring

SIP trunk name.

location'SAO_PAULO' | 'BOGOTA' | 'FRANKFURT' | 'SWEDEN' | 'JOHANNESBURG' | 'NEW_YORK' | 'PORTLAND' | 'MOSCOW' | 'SINGAPORE' | 'ISTANBUL' | 'KUALA_LUMPUR'

SIP trunk location.

internationalCallsAllowedboolean

Indicates whether international calls should be allowed. Calls between different countries are considered international.

channelLimitinteger

Maximum number of concurrent channels.

Example response

{
  "billingPackage": {
    "packageType": "METERED",
    "countryCode": "USA"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.