From 260cceb90e93a0aab6c9c09d596dee0ab21f92cc Mon Sep 17 00:00:00 2001 From: Margaux Clerc Date: Thu, 28 Aug 2014 17:40:42 +0200 Subject: [PATCH] Fix create proxy config --- tests/src/org/linphone/test/LinphoneTestManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/org/linphone/test/LinphoneTestManager.java b/tests/src/org/linphone/test/LinphoneTestManager.java index 45f2ed141..dfe8f2e17 100644 --- a/tests/src/org/linphone/test/LinphoneTestManager.java +++ b/tests/src/org/linphone/test/LinphoneTestManager.java @@ -200,7 +200,7 @@ public class LinphoneTestManager implements LinphoneCoreListener { String proxy = "sip:" + domain; LinphoneAddress proxyAddr = LinphoneCoreFactory.instance().createLinphoneAddress(proxy); proxyAddr.setTransport(TransportType.LinphoneTransportTls); - LinphoneProxyConfig proxycon = LinphoneCoreFactory.instance().createProxyConfig(identity, proxyAddr.asStringUriOnly(), proxyAddr.asStringUriOnly(), true); + LinphoneProxyConfig proxycon = mLc.createProxyConfig(identity, proxyAddr.asStringUriOnly(), proxyAddr.asStringUriOnly(), true); mLc.addProxyConfig(proxycon); mLc.setDefaultProxyConfig(proxycon); @@ -209,7 +209,7 @@ public class LinphoneTestManager implements LinphoneCoreListener { //escape + lDefaultProxyConfig.setDialEscapePlus(false); } else if (LinphoneService.isReady()) { - LinphoneService.instance().onRegistrationStateChanged(RegistrationState.RegistrationNone, null); + LinphoneService.instance().onRegistrationStateChanged(lDefaultProxyConfig, RegistrationState.RegistrationNone, null); } }