Trunks are used for PBX interaction with third-party SIP servers. Interoperability means routing outgoing calls and accepting incoming calls via DID.
Trunks are authorized in two ways:
If the call came from an address from the "Trunk#super_trunk_ip" list, then, depending on the "any_extension/any_did" parameters, the call immediately goes to the desired extension.
If the address is not in "super_trunk_ip" and the call came to a DID, then it is checked whether this DID belongs to this trunk (according to "network_permission_group_id") and is passed on the extensions only in this case.
Description of the resource fields