FreeSwitch AWS does not SIP call between mobile phones connected to the same WiFi -
i have fs server running on aws instance , not call between mobiles connected same wifi. call successful if each of mobiles connected different wifi or mobile network (4g).
obviously fs in different network , use domain/url routing calls (mydomain.us example).
i not see strange in logs. think call not occur because server not find destination number registered , hangup/abandoned call timeout.
it works except when 2 mobiles connected same wifi.
one call example can "sip:1009@mydomain.us:5080"
my current configuration 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"/>-->
Comments
Post a Comment