Commit 5b637d23 authored by Simon Morlat's avatar Simon Morlat

Fix an issue where the SDP connection address was defaulting to 127.0.0.1...

Fix an issue where the SDP connection address was defaulting to 127.0.0.1 instead of using the default local ip address.
parent cd5bf2bd
...@@ -303,6 +303,7 @@ bool_t linphone_core_tone_indications_enabled(LinphoneCore*lc){ ...@@ -303,6 +303,7 @@ bool_t linphone_core_tone_indications_enabled(LinphoneCore*lc){
} }
int linphone_core_get_local_ip_for(int type, const char *dest, char *result){ int linphone_core_get_local_ip_for(int type, const char *dest, char *result){
if (dest && dest[0] == '\0') dest = NULL; /*If null, bctbx_get_local_ip_for() will use an arbitrary public address instead.*/
return bctbx_get_local_ip_for(type, dest, 5060, result, LINPHONE_IPADDR_SIZE); return bctbx_get_local_ip_for(type, dest, 5060, result, LINPHONE_IPADDR_SIZE);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment