Commit 0c0f6271 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Added lookupCCCFromIso method to JNI

parent 88298e0d
......@@ -1074,6 +1074,12 @@ extern "C" jstring Java_org_linphone_core_LinphoneProxyConfigImpl_normalizePhone
env->ReleaseStringUTFChars(jnumber, number);
return normalizedNumber;
}
extern "C" jint Java_org_linphone_core_LinphoneProxyConfigImpl_lookupCCCFromIso(JNIEnv* env, jobject thiz, jstring jiso) {
const char* iso = env->GetStringUTFChars(jiso, NULL);
int prefix = linphone_dial_plan_lookup_ccc_from_iso(iso);
env->ReleaseStringUTFChars(jiso, iso);
return (jint) prefix;
}
extern "C" jstring Java_org_linphone_core_LinphoneProxyConfigImpl_getDomain(JNIEnv* env
,jobject thiz
,jlong proxyCfg) {
......
......@@ -139,4 +139,10 @@ public interface LinphoneProxyConfig {
* @param parameters to add
*/
public void setContactParameters(String params);
/**
* Return the international prefix for the given country
* @param country iso code
*/
public int lookupCCCFromIso(String iso);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment