]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Endpoint IP Access Controls 51/2551/15
authorAlexei Gradinari <alex2grad@gmail.com>
Fri, 13 May 2016 16:38:20 +0000 (12:38 -0400)
committerAlexei Gradinari <alex2grad@gmail.com>
Fri, 13 May 2016 16:38:20 +0000 (12:38 -0400)
commit524a30297468dc2bb7627f0dd589bd9e7368c744
tree62390381b2b8ad3d7027bc6bb1c3d5668e12acbb
parent1705c5d2ba8bfbb96e260a26a4d412bb16c60d9d
res_pjsip: Endpoint IP Access Controls

With the old SIP module we can use IP access controls per peer.
PJSIP module missing this feature.

This patch added next configuration Endpoint options:
    "acl" - list of IP ACL section names in acl.conf
    "deny" - List of IP addresses to deny access from
    "permit" - List of IP addresses to permit access from
    "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

This patch also better logging failed request:
    add custom message instead of "No matching endpoint found"
    add SIP method to logging

ASTERISK-25900

Change-Id: I456dea3909d929d413864fb347d28578415ebf02
CHANGES
contrib/ast-db-manage/config/versions/837aa67461fb_add_pjsip_endpoint_ip_access_control_.py [new file with mode: 0644]
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip/pjsip_configuration.c
res/res_pjsip/pjsip_distributor.c