Loading...
Loading...
Provisions SIP trunks, endpoints, ACLs, credential lists, and phone numbers via the Sinch Elastic SIP Trunking REST API. Use when the user needs SIP connectivity, trunk provisioning, inbound/outbound PSTN voice routing, PBX integration, or SIP-to-PSTN bridging.
npx skill4agent add sinch/skills sinch-elastic-sip-trunkingUser wants EST →
├─ Outbound only
│ ├─ Static IPs → Workflow A (Trunk + ACL)
│ └─ Dynamic IPs → Workflow E (Trunk + Credential List / Digest Auth)
├─ Inbound only
│ ├─ Static IP → Workflow B (Trunk + Static Endpoint + Phone Number)
│ └─ Dynamic IP → Workflow D (Trunk + Credential List + Registered Endpoint + Phone Number)
└─ Both → Workflow C (Trunk + ACL/Creds + Endpoint + Phone Number)Create TrunkCreate ACL/CredentialsLink to TrunkAssign Phone NumbersCreate Endpointtrunk.pstn.sinch.com{your-hostname}.pstn.sinch.compriority: 1priority: 100null| Language | Package | Install |
|---|---|---|
| Node.js | | |
| Python | | |
| Java | | Maven dependency |
| .NET | | |
curl -X POST "https://elastic-trunking.api.sinch.com/v1/projects/YOUR_PROJECT_ID/trunks" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "my-trunk", "hostName": "my-trunk"}'sipTrunkIdhostName{hostName}.pstn.sinch.comhostName203.0.113.10/32GET /trunks/{trunkId}/accessControlListsGET /trunks/{trunkId}/endpointsGET /trunks/{trunkId}/phoneNumbersGET /trunks/{trunkId}/accessControlListsGET /trunks/{trunkId}/endpointsGET /trunks/{trunkId}/phoneNumbers{hostname}.pstn.sinch.comGET /trunks/{trunkId}/endpointsGET /trunks/{trunkId}/phoneNumbersGET /trunks/{trunkId}/credentialLists| Header | Value | Notes |
|---|---|---|
| | Must be your trunk domain. Wrong domain → 403. Use E.164 format. |
| | Destination in E.164 + your trunk domain. In most cases, same as Request-URI. |
| | Destination in E.164 + your trunk domain. In most cases, same as To. |
/32/24updateCountryPermissionsprojectIdFrom{hostname}.pstn.sinch.com