Multiple Peer IP


A provider has given me a list of multiple IP subnets from where they will send inbound calls to my asterisk server.This counts upto 100s of IP addresses.
How can I configure a peer in sip.conf that has multiple host ip addresses?
I’m wondering what would be the best way to handle this on my side? Can we put subnet in peer IP or anywhere else for the purpose?


I think you will have to use allowguest and be careful with you firewall settings.

You could use function SIPPEER to check the source IP of the incoming request.

That’s likely to be the slowest method.