Add a trunk IP ACL entry
trunk_add_ip_aclAdd an IP address to a trunk's ACL and sync it to Kamailio, permitting that source IP to send calls. Requires IP_ACL auth type and step-up MFA.
Instructions
Add an IP/netmask to an owned trunk's ACL and sync it to Kamailio, allowing that source IP to send calls. The trunk's auth_type should include IP_ACL (IP_ACL, EITHER, or BOTH — check with trunk_get). Step-up MFA required. Errors: NO_ACTIVE_CUSTOMER, INVALID_ID, NOT_FOUND, INVALID_PAYLOAD, INTERNAL_ERROR.
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": {
"trunk_id": "<trunk_id>",
"ip": "<ip>"
},
"name": "trunk_add_ip_acl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IPv4 address to allow (e.g. 203.0.113.10) | |
| enabled | No | Whether the entry is active (default true) | |
| netmask | No | CIDR netmask bits, 0-32 (e.g. 32 for a single host) | |
| trunk_id | Yes | Trunk group UUID (find it with trunk_list) | |
| description | No | Free-text label for this ACL entry (e.g. 'HQ PBX') |