Hello Jimmy,

Put the bind-server-ip to auto and set your public ip to ext-rtp-ip and ext-sip-ip in vars.xml file. Hope it will work.

Thanks
=====================
Manish Khilwani
Skype: manish_khilwani
Gmail: [hidden email]
MSN : [hidden email]
Phone : 919099923079



On Wed, Apr 24, 2013 at 4:29 PM, Jimmy Chang [via freeswitch-users] <[hidden email]> wrote:
Hi,

In the default configuration, the internal profile listen port 5060 and external profile listen port 5080.
And follow the setting in http://wiki.freeswitch.org/wiki/NAT_Traversal
vars.xml
<X-PRE-PROCESS cmd="set" data="bind_server_ip=59.120.xx.xx"/>
<X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org"/>
<X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org"/>

internal.xml
<param name="ext-rtp-ip" value="$${external_rtp_ip}"/>

external.xml
<param name="ext-sip-ip" value="$${external_sip_ip}"/>
<param name="ext-rtp-ip" value="$${external_rtp_ip}"/>


When user make a SIP call from public network using external profile(5080), he encountered no audio.
Here is the SDP of 200 OK from FS to user.
v=0
o=FreeSWITCH 1366781127 1366781128 IN IP4 10.0.110.33
s=FreeSWITCH
c=IN IP4 10.0.110.33
t=0 0
m=audio 10568 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
m=video 10530 RTP/AVP 116
a=rtpmap:116 H264/90000
a=fmtp:116 profile-level-id=428014


When user make a SIP call from public network using internal profile(5060), everything OK.
Here is the SDP of 200 OK from FS to user.
v=0
o=FreeSWITCH 1366780920 1366780921 IN IP4 59.120.xx.xx
s=FreeSWITCH
c=IN IP4 59.120.xx.xx
t=0 0
m=audio 10892 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
m=video 10178 RTP/AVP 116
a=rtpmap:116 H264/90000
a=fmtp:116 profile-level-id=428014


I can't figure out which parameters in sofia profile or in dialplan make port 5060 set the public IP in SDP and work fine.
Any advice?

Thanks in advance.
Jimmy


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
[hidden email]
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

FreeSWITCH-users mailing list
[hidden email]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



If you reply to this email, your message will be added to the discussion below:
http://freeswitch-users.2379917.n2.nabble.com/IP-infomation-in-SDP-tp7590069.html
To unsubscribe from freeswitch-users, click here.
NAML



View this message in context: Re: IP infomation in SDP
Sent from the freeswitch-users mailing list archive at Nabble.com.