[Freeswitch-users] map inbound calls to a gateway based on IP

Richard Zheng rzheng at gmail.com
Sun Sep 9 11:01:07 MSD 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120908/573bc3cf/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list