Commit 62ce92ff authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Exposed setContactParameters method in JNI

parent febe300c
......@@ -955,6 +955,11 @@ extern "C" jstring Java_org_linphone_core_LinphoneProxyConfigImpl_getProxy(JNIEn
return NULL;
}
}
extern "C" void Java_org_linphone_core_LinphoneProxyConfigImpl_setContactParameters(JNIEnv* env,jobject thiz,jlong proxyCfg,jstring jparams) {
const char* params = env->GetStringUTFChars(jparams, NULL);
linphone_proxy_config_set_contact_parameters((LinphoneProxyConfig*)proxyCfg, params);
env->ReleaseStringUTFChars(jparams, params);
}
extern "C" int Java_org_linphone_core_LinphoneProxyConfigImpl_setRoute(JNIEnv* env,jobject thiz,jlong proxyCfg,jstring jroute) {
if (jroute != NULL) {
const char* route = env->GetStringUTFChars(jroute, NULL);
......
......@@ -133,4 +133,10 @@ public interface LinphoneProxyConfig {
* @param delay expiration time in seconds
*/
void setExpires(int delay);
/**
* Sets parameters for the contact
* @param parameters to add
*/
public void setContactParameters(String params);
}
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