Fix create proxy config
This commit is contained in:
parent
6e05f548e9
commit
260cceb90e
1 changed files with 2 additions and 2 deletions
|
@ -200,7 +200,7 @@ public class LinphoneTestManager implements LinphoneCoreListener {
|
||||||
String proxy = "sip:" + domain;
|
String proxy = "sip:" + domain;
|
||||||
LinphoneAddress proxyAddr = LinphoneCoreFactory.instance().createLinphoneAddress(proxy);
|
LinphoneAddress proxyAddr = LinphoneCoreFactory.instance().createLinphoneAddress(proxy);
|
||||||
proxyAddr.setTransport(TransportType.LinphoneTransportTls);
|
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.addProxyConfig(proxycon);
|
||||||
mLc.setDefaultProxyConfig(proxycon);
|
mLc.setDefaultProxyConfig(proxycon);
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ public class LinphoneTestManager implements LinphoneCoreListener {
|
||||||
//escape +
|
//escape +
|
||||||
lDefaultProxyConfig.setDialEscapePlus(false);
|
lDefaultProxyConfig.setDialEscapePlus(false);
|
||||||
} else if (LinphoneService.isReady()) {
|
} else if (LinphoneService.isReady()) {
|
||||||
LinphoneService.instance().onRegistrationStateChanged(RegistrationState.RegistrationNone, null);
|
LinphoneService.instance().onRegistrationStateChanged(lDefaultProxyConfig, RegistrationState.RegistrationNone, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue