Exposed setContactParameters method in JNI

This commit is contained in:
Sylvain Berfini 2012-09-07 11:11:18 +02:00
parent febe300c38
commit 62ce92ff69
2 changed files with 11 additions and 0 deletions

View file

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

View file

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