Server SDKs
Build AI agents, control calls, send messages, and more
Create a new SIP gateway resource.
format: "uuid"
1{2 "id": "0823a606-0aff-4c90-9eba-f88ba118fe05",3 "project_id": "bc949800-7b40-43cf-8438-a85facfcbdd1",4 "display_name": "My SIP Gateway",5 "type": "sip_gateway",6 "created_at": "2024-05-06T12:20:00Z",7 "updated_at": "2024-05-06T12:20:00Z",8 "sip_gateway": {9 "id": "cce59cad-104d-4c28-ada4-98cfd102ae09",10 "uri": "user3@domain.com",11 "name": "My SIP Gateway",12 "ciphers": [13 "AEAD_AES_256_GCM_8"14 ],15 "codecs": [16 "OPUS"17 ],18 "encryption": "required"19 }20}
1import { RestClient } from "@signalwire/sdk";23const client = new RestClient({4 project: "your-project-id",5 token: "your-api-token",6 host: "your-space.signalwire.com",7});89const result = await client.fabric.sipGateways.create({10 name: "my-gateway",11 uri: "sip:gw.example.com",12 encryption: "required",13 ciphers: ["AEAD_AES_256_GCM_8"],14 codecs: ["OPUS", "PCMU"],15});16console.log("Created:", result.id);