How do you set up Asterisk to allow SIP call requests from specific IP addresses? We have no control over what account (From: header) is used. We want to be able to allow calls based on the IP address the INVITE comes from, not the account. Is there a way to do that?
> want to be able to allow calls based on the IP address the INVITE comes > from, not the account. Is there a way to do that?In iaxy.conf this looks like this permit=0.0.0.0/0.0.0.0 It may be identical in sip.conf (or not!)
> permit=0.0.0.0/0.0.0.0Obviously, the above permits all... Needs to be adapted
> How do you set up Asterisk to allow SIP call requests from specific IP > addresses? We have no control over what account (From: header) is used. We > want to be able to allow calls based on the IP address the INVITE comes > from, not the account. Is there a way to do that?Something like this in sip.conf? [3000] type=friend canreinvite=no dtmfmode=inband context=from-sip disallow=all allow=ulaw deny=0.0.0.0/0.0.0.0 permit=1.3.8.129/255.255.255.0 Adjust the parameters as needed to fit your environment / needs.