set_forwarding
Replace all call forwardings for a phoneline, including timeout routing. Pass an empty list to remove every forwarding and view the before/after state.
Instructions
CHANGES THE SIPGATE ACCOUNT: replace all forwardings for a phoneline, including timeout routing. Pass an empty forwardings array to delete all forwardings. Reads and returns 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": {
"user_id": "<user_id>",
"phoneline_id": "<phoneline_id>",
"forwardings": "<forwardings>"
},
"name": "set_forwarding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Owner user ID, for example w0 | |
| forwardings | Yes | Complete replacement list; [] removes every forwarding | |
| phoneline_id | Yes | Phoneline ID, for example p0 |