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.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to