FS AWS does not call between mobile phones connected to the same WiFi
Hi, I have an FS server running on an AWS instance and it does not call between mobiles connected to the same WiFi. The call is successful if each of the mobiles is connected to different Wifi or by mobile network (4G). Obviously FS is always in a different network and I use a domain/URL to routing the calls. I also do not see anything strange in the logs. I think that call does not occur because the server does not find the destination number as registered and hangup/abandoned the call by timeout. It always works except when the two mobiles are connected to the same wifi. My current configuration is the next: vars.xml: <X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/> <X-PRE-PROCESS cmd="set" data="external_rtp_ip=host:mydomain.us"/> <X-PRE-PROCESS cmd="set" data="external_sip_ip=host:mydomain.us"/> <!-- Internal SIP Profile --> <X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/> <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/> <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/> <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/> <!-- External SIP Profile --> <X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/> <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/> <X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/> <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/> internal.xml: <param name="apply-nat-acl" value="rfc1918.auto"/> <param name="local-network-acl" value="rfc1918.auto"/> <param name="ext-rtp-ip" value="autonat:$${external_rtp_ip}"/> <param name="ext-sip-ip" value="autonat:$${external_sip_ip}"/> internal-ipv6.xml: <!-- Shouldn't set these on IPv6 --> <!-- <param name="ext-rtp-ip" value="$${external_rtp_ip}"/> --> <!-- <param name="ext-sip-ip" value="$${external_sip_ip}"/> --> external.xml: <param name="local-network-acl" value="rfc1918.auto"/> <param name="ext-rtp-ip" value="autonat:$${external_rtp_ip}"/> <param name="ext-sip-ip" value="autonat:$${external_sip_ip}"/> external-ipv6.xml: <param name="local-network-acl" value="rfc1918.auto"/> <!-- Shouldn't set these on IPv6 --> <!--<param name="ext-rtp-ip" value="auto-nat"/>--> <!--<param name="ext-sip-ip" value="auto-nat"/>--> One call example is "sip:1009@mydomain.us:5080"
On 28 July 2017 at 20:21, Jose David Jurado Alonso <josedavid@zennio.com> wrote:
My current configuration is the next:
vars.xml:
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/> <X-PRE-PROCESS cmd="set" data="external_rtp_ip=host:mydomain.us"/> <X-PRE-PROCESS cmd="set" data="external_sip_ip=host:mydomain.us"/>
try making it: <X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/> <X-PRE-PROCESS cmd="set" data="external_rtp_ip=135.44.55.123"/> <X-PRE-PROCESS cmd="set" data="external_sip_ip=135.44.55.123"/> Stop and start FreeSeWITCH and see if it helps Also, maybe something is blocked by some ALG in the clients' router? Try to connect via TLS... Hope this help, -giovanni
Hi Giovanni, I have tried with the change you mention, changing the domain by the public IP, but it still does not work. Both devices are connected to the same WiFi, on a TP-Link Archer C1200 router, and in the ALG section I do not see the SIP option. By connecting one of the devices to this router and the other to another network, the call is successful. The problem is when the two are connected to the same network (I have tested with several different networks). It's as if FS does not find the destination number and stays waiting. Both devices are correctly registered and can be called or called by any device as long as it is not on the same network. 2017-07-28 18:05 GMT+02:00 Giovanni Maruzzelli <gmaruzz@gmail.com>:
On 28 July 2017 at 20:21, Jose David Jurado Alonso <josedavid@zennio.com> wrote:
My current configuration is the next:
vars.xml:
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/> <X-PRE-PROCESS cmd="set" data="external_rtp_ip=host:mydomain.us"/> <X-PRE-PROCESS cmd="set" data="external_sip_ip=host:mydomain.us"/>
try making it:
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/> <X-PRE-PROCESS cmd="set" data="external_rtp_ip=135.44.55.123"/> <X-PRE-PROCESS cmd="set" data="external_sip_ip=135.44.55.123"/>
Stop and start FreeSeWITCH and see if it helps
Also, maybe something is blocked by some ALG in the clients' router? Try to connect via TLS...
Hope this help,
-giovanni
_________________________________________________________________________ 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
Hello Jose I have same experisnce before Issue may be related to: 1) NAT; 2) buggy ALG; 3) sip client uses permanent RTP port. Try latest linphone with: 1)enabled TLS transport; 2) random port fo RTP. ср, 2 авг. 2017 г., 18:30 Jose David Jurado Alonso <josedavid@zennio.com>:
Hi Giovanni,
I have tried with the change you mention, changing the domain by the public IP, but it still does not work.
Both devices are connected to the same WiFi, on a TP-Link Archer C1200 router, and in the ALG section I do not see the SIP option.
By connecting one of the devices to this router and the other to another network, the call is successful. The problem is when the two are connected to the same network (I have tested with several different networks).
It's as if FS does not find the destination number and stays waiting. Both devices are correctly registered and can be called or called by any device as long as it is not on the same network.
2017-07-28 18:05 GMT+02:00 Giovanni Maruzzelli <gmaruzz@gmail.com>:
On 28 July 2017 at 20:21, Jose David Jurado Alonso <josedavid@zennio.com> wrote:
My current configuration is the next:
vars.xml:
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/> <X-PRE-PROCESS cmd="set" data="external_rtp_ip=host:mydomain.us"/> <X-PRE-PROCESS cmd="set" data="external_sip_ip=host:mydomain.us"/>
try making it:
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/> <X-PRE-PROCESS cmd="set" data="external_rtp_ip=135.44.55.123"/> <X-PRE-PROCESS cmd="set" data="external_sip_ip=135.44.55.123"/>
Stop and start FreeSeWITCH and see if it helps
Also, maybe something is blocked by some ALG in the clients' router? Try to connect via TLS...
Hope this help,
-giovanni
_________________________________________________________________________ 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
_________________________________________________________________________ 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
Hi, Finally, the problem was that the variable "domain", in vars.xml file, was set to the default, ipv4 local, and after changing it by the domain name ( mydomain.us in the example) already works correctly. Thanks! 2017-08-03 8:53 GMT+02:00 Sergey Safarov <s.safarov@gmail.com>:
Hello Jose I have same experisnce before Issue may be related to: 1) NAT; 2) buggy ALG; 3) sip client uses permanent RTP port.
Try latest linphone with: 1)enabled TLS transport; 2) random port fo RTP.
ср, 2 авг. 2017 г., 18:30 Jose David Jurado Alonso <josedavid@zennio.com>:
Hi Giovanni,
I have tried with the change you mention, changing the domain by the public IP, but it still does not work.
Both devices are connected to the same WiFi, on a TP-Link Archer C1200 router, and in the ALG section I do not see the SIP option.
By connecting one of the devices to this router and the other to another network, the call is successful. The problem is when the two are connected to the same network (I have tested with several different networks).
It's as if FS does not find the destination number and stays waiting. Both devices are correctly registered and can be called or called by any device as long as it is not on the same network.
2017-07-28 18:05 GMT+02:00 Giovanni Maruzzelli <gmaruzz@gmail.com>:
On 28 July 2017 at 20:21, Jose David Jurado Alonso <josedavid@zennio.com
wrote:
My current configuration is the next:
vars.xml:
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/> <X-PRE-PROCESS cmd="set" data="external_rtp_ip=host:mydomain.us"/> <X-PRE-PROCESS cmd="set" data="external_sip_ip=host:mydomain.us"/>
try making it:
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/> <X-PRE-PROCESS cmd="set" data="external_rtp_ip=135.44.55.123"/> <X-PRE-PROCESS cmd="set" data="external_sip_ip=135.44.55.123"/>
Stop and start FreeSeWITCH and see if it helps
Also, maybe something is blocked by some ALG in the clients' router? Try to connect via TLS...
Hope this help,
-giovanni
____________________________________________________________ _____________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
participants (3)
-
Giovanni Maruzzelli
-
Jose David Jurado Alonso
-
Sergey Safarov