set_number_routing
Route a phone number to a specified sipgate endpoint, such as a phoneline, and retrieve the updated routing state.
Instructions
CHANGES THE SIPGATE ACCOUNT: route a phone number to a sipgate endpoint ID (for example a phoneline). Reads and returns the number's before/after state.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"number_id": "<number_id>",
"endpoint_id": "<endpoint_id>"
},
"name": "set_number_routing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number_id | Yes | Phone-number ID returned by list_numbers | |
| endpoint_id | Yes | Destination endpoint ID accepted by sipgate, for example p0 |