Hi,<div><br></div><div>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. </div>
<div><br></div><div>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.</div><div><br></div><div><div>[providerA]</div>
<div>type=peer</div><div>qualify=yes</div><div>context=provider_a</div><div>host=1.2.3.4</div><div>disallow=all ; First disallow all codecs</div><div>allow=ulaw ; Allow codecs in order of preference</div><div>fromuser=</div>
<div>dtmfmode=rfc2833</div><div>fromdomain=provider_a</div></div><div><br></div><div>Richard</div>