diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 97f063b00..5d661aeed 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -4437,21 +4437,6 @@ const char * linphone_core_get_upnp_external_ipaddress(const LinphoneCore *lc){ } -const char * linphone_core_get_relay_addr(const LinphoneCore *lc){ - return lc->net_conf.relay; -} - -int linphone_core_set_relay_addr(LinphoneCore *lc, const char *addr){ - if (lc->net_conf.relay!=NULL){ - ms_free(lc->net_conf.relay); - lc->net_conf.relay=NULL; - } - if (addr){ - lc->net_conf.relay=ms_strdup(addr); - } - return 0; -} - void linphone_core_set_nat_address(LinphoneCore *lc, const char *addr) { if (lc->net_conf.nat_address!=NULL){ diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index b148bf57a..c700c344f 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -1476,10 +1476,6 @@ LINPHONE_PUBLIC void linphone_core_set_firewall_policy(LinphoneCore *lc, Linphon LINPHONE_PUBLIC LinphoneFirewallPolicy linphone_core_get_firewall_policy(const LinphoneCore *lc); -const char * linphone_core_get_relay_addr(const LinphoneCore *lc); - -int linphone_core_set_relay_addr(LinphoneCore *lc, const char *addr); - /* sound functions */ /* returns a null terminated static array of string describing the sound devices */ const char** linphone_core_get_sound_devices(LinphoneCore *lc); diff --git a/coreapi/private.h b/coreapi/private.h index 191105a09..57228ad3c 100644 --- a/coreapi/private.h +++ b/coreapi/private.h @@ -496,7 +496,6 @@ typedef struct net_config char *stun_server; struct addrinfo *stun_addrinfo; unsigned long stun_res_id; - char *relay; int download_bw; int upload_bw; int mtu;