Skip to main content
Version: /v2

Fetch One Outbound SIP Gateway - API

Fetches the details of a specific outbound SIP gateway by its gatewayId for the authenticated user.

HTTP method and endpoint

GET

|

https://api.videosdk.live/v2/sip/outbound-gateways/{gatewayId}
Headers Parameters

values : YOUR_TOKEN_WITHOUT_ANY_PREFIX

This will be a JWT token generate using VideoSDK ApiKey and Secret.

Note that the token will not include any prefix such as "Basic " or "Bearer ". Just pass a token as value.

You can generate a new token by refering this Guide: Generate Auth token

Parameters
REQUIRED
The unique identifier of the outbound SIP gateway.
Response Parameters
Unique identifier of the outbound SIP gateway.
Name of the outbound SIP gateway.
SIP address/URI of the outbound gateway.
Array of outbound numbers associated with this gateway.
List of SIP addresses allowed to use this gateway.
List of phone numbers allowed to use this gateway.
Media encryption type (e.g., SRTP, NONE).
Transport protocol (e.g., UDP, TLS, TCP).
Boolean indicating if call recording is enabled.
Custom tags associated with the gateway.
Authentication credentials (username & password).
Geographic region for this outbound gateway.
Custom metadata key-value pairs.
Boolean indicating if noise cancellation is enabled.
GET
|
https://api.videosdk.live/v2/sip/outbound-gateways/{gatewayId}
import fetch from 'node-fetch';
const options = {
method: "GET",
headers: {
"Authorization": "$YOUR_TOKEN",
},
};
const url= `https://api.videosdk.live/v2/sip/outbound-gateways/{gatewayId}`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"id": "gateway_out_123456789",
"name": "Twilio Outbound Gateway",
"address": "sip:outbound.twilio.com",
"numbers": [
"+14150001111"
],
"allowedAddresses": [
"sip:trusted.partner.com"
],
"allowedNumbers": [
"+14159999999"
],
"mediaEncryption": "disable",
"transport": "udp",
"record": true,
"tags": [
"production"
],
"auth": {
"username": "outbound_user",
"password": "••••••••"
},
"geoRegion": "in001",
"metadata": {
"env": "production"
},
"noiseCancellation": true
}

Got a Question? Ask us on discord