mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
fix LinphoneProxyConfig.getError() jni
This commit is contained in:
parent
6b263466e0
commit
5f28f81f4b
2 changed files with 3 additions and 2 deletions
|
|
@ -1435,6 +1435,7 @@ extern "C" void Java_org_linphone_core_LinphoneProxyConfigImpl_edit(JNIEnv* env,
|
|||
extern "C" void Java_org_linphone_core_LinphoneProxyConfigImpl_done(JNIEnv* env,jobject thiz,jlong proxyCfg) {
|
||||
linphone_proxy_config_done((LinphoneProxyConfig*)proxyCfg);
|
||||
}
|
||||
|
||||
extern "C" jstring Java_org_linphone_core_LinphoneProxyConfigImpl_normalizePhoneNumber(JNIEnv* env,jobject thiz,jlong proxyCfg,jstring jnumber) {
|
||||
if (jnumber == 0) {
|
||||
ms_error("cannot normalized null number");
|
||||
|
|
|
|||
|
|
@ -171,10 +171,10 @@ class LinphoneProxyConfigImpl implements LinphoneProxyConfig {
|
|||
public int lookupCCCFromE164(String e164) {
|
||||
return lookupCCCFromE164(nativePtr, e164);
|
||||
}
|
||||
private native int getReason(long nativeptr);
|
||||
private native int getError(long nativeptr);
|
||||
@Override
|
||||
public Reason getError() {
|
||||
return Reason.fromInt(getReason(nativePtr));
|
||||
return Reason.fromInt(getError(nativePtr));
|
||||
}
|
||||
private native void setPrivacy(long nativePtr, int mask);
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue