Multiple network interfaces, can't force freeswitch to use one.
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?
You would want to set the IP address bindings in sofia's profile conf page, not using vars.xml. rtp-ip and sip-ip would probably be your best bet in this case. On Thu, Jun 28, 2012 at 1:41 PM, Joshua Nankin <jnankin@gmail.com> 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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
sip-ip and rtp-ip in both external.xml and internal.xml were set to $${local_ip_v4}. I figured that setting the ip in vars.xml would be enough. I manually set sip-ip and rtp-ip and both of those files, but that still did not solve the problem. Any other ideas? On Thu, Jun 28, 2012 at 3:41 PM, Joshua Nankin <jnankin@gmail.com> 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?
Did you restart the profiles after doing reloadxml? -MC On Thu, Jun 28, 2012 at 2:08 PM, Joshua Nankin <jnankin@gmail.com> wrote:
sip-ip and rtp-ip in both external.xml and internal.xml were set to $${local_ip_v4}. I figured that setting the ip in vars.xml would be enough.
I manually set sip-ip and rtp-ip and both of those files, but that still did not solve the problem.
Any other ideas?
On Thu, Jun 28, 2012 at 3:41 PM, Joshua Nankin <jnankin@gmail.com> 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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I did a sudo /etc/init.d/freeswitch restart. That should be enough correct? On Thu, Jun 28, 2012 at 4:08 PM, Joshua Nankin <jnankin@gmail.com> wrote:
sip-ip and rtp-ip in both external.xml and internal.xml were set to $${local_ip_v4}. I figured that setting the ip in vars.xml would be enough.
I manually set sip-ip and rtp-ip and both of those files, but that still did not solve the problem.
Any other ideas?
On Thu, Jun 28, 2012 at 3:41 PM, Joshua Nankin <jnankin@gmail.com> 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?
More than enough. Type in sofia status to verify your changes did take effect. On Thu, Jun 28, 2012 at 2:36 PM, Joshua Nankin <jnankin@gmail.com> wrote:
I did a sudo /etc/init.d/freeswitch restart. That should be enough correct?
On Thu, Jun 28, 2012 at 4:08 PM, Joshua Nankin <jnankin@gmail.com> wrote:
sip-ip and rtp-ip in both external.xml and internal.xml were set to $${local_ip_v4}. I figured that setting the ip in vars.xml would be enough.
I manually set sip-ip and rtp-ip and both of those files, but that still did not solve the problem.
Any other ideas?
On Thu, Jun 28, 2012 at 3:41 PM, Joshua Nankin <jnankin@gmail.com> 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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Forgot to mention that you enter that in the freeswitch command line prompt (aka via fs_cli) On Thu, Jun 28, 2012 at 2:39 PM, curriegrad2004 <curriegrad2004@gmail.com> wrote:
More than enough. Type in sofia status to verify your changes did take effect.
On Thu, Jun 28, 2012 at 2:36 PM, Joshua Nankin <jnankin@gmail.com> wrote:
I did a sudo /etc/init.d/freeswitch restart. That should be enough correct?
On Thu, Jun 28, 2012 at 4:08 PM, Joshua Nankin <jnankin@gmail.com> wrote:
sip-ip and rtp-ip in both external.xml and internal.xml were set to $${local_ip_v4}. I figured that setting the ip in vars.xml would be enough.
I manually set sip-ip and rtp-ip and both of those files, but that still did not solve the problem.
Any other ideas?
On Thu, Jun 28, 2012 at 3:41 PM, Joshua Nankin <jnankin@gmail.com> 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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Right, but freeswitch is still getting packets to 192.168.1.7, but sending from 10.0.2.15. Not sure if this makes a difference, but this is a Vagrant virtual machine with a bridged interface. The 10.x address is an internal Vagrant ip, but the 192 is from my router DHCP. I've set the external sip and rtp ips to my public IP address, and that IP is what appears for the profile in sofia status. On Thu, Jun 28, 2012 at 4:36 PM, Joshua Nankin <jnankin@gmail.com> wrote:
I did a sudo /etc/init.d/freeswitch restart. That should be enough correct?
On Thu, Jun 28, 2012 at 4:08 PM, Joshua Nankin <jnankin@gmail.com> wrote:
sip-ip and rtp-ip in both external.xml and internal.xml were set to $${local_ip_v4}. I figured that setting the ip in vars.xml would be enough.
I manually set sip-ip and rtp-ip and both of those files, but that still did not solve the problem.
Any other ideas?
On Thu, Jun 28, 2012 at 3:41 PM, Joshua Nankin <jnankin@gmail.com> 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?
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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.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@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. =========================================================
participants (4)
-
curriegrad2004
-
Eugene Shcherbatyuk
-
Joshua Nankin
-
Michael Collins