SipRouting Service (preview:2024-11-15)

2025/02/14 • 3 new methods

SipRouting_Get (new)
Description Gets SIP configuration for resource.
Reference Link ¶

⚼ Request

GET:  /sip
{
api-version: string ,
expand: string ,
}

⚐ Response (200)

{
domains: object ,
trunks: object ,
routes:
[
{
description: string ,
name: string ,
numberPattern: string ,
trunks:
[
string ,
]
,
callerIdOverride: string ,
}
,
]
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
,
}
SipRouting_Update (new)
Description Updates SIP configuration for resource.
Reference Link ¶

⚼ Request

PATCH:  /sip
{
api-version: string ,
body:
{
domains: object ,
trunks: object ,
routes:
[
{
description: string ,
name: string ,
numberPattern: string ,
trunks:
[
string ,
]
,
callerIdOverride: string ,
}
,
]
,
}
,
}

⚐ Response (200)

{
domains: object ,
trunks: object ,
routes:
[
{
description: string ,
name: string ,
numberPattern: string ,
trunks:
[
string ,
]
,
callerIdOverride: string ,
}
,
]
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
,
}
SipRouting_TestRoutesWithNumber (new)
Description Gets the list of routes matching the target phone number, ordered by priority.
Reference Link ¶

⚼ Request

POST:  /sip:testRoutesWithNumber
{
targetPhoneNumber: string ,
api-version: string ,
sipConfiguration:
{
domains: object ,
trunks: object ,
routes:
[
{
description: string ,
name: string ,
numberPattern: string ,
trunks:
[
string ,
]
,
callerIdOverride: string ,
}
,
]
,
}
,
}

⚐ Response (200)

{
matchingRoutes:
[
{
description: string ,
name: string ,
numberPattern: string ,
trunks:
[
string ,
]
,
callerIdOverride: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}