[Asterisk-Users] RE: SIP permit/deny

Kevin P. Fleming kpfleming at digium.com
Fri Dec 23 11:35:47 MST 2005


Douglas Garstang wrote:
> Thanks for that. I can't get my head around how to allow access to specific hosts for specific extensions, while still allowing incoming calls from our PSTN gateway. Our PSTN gateway puts the caller-id in the From: field, as I think it should. Asterisk then fails to match it against any of the users in sip.conf, and therefore allows the call in as a guest and drops it into the context defined in [general]. If it allows calls in this manner for the PSTN gateway, I think it will allow calls from anyone in guest mode, which is bad.

Then define a peer by IP address for your PSTN gateway, so it will 
become a 'known' peer instead of being treated as a guest.

Note that this is _not_ the same as using permit/deny; I am referring to 
putting 'host=x.x.x.x' in the peer definition.



More information about the asterisk-users mailing list