SIP Trunking

IP Access Control

Authenticate SIP traffic by allowing source IP addresses.

Authenticate SIP traffic by allowing your PBX's or SBC's source IP addresses. This suits equipment with static IPs and needs no credentials.

How It Works

  1. Add your PBX/SBC IP addresses to the trunk's access control list (ACL)
  2. TryVox accepts SIP traffic from those IPs without digest authentication
  3. On a trunk with secure: true, traffic from an allowed IP is accepted only over TLS

Add an IP

POSThttps://api.tryvox.io/v1/account/{auth_id}/trunks/{trunk_id}/ip-acl

Request Parameters

ParameterTypeRequiredDescription
ip_addressstringyesOne IPv4 or IPv6 address. A /32 (or IPv6 /128) suffix is accepted; wider ranges such as /24 are rejected.
descriptionstringnoNote identifying the entry
enabledbooleannoDefault true

Example Request

curl -X POST https://api.tryvox.io/v1/account/$TRYVOX_AUTH_ID/trunks/$TRUNK_ID/ip-acl \
  -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN \
  -H "Content-Type: application/json" \
  -d '{
    "ip_address": "203.0.113.45",
    "description": "Primary SBC"
  }'

Response

201 Created:

{
  "data": {
    "id": "5d6e7f80-1a2b-4c3d-8e9f-0a1b2c3d4e5f",
    "trunk_id": "4a5b6c7d-8e9f-4a1b-9c2d-3e4f5a6b7c8d",
    "account_id": "TJab12cd34",
    "ip_address": "203.0.113.45",
    "description": "Primary SBC",
    "enabled": true,
    "created_at": "2026-10-30T10:40:00Z",
    "updated_at": "2026-10-30T10:40:00Z"
  }
}

Subnet ranges are not supported: "ip_address": "203.0.113.0/24" returns 400 VALIDATION_FAILED ("ip_address must be a single host; subnet ranges are not supported yet"). Add each host separately.

List, Get, Update, Delete

GET    /v1/account/{auth_id}/trunks/{trunk_id}/ip-acl
GET    /v1/account/{auth_id}/trunks/{trunk_id}/ip-acl/{acl_id}
PUT    /v1/account/{auth_id}/trunks/{trunk_id}/ip-acl/{acl_id}
DELETE /v1/account/{auth_id}/trunks/{trunk_id}/ip-acl/{acl_id}

PUT accepts any of ip_address, description, and enabled.

Account-Level Entries

The same operations exist without a trunk, for entries that belong to the account:

/v1/account/{auth_id}/ip-acl
/v1/account/{auth_id}/ip-acl/{acl_id}

Attach an account-level entry to a trunk with ip_acl_uuid on Update Trunk.

Best Practices

  • Use static IPs — if your PBX has a dynamic IP, use credential authentication instead.
  • Document each entry — use description to record what each IP is.
  • Disable before deleting — set enabled: false to test the effect of removing an entry.
  • Check the trunk — run Test Trunk to confirm your entries reached the SIP edge.

On this page