Bind to more than one ethernet interface
Hello, I am trying to run FreeSwitch on a machine which has more than one interface, all of them should be used for SIP. The FreeSwitch binds only to the first one. I tried setting bind_server_ip to either "auto" or 0.0.0.0 but it doesn't help. Any idea what to do? Thanks! _Yehavi:
It not possible to use 0.0.0.0 for on profile. however, you can create more sip profiles for each of your interfaces. Search freeswitch-users archievs then you will find similar topics. 2009/9/24 Yehavi Bourvine <yehavi.bourvine@gmail.com>
Hello,
I am trying to run FreeSwitch on a machine which has more than one interface, all of them should be used for SIP. The FreeSwitch binds only to the first one. I tried setting bind_server_ip to either "auto" or 0.0.0.0 but it doesn't help.
Any idea what to do?
Thanks! _Yehavi:
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
sorry when I said "on profile" I want to say "one profile" 2009/9/24 Seven Du <dujinfang@gmail.com>
It not possible to use 0.0.0.0 for on profile. however, you can create more sip profiles for each of your interfaces. Search freeswitch-users archievs then you will find similar topics.
2009/9/24 Yehavi Bourvine <yehavi.bourvine@gmail.com>
Hello,
I am trying to run FreeSwitch on a machine which has more than one interface, all of them should be used for SIP. The FreeSwitch binds only to the first one. I tried setting bind_server_ip to either "auto" or 0.0.0.0 but it doesn't help.
Any idea what to do?
Thanks! _Yehavi:
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks! __Yehavi: 2009/9/24 Seven Du <dujinfang@gmail.com>
It not possible to use 0.0.0.0 for on profile. however, you can create more sip profiles for each of your interfaces. Search freeswitch-users archievs then you will find similar topics.
2009/9/24 Yehavi Bourvine <yehavi.bourvine@gmail.com>
Hello,
I am trying to run FreeSwitch on a machine which has more than one interface, all of them should be used for SIP. The FreeSwitch binds only to the first one. I tried setting bind_server_ip to either "auto" or 0.0.0.0 but it doesn't help.
Any idea what to do?
Thanks! _Yehavi:
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Wed, Sep 23, 2009 at 10:44 PM, Seven Du <dujinfang@gmail.com> wrote:
It not possible to use 0.0.0.0 for on profile. however, you can create more sip profiles for each of your interfaces. Search freeswitch-users archievs then you will find similar topics.
It sure would be nice to be able to provide a list of IPs in one profile. Seems like I run into that need often. Instead, I end up making two profiles that are mostly the same. Is there a reason why this is the way it is? Regards, Gabe
On Wed, Sep 23, 2009 at 10:22 PM, Gabriel Gunderson <gabe@gundy.org> wrote:
On Wed, Sep 23, 2009 at 10:44 PM, Seven Du <dujinfang@gmail.com> wrote:
It not possible to use 0.0.0.0 for on profile. however, you can create more sip profiles for each of your interfaces. Search freeswitch-users archievs then you will find similar topics.
It sure would be nice to be able to provide a list of IPs in one profile. Seems like I run into that need often. Instead, I end up making two profiles that are mostly the same.
Is there a reason why this is the way it is?
A SIP profile is a user agent. By design it services exactly one IP/Port combo. If you are finding that you need to have multiple IP's or ports in a single SIP profile then that suggests to me that you might be trying to use the wrong tool for the job. What are the scenarios where you feel you need a single profile to handle multiple IP addresses? My guess is that bkw and the gang will have suggestions for an elegant solution that will fit your needs. -MC
if you bind the same profile to more than one ip, all your traffic would come in one ip and out another and cause tremendous confusion. To see a working example of this problem see asterisk https://issues.asterisk.org/view.php?id=2358 (note bkw and mikej contribute to this bug) Here is me reporting a similar issue in IAX (my only negative karma ever on that site) https://issues.asterisk.org/view.php?id=7315 moral of the story is, it's unwise to bind multiple ip to a server interface that uses UDP signalling and the SIP spec requires a UA to have one specific URL On Thu, Sep 24, 2009 at 12:42 PM, Michael Collins <msc@freeswitch.org>wrote:
On Wed, Sep 23, 2009 at 10:22 PM, Gabriel Gunderson <gabe@gundy.org>wrote:
On Wed, Sep 23, 2009 at 10:44 PM, Seven Du <dujinfang@gmail.com> wrote:
It not possible to use 0.0.0.0 for on profile. however, you can create more sip profiles for each of your interfaces. Search freeswitch-users archievs then you will find similar topics.
It sure would be nice to be able to provide a list of IPs in one profile. Seems like I run into that need often. Instead, I end up making two profiles that are mostly the same.
Is there a reason why this is the way it is?
A SIP profile is a user agent. By design it services exactly one IP/Port combo. If you are finding that you need to have multiple IP's or ports in a single SIP profile then that suggests to me that you might be trying to use the wrong tool for the job. What are the scenarios where you feel you need a single profile to handle multiple IP addresses? My guess is that bkw and the gang will have suggestions for an elegant solution that will fit your needs.
-MC
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
On Thu, Sep 24, 2009 at 12:29 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
moral of the story is, it's unwise to bind multiple ip to a server interface that uses UDP signalling and the SIP spec requires a UA to have one specific URL
Yeah, I see that now. I wasn't thinking about it as carefully as I should have been. Thanks for the clarification. Best, Gabe
If I am correct you need to create a sip profile per interface and hardcode/set the IP address of each interface correctly in the SIP RTP fields of the profile. Then you need to set carefully the correct NAT and auth options for each profile /aep -- Stopping junk mailers is good for the environment
Hello,
I am trying to run FreeSwitch on a machine which has more than one interface, all of them should be used for SIP. The FreeSwitch binds only to the first one. I tried setting bind_server_ip to either "auto" or 0.0.0.0 but it doesn't help.
Any idea what to do?
Thanks! _Yehavi: _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (6)
-
Alberto Escudero
-
Anthony Minessale
-
Gabriel Gunderson
-
Michael Collins
-
Seven Du
-
Yehavi Bourvine