sip_routing
Creates, updates, deletes, gets or lists a sip_routing resource.
Overview
| Name | sip_routing |
| Type | Resource |
| Id | azure.communication_phone_numbers.sip_routing |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
routes | array | Trunk routes for routing calls. |
trunks | object | SIP trunks for routing calls. Map key is trunk's FQDN (1-249 characters). |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | endpoint | Gets SIP configuration for resource. Gets SIP configuration for resource. | |
update | update | endpoint | Updates SIP configuration for resource. Updates SIP configuration for resource. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | The service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: ) |
SELECT examples
- get
Gets SIP configuration for resource. Gets SIP configuration for resource.
SELECT
routes,
trunks
FROM azure.communication_phone_numbers.sip_routing
WHERE endpoint = '{{ endpoint }}' -- required
;
UPDATE examples
- update
Updates SIP configuration for resource. Updates SIP configuration for resource.
UPDATE azure.communication_phone_numbers.sip_routing
SET
trunks = '{{ trunks }}',
routes = '{{ routes }}'
WHERE
endpoint = '{{ endpoint }}' --required
RETURNING
routes,
trunks;