[Freeswitch-users] multiple sip gateway configuration
Louie Liu
lliu at multinet.net.au
Wed Jul 23 17:48:26 MSD 2014
Hi,
There is requirement for me to add multiple sip gateways to Freeswitch, the
first sip gateway uses the external.xml in sip profile to route traffic to
Sip provider A. The second sip gateway will use a different UA to route
traffic to Sip provider B. Here are my questions:
1. Do I need to create another external.xml with its own ip and port
which point to the Sip Provider B? if that's case, what do I need to change
in the sip profile external.xml file?
2. What is the rtp-ip and sip-ip in the external.xml file? Should that
be the local IP of my sip server?
3. What do I need to change in my dialplan so that I can reference the
Sip_Provider_B? an example would be good.
External.xml
<param name="sip-port" value="$${external_sip_port}"/>
<param name="dialplan" value="XML"/>
<param name="context" value="public"/>
<param name="rtp-ip" value="$${local_ip_v4}"/>
<param name="sip-ip" value="$${local_ip_v4}"/>
<param name="ext-rtp-ip" value="1.2.3.4"/>
<param name="ext-sip-ip" value="1.2.3.4"/>
External/sip_provider_A.xml
<gateway name="Sip_Provider_A">
<param name="username" value="xxx"/>
<param name="password" value="xxx"/>
<param name="from-user" value="03xxxxxxx"/>
<param name="from-domain" value="x.y.z"/>
<param name="auth-username" value="yyyyy"/>
<param name="realm" value="bwas02.voip.izzz.zz.au"/>
<param name="proxy" value="sipconnect.voip.zzzz.zz.au"/>
<param name="register" value="true"/>
<param name="register-transport" value="udp"/>
<param name="context" value="public"/>
</gateway>
External/sip_provider_B.xml
<gateway name="Sip_Provider_B">
<param name="username" value="aaa"/>
<param name="password" value="bbb"/>
<param name="from-user" value="03xxxxxxx"/>
<param name="from-domain" value="x.y.z"/>
<param name="auth-username" value="yyyyy"/>
<param name="realm" value="bwas02.voip.izzz.zz.au"/>
<param name="proxy" value="sipconnect.voip.zzzz.zz.au"/>
<param name="register" value="true"/>
<param name="register-transport" value="udp"/>
<param name="context" value="public"/>
</gateway>
Cheers,
Louie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140723/86776800/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list