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); } }