[asterisk-bugs] [JIRA] (ASTERISK-28697) ACL portion not updating with PJSIP reload
Timothy Vanderaerden (JIRA)
noreply at issues.asterisk.org
Thu Jan 16 06:50:25 CST 2020
Timothy Vanderaerden created ASTERISK-28697:
-----------------------------------------------
Summary: ACL portion not updating with PJSIP reload
Key: ASTERISK-28697
URL: https://issues.asterisk.org/jira/browse/ASTERISK-28697
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Resources/res_pjsip_acl
Affects Versions: 16.7.0
Reporter: Timothy Vanderaerden
Severity: Minor
Changes that have been made to ACL are not being applied after you reload ACL or/and PJSIP. This happens when you use a named ACL that is configured in _acl.conf_ and referenced in _pjsip.conf_. The only way to enforce the updated ACL is to either restart Asterisk or by removing the ACL reference from PJSIP then reload PJSIP, add that reference to PJSIP again and finally reload PJSIP again.
*Configuration:*
{code:title=acl.conf}
[dispatcher-acl]
deny=0.0.0.0/0.0.0.0
permit=dispatcherIP
{code}
{code:title=pjsip.conf}
[dispatcher-acl]
type=acl
acl=dispatcher-acl
{code}
*Steps to reproduce:*
1. Create named ACL in _acl.conf_.
2. Reference ACL in _pjsip.con_.
3. Reload acl
4. pjsip reload
5. Update named ACL
6. Reload acl
7. pjsip reload
_acl show dispatcher-acl_: shows the updated configuration but PJSIP still uses the old ones. You will get the following message:
{noformat}
Incoming SIP message from {thatIpYouUpdated} did not pass ACL test
{noformat}
1. Remove ACL reference from _pjsip.conf_
2. pjsip reload
3.. Add that ACL reference back to _pjsip.conf_
4. pjsip reload
Now the changes from ACL are applied to PJSIP.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list