title: Asterisk ACL Doesn't Seem To Work
body: <p>I am trying to get Asterisk to allow inbound calls (authed purely on IP) on multiple IPs from the same supplier. The only way that works so far is to create a new sip.conf peer entry for each IP.</p>
  
  <p>ACLs look like they should work, but I cannot work out how to use them properly. That or they don't work as I think they do/should.</p>
  
  <p>For example, if I create the following in my sip.conf (a little stripped down) :</p>
  
  <pre><code>[general]
  context=no_default_context_allowed
  allowguest=yes
  ...
  
  [supplier]
  type=peer
  host=1.1.1.1
  context=abc
  </code></pre>
  
  <p>the calls that arrive from 1.1.1.1 go to the context abc as expected. However, if I have a range of IPs (eg 1.1.1.80/28) I would expect something along these lines to work :</p>
  
  <pre><code>[supplier]
  type=peer
  host=dynamic
  acl=supplier-acl
  context=abc
  </code></pre>
  
  <p>with the acl.conf as :</p>
  
  <pre><code>[supplier-acl]
  deny=0.0.0.0/0.0.0.0
  permit=1.1.1.80/28
  </code></pre>
  
  <p>From the Asterisk CLI :</p>
  
  <pre><code>acl show supplier-acl
  
  ACL: supplier-acl
  ----------------------------------------
  0: deny - 0.0.0.0/0.0.0.0
  1: allow - 1.1.1.80/255.255.255.240
  </code></pre>
  
  <p>which looks correct to me, and sip show peers shows A in the ACL column.</p>
  
  <p>In every case, no matter how I try and configure it, the call goes to the default context unless the host contains the precise IP of the inbound call.</p>
  
  <p>I've tried so many config variations I can't honestly remember them all, so what I'm asking is does anyone know how to do this?</p>
  
  <p>EDIT: I'm using Asterisk 13.0.2</p>