res_pjsip_acl

Since 12.0.0 Module Configuration Found this useful? Upvote it. ×

SIP ACL module

Last reviewed 2026-04-14

Description

ACL

The ACL module used by res_pjsip. This module is independent of endpoints and operates on all inbound SIP communication using res_pjsip.

There are two main ways of defining your ACL with the options provided. You can use the permit and deny options which act on IP addresses, or the contactpermit and contactdeny options which act on Contact header addresses in incoming REGISTER requests. You can combine the various options to create a mixed ACL.

Additionally, instead of defining an ACL with options, you can reference IP or Contact header ACLs from the file acl.conf by using the acl or contactacl options.

pjsip.conf

[acl]

Access Control List

  • acl - List of IP ACL section names in acl.conf
  • contact_acl - List of Contact ACL section names in acl.conf
  • contact_deny - List of Contact header addresses to deny
  • contact_permit - List of Contact header addresses to permit
  • deny - List of IP addresses to deny access from
  • permit - List of IP addresses to permit access from
  • type - Must be of type 'acl'.
User Notes

Know a tip or gotcha for this topic? Share it below and help others.

Contribute a note

Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.

Moderated before publishing. Email never shown.