[Freeswitch-users] Multiple network interfaces, can't force freeswitch to use one.

Eugene Shcherbatyuk shcherbatyuk at belrosbank.by
Fri Jun 29 10:32:03 MSD 2012


This problem seems to be at least two-fold:

a) FreeSwitch is to be configured to use proper address
b) Networking infrastructure must route packets from/to proper interface

By the way, after configuring FreeSwitch you can check which addresses
it actually uses with 'lsof -i' cli command.

Given your words 'packets from my sip provider are going to 192.168.1.7'
one can suspect that your network equipment forwards traffic from your
provider to that address. FreeSwitch must listen appropriate address but
it it does not control where provider's packets are sent to. That is
network must be reconfigured as well. This well might be the cause of
the problem if your FreeSwitch is behind NAT and network just routes
packets to the wrong address.

On the other hand, if you _public_ ip address is 192.168.1.7 and it is
configured on FreeSwitch itself then no network reconfiguration needed.
But consider the fact that provider is not aware of your internal
addresses and can not reach any address except for public one.

And finally: a variable 'at the top of my vars.xml' can be overwritten
later with another assignment in configuration files.

On 28/06/12 23:41, Joshua Nankin wrote:
> I have two interfaces on my machine, eth0=10.0.2.15 and
> eth1=192.168.1.7.  I'm trying to get freeswitch to only use eth1.  I've
> put the following at the top of my vars.xml:
>
> <X-PRE-PROCESS cmd="set" data="local_ip_v4=192.168.1.7"/>
>
> However, this does not seem to be working.  When I originate a call, I
> see that the initial invite is originating from 10.0.2.15, but incoming
> packets from my sip provider are going to 192.168.1.7 and are not being
> responded to by freeswitch.  Shouldn't freeswitch be listening on
> 192.168.1.7 and sending packets from there as well?
>
> What am I doing wrong?
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



=========================================================

Данное сообщение и любые вложения («Сообщение») являются конфиденциальными, предназначенными исключительно для адресатов, и могут содержать сведения, охраняемые в соответствии с законодательством. Любое несанкционированное использование или распространение Сообщения запрещено. Электронная почта не гарантирует подлинности Сообщений. Ни ЗАО "АКБ "БЕЛРОСБАНК", ни любые его подразделения или дочерние организации не несут ответственности за Сообщение в случае его подмены, изменения либо фальсификации.

=========================================================

This message and any attachments (the “message”) are confidential, intended solely for the addressees, and may contain legally privileged information. Any unauthorized use or dissemination is prohibited. E-mails are susceptible to alteration. Neither JSC “BELROSBANK” nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.

=========================================================



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