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.
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 |