From 2c3740e56cd60f25f2b81c63ead4da659d9c2f34 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Fri, 14 Apr 2017 15:41:30 +0200 Subject: [PATCH] Add linphoneCore to proxyConfig on init --- coreapi/proxy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/proxy.c b/coreapi/proxy.c index f7d645f82..b4e1a545f 100644 --- a/coreapi/proxy.c +++ b/coreapi/proxy.c @@ -107,6 +107,7 @@ static void linphone_proxy_config_init(LinphoneCore* lc, LinphoneProxyConfig *cf const char *contact_params = lc ? lp_config_get_default_string(lc->config, "proxy", "contact_parameters", NULL) : NULL; const char *contact_uri_params = lc ? lp_config_get_default_string(lc->config, "proxy", "contact_uri_parameters", NULL) : NULL; const char *refkey = lc ? lp_config_get_default_string(lc->config, "proxy", "refkey", NULL) : NULL; + cfg->lc = lc; cfg->expires = lc ? lp_config_get_default_int(lc->config, "proxy", "reg_expires", 3600) : 3600; cfg->reg_sendregister = lc ? lp_config_get_default_int(lc->config, "proxy", "reg_sendregister", 1) : 1; cfg->dial_prefix = dial_prefix ? ms_strdup(dial_prefix) : NULL;