mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Added lookupCCCFromIso method to JNI
This commit is contained in:
parent
88298e0d7e
commit
0c0f6271ed
2 changed files with 12 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue