[Freeswitch-users] Sofia Profile - STUN Candidate without the "ext-sip-ip" setting is not working.

Alexander Haugg Alexander.Haugg at c4b.de
Thu Jul 9 15:43:50 UTC 2020


Hi,

my problem is, I need the local SIP address and the external address for the candidates.
The setting is 
vars.xml
<X-PRE-PROCESS cmd="stun-set" data="external_rtp_ip=stun:stun.freeswitch.org"/>

Sofia profile:
<param name="stun-enabled" value="true" />
<param name="stun-auto-disable" value="false" />
<param name="rtp-ip" value="1.2.3.4" />
<param name="sip-ip" value="1.2.3.4" />
<param name="ext-rtp-ip" value="$${external_rtp_ip}" />
<param name="ext-sip-ip" value="$${external_rtp_ip}" />

Call Cmd: 
originate {include_external_ip=true,media_webrtc=true}sofia/gateway/GW_SBC2_B2Bua/123 &park

In this case the ICE candidates in de SDP are OK but the Contact header have the external sip address.

If I do unset the "ext-sip-ip", then the Contact header is OK but I'm missing the external ICE candidates.

What can I do that the STUN candidate will set to the SDP without the "ext-sip-ip" config?

Thanks a lot 
Alex  


More information about the FreeSWITCH-users mailing list