Bridging calls to other server
Good afternoon. The situation I'm facing is this: I have a server that has 2 network interfaces (eth0 and eth1), the former with an external static IP set, and the ladder with a internal IP set. I have one more server on my private network that bridges calls to my gsm gateway (which means it's set with a internal IP as well), and I have a VoIP account to bridge other calls. The problem I'm facing is: when I try to bridge a call to my gateway, in my private network, the IP freeswitch is sending is the external IP, so the call is denied by my gateway. With the VoIP I don't have any problem, since the IP external meets my voip's external IP. Just to give you an example, it's like this. Main Server (eth0: 192.168.1.50, eth1: 123.123.123.123) Main Server bridges calls to Gateway (192.168.1.255). The gateway recieves an request coming from 123.123.123.123, and it's set to decline external IP, so the call gets a forbidden signal. Main Server bridges calls to VoIP provider(177.177.177.177). VoIP accepts my calls, since the request it receives is coming from the external IP. I need Freeswitch to send the call to the gateway using the internal IP and voip using external IP. I use asterisk, and i set a parameter brindaddr=0.0.0.0 to accept request coming from both internal and external IPs. All of my asterisk configurations work fine. Thanks.
Hi, I think that splitting internal and external VoIP traffic with sofia profiles would solve your problem. I.e. external sofia profile with external IP address and external VoIP gateways (ITSP) internal sofia profile with internal IP address and gsm gateway definition. On Wed, Sep 28, 2016 at 9:05 PM Caio Assis <caioebassis@hotmail.com> wrote:
Good afternoon.
The situation I'm facing is this: I have a server that has 2 network interfaces (eth0 and eth1), the former with an external static IP set, and the ladder with a internal IP set. I have one more server on my private network that bridges calls to my gsm gateway (which means it's set with a internal IP as well), and I have a VoIP account to bridge other calls. The problem I'm facing is: when I try to bridge a call to my gateway, in my private network, the IP freeswitch is sending is the external IP, so the call is denied by my gateway. With the VoIP I don't have any problem, since the IP external meets my voip's external IP. Just to give you an example, it's like this.
Main Server (eth0: 192.168.1.50, eth1: 123.123.123.123)
Main Server bridges calls to Gateway (192.168.1.255). The gateway recieves an request coming from 123.123.123.123, and it's set to decline external IP, so the call gets a forbidden signal.
Main Server bridges calls to VoIP provider(177.177.177.177). VoIP accepts my calls, since the request it receives is coming from the external IP.
I need Freeswitch to send the call to the gateway using the internal IP and voip using external IP. I use asterisk, and i set a parameter brindaddr=0.0.0.0 to accept request coming from both internal and external IPs. All of my asterisk configurations work fine.
Thanks. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Vladyslav Zakhozhai email: v.zakhozhai@gmail.com tel.: +380(93) 757-21-61
On 'Main Server' you want to bind the internal profile to eth0's IP and the external profile to eth1's IP. That's the sip-ip rtp-ip ext-sip-ip ext-rtp-ip settings. The IP the call is sent from depends which profile you're bridging through, you'd want to bridge to sofia/internal/12345@192.168.1.255. Right now it sounds like you're using the external profile instead. If you use a sofia gateway you'd bridge to sofia/gateway/mygsmgateway/12345 and the profile it would use is the one the gateway is configured under. You would use the external profile to communicate with your VoIP provider. In FreeSWITCH it's not possible by design to bind to 0.0.0.0, instead you configure a different profile for each IP/port you want to listen on. -Steve On 28 September 2016 at 19:03, Caio Assis <caioebassis@hotmail.com> wrote:
Good afternoon.
The situation I'm facing is this: I have a server that has 2 network interfaces (eth0 and eth1), the former with an external static IP set, and the ladder with a internal IP set. I have one more server on my private network that bridges calls to my gsm gateway (which means it's set with a internal IP as well), and I have a VoIP account to bridge other calls. The problem I'm facing is: when I try to bridge a call to my gateway, in my private network, the IP freeswitch is sending is the external IP, so the call is denied by my gateway. With the VoIP I don't have any problem, since the IP external meets my voip's external IP. Just to give you an example, it's like this.
Main Server (eth0: 192.168.1.50, eth1: 123.123.123.123)
Main Server bridges calls to Gateway (192.168.1.255). The gateway recieves an request coming from 123.123.123.123, and it's set to decline external IP, so the call gets a forbidden signal.
Main Server bridges calls to VoIP provider(177.177.177.177). VoIP accepts my calls, since the request it receives is coming from the external IP.
I need Freeswitch to send the call to the gateway using the internal IP and voip using external IP. I use asterisk, and i set a parameter brindaddr=0.0.0.0 to accept request coming from both internal and external IPs. All of my asterisk configurations work fine.
Thanks.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Let me see if I understood. Do I have to create an external profile for VoIP and an internal profile for gateway? Because the way I'm doing now is external profile for both. ________________________________ From: freeswitch-users-bounces@lists.freeswitch.org <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Steven Ayre <steveayre@gmail.com> Sent: Monday, October 3, 2016 9:38 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Bridging calls to other server On 'Main Server' you want to bind the internal profile to eth0's IP and the external profile to eth1's IP. That's the sip-ip rtp-ip ext-sip-ip ext-rtp-ip settings. The IP the call is sent from depends which profile you're bridging through, you'd want to bridge to sofia/internal/12345@192.168.1.255<mailto:12345@192.168.1.255>. Right now it sounds like you're using the external profile instead. If you use a sofia gateway you'd bridge to sofia/gateway/mygsmgateway/12345 and the profile it would use is the one the gateway is configured under. You would use the external profile to communicate with your VoIP provider. In FreeSWITCH it's not possible by design to bind to 0.0.0.0, instead you configure a different profile for each IP/port you want to listen on. -Steve On 28 September 2016 at 19:03, Caio Assis <caioebassis@hotmail.com<mailto:caioebassis@hotmail.com>> wrote: Good afternoon. The situation I'm facing is this: I have a server that has 2 network interfaces (eth0 and eth1), the former with an external static IP set, and the ladder with a internal IP set. I have one more server on my private network that bridges calls to my gsm gateway (which means it's set with a internal IP as well), and I have a VoIP account to bridge other calls. The problem I'm facing is: when I try to bridge a call to my gateway, in my private network, the IP freeswitch is sending is the external IP, so the call is denied by my gateway. With the VoIP I don't have any problem, since the IP external meets my voip's external IP. Just to give you an example, it's like this. Main Server (eth0: 192.168.1.50, eth1: 123.123.123.123) Main Server bridges calls to Gateway (192.168.1.255). The gateway recieves an request coming from 123.123.123.123, and it's set to decline external IP, so the call gets a forbidden signal. Main Server bridges calls to VoIP provider(177.177.177.177). VoIP accepts my calls, since the request it receives is coming from the external IP. I need Freeswitch to send the call to the gateway using the internal IP and voip using external IP. I use asterisk, and i set a parameter brindaddr=0.0.0.0 to accept request coming from both internal and external IPs. All of my asterisk configurations work fine. Thanks. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto: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 (3)
-
Caio Assis
-
Steven Ayre
-
Vladyslav Zakhozhai