Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
0c0f6271
Commit
0c0f6271
authored
Sep 25, 2012
by
Sylvain Berfini
🎩
Browse files
Added lookupCCCFromIso method to JNI
parent
88298e0d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+6
-0
java/common/org/linphone/core/LinphoneProxyConfig.java
java/common/org/linphone/core/LinphoneProxyConfig.java
+6
-0
No files found.
coreapi/linphonecore_jni.cc
View file @
0c0f6271
...
...
@@ -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
)
{
...
...
java/common/org/linphone/core/LinphoneProxyConfig.java
View file @
0c0f6271
...
...
@@ -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
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment