Add a trunk IP ACL entry
trunk_add_ip_aclAdd an IP/netmask to a trunk's access control list and sync to Kamailio, enabling that source IP to send calls.
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.
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') |