[asterisk-users] Asterisk ACL

A J Stiles asterisk_list at earthshod.co.uk
Mon Apr 2 08:05:34 CDT 2012

On Monday 02 April 2012, Mark Farmer wrote:
> Hi
> We are trying to accept inbound calls from a SIP provider who sends us
> calls from various IP's within a given subnet but they are failing every
> time with the following message on the console.
> chan_sip.c:20006 handle_request_invite: Call from '' to extension
> '<destination-number>' rejected because extension not found

Your ACL must be working fine.  The call is failing at the next stage: there 
isn't a matching extension in the context where the call comes in.

> Our understanding is that the deny line blocks every IP and the following
> permit line then allows calls from the specified subnet but it seems that
> the peer is never matched when a calls hits the server. It's almost as if
> there should be a setting somewhere that we are missing to enable ACL's.
> Can anyone point us in the right direction here please? Is our
> understanding simply not correct?
> In our peer config we have:
> host = dynamic
> type = peer
> deny =
> permit = xxx.xxx.xxx.xxx/
> context = Test
> insecure = invite,port

Ah, so the call comes in in context "Test".  So, look to your dialplan, then. 
Does this context have any extensions defined in it?  Or, if you created your 
dialplan using includes, did you remember to include everything you should 
have?  (And remember that it's case sensitive.)


Answers come *after* questions.

More information about the asterisk-users mailing list