Update Inbound SIP Gateway - API
Updates an existing inbound SIP gateway for the authenticated user using its
gatewayId
. Supports partial updates — only the provided fields will be updated.HTTP method and endpoint
PATCH
|
https://api.videosdk.live/v2/sip/inbound-gateways/:gatewayIdHeaders Parameters
REQUIRED
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
REQUIRED
values : application/json
This is usefull for json body parameters, so that VideoSDK servers can understand that the incoming body parameter will be a JSON string.
Parameters
REQUIRED
Unique identifier of the inbound SIP gateway to update.
Body Parameters
OPTIONAL
Updated name of the inbound SIP gateway.
OPTIONAL
Updated array of phone numbers for the gateway.
OPTIONAL
Updated authentication config for the gateway.
OPTIONAL
Updated list of SIP addresses allowed to connect.
OPTIONAL
Updated list of phone numbers allowed to connect.
OPTIONAL
Updated media encryption setting (
disable
, enable
). OPTIONAL
Whether to record calls (
true
/false
). OPTIONAL
Whether to enable noise cancellation.
OPTIONAL
Custom metadata for the gateway.
OPTIONAL
Updated tags for the gateway.
Response Parameters
Unique identifier for the inbound SIP gateway.
Updated name of the SIP gateway.
SIP address/domain of the gateway.
Array of updated phone numbers associated with the gateway.
Updated array of allowed SIP addresses.
Updated array of allowed phone numbers.
Updated media encryption setting.
Indicates if call recording is enabled.
Indicates if noise cancellation is enabled.
Updated tags associated with the gateway.
Updated authentication config.
Geographical region (if configured).
Updated custom metadata.
PATCH
|
https://api.videosdk.live/v2/sip/inbound-gateways/:gatewayId
NodeJS
import fetch from 'node-fetch';
const options = {
method: "PATCH",
headers: {
"Authorization": "$YOUR_TOKEN",
"Content-Type": "application/json",
},
};
const url= `https://api.videosdk.live/v2/sip/inbound-gateways/:gatewayId`;
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
RESPONSE
{
"id": "gateway_123456789",
"name": "Updated Inbound Gateway",
"address": "sip:updated.sipdomain.com",
"numbers": [
"+11234567890",
"+19876543210"
],
"allowedAddresses": [
"sip:trusted.example.com"
],
"allowedNumbers": [
"+14150001111"
],
"mediaEncryption": "disable",
"transport": "udp",
"record": true,
"tags": [
"staging",
"backup"
],
"auth": {
"username": "sip_user",
"password": "••••••••"
},
"geoRegion": "in001",
"metadata": {
"env": "staging"
},
"noiseCancellation": true
}
Got a Question? Ask us on discord