Running with pjsip 2.1 When I run the "icedemo" sample app with a TURN server configured, I can clearly see that I'm getting a response that includes a relayed address in addition to a mapped address. However, after type "init o" followed by "show", only the local candidates and the relay address are in the candidate list. The mapped address (which is my public IP and port mapping) are clearly missing. The only work around is to specify a stun server address in addition to a turn server address. (But I shouldn't have to do that, right?) Output below. Why are the server reflexive addresses missing from the candidate list? Here's the response from the TURN server when the session is created: --- begin STUN message --- STUN Allocate success response Hdr: length=84, magic=2112a442, tsx_id=00003081515f007c79e2a9e4 Attributes: XOR-RELAYED-ADDRESS: length=8, IPv4 addr=54.225.73.150:52951 LIFETIME: length=4, value=1800 (0x708) XOR-MAPPED-ADDRESS: length=8, IPv4 addr=50.46.112.249:58930 SOFTWARE: length=14, value="TurnServer 0.7" MESSAGE-INTEGRITY: length=20, data=c201ccf2039ce9da551c8b1df2ddc18b95444261 FINGERPRINT: length=4, value=2380733433 (0x8de71bf9) --- end of STUN message --- That looks great. I can clearly see my client's public IP address and port mapping (54.225.73.150:52591) as well as an allocated relay port 50.46.112.249:58930). Now here's what see after typing "i o" followed by "show" to see the candidate list. Input: i o 00:15:22.940 icedemo !ICE session created, comp_cnt=1, role is Controlling agent 00:15:22.940 icedemo ICE nomination type set to aggressive 00:15:22.940 icedemo Disabling STUN Indication logging for component 1 00:15:22.940 icedemo Candidate 0 added: comp_id=1, type=host, foundation=Hc0a80108, addr=192.168.1.8:36476, base=192.168.1.8:36476, prio=0x7effffff (2130706431) 00:15:22.940 icedemo Candidate 1 added: comp_id=1, type=relay, foundation=R36e14996, addr=54.225.73.150:52951, base=54.225.73.150:52951, prio=0xffffff (16777215) 00:15:22.940 icedemo.c ICE session created Ummm.... what the heck happened to 50.46.112.249:58930 ? As you can see below it's not in the pseduo-SDP that icedemo generates when you type "show". Just my local IP and my relay address. Input: show General info --------------- Component count : 1 Status : session ready Negotiated comp_cnt: 1 Role : controlling Local SDP (paste this to remote host): -------------------------------------- v=0 o=- 3414953978 3414953978 IN IP4 localhost s=ice t=0 0 a=ice-ufrag:4db127f8 a=ice-pwd:0216231b m=audio 52951 RTP/AVP 0 c=IN IP4 54.225.73.150 a=candidate:Hc0a80108 1 UDP 2130706431 192.168.1.8 36476 typ host a=candidate:R36e14996 1 UDP 16777215 54.225.73.150 52951 typ relay -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130406/ec05a139/attachment-0001.html>