Added lookupCCCFromIso method to JNI

This commit is contained in:
Sylvain Berfini 2012-09-25 10:52:51 +02:00
parent 88298e0d7e
commit 0c0f6271ed
2 changed files with 12 additions and 0 deletions

View file

@ -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) {

View file

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