Hi,
I know that this has been discussed many times. Just want to get a clear answer. Is it possible to map inbound calls to a particular gateway based on IP address? Someone seems to claim that it's working. Others say no way. I tried to put context param
in gateway section and no effect. This is in sip_profile gateway config. There were suggestions to just use context public, then send to its own context in dialplan. But that's not all the same.
In asterisk world, the following section is sufficient in sip.conf. The system matches IP based SIP traffic first, then look for users with registration based.
[providerA]
type=peer
qualify=yes
context=provider_a
host=1.2.3.4
disallow=all ; First disallow all codecs
allow=ulaw ; Allow codecs in order of preference
fromuser=
dtmfmode=rfc2833
fromdomain=provider_a
Richard