说明

LinphoneCallParamsImpl

native函数

private native void enableVideo(long nativePtr, boolean b);
private native boolean getVideoEnabled(long nativePtr);
private native void audioBandwidth(long nativePtr, int bw);
private native void setMediaEncryption(long nativePtr, int menc);
private native int getMediaEncryption(long nativePtr);
private native long getUsedAudioCodec(long nativePtr);
private native long getUsedVideoCodec(long nativePtr);
private native void destroy(long nativePtr);
private native void enableLowBandwidth(long nativePtr, boolean enable);
private native boolean isLowBandwidthEnabled(long nativePtr);
private native boolean localConferenceMode(long nativePtr);
private native void setRecordFile(long nativePtr, String path);
private native void addCustomHeader(long nativePtr, String name, String value); 
private native String getCustomHeader(long nativePtr, String name);
private native void addCustomSdpAttribute(long nativePtr, String name, String value);
private native void addCustomSdpMediaAttribute(long nativePtr, int type, String name, String value);
private native String getCustomSdpAttribute(long nativePtr, String name);
private native String getCustomSdpMediaAttribute(long nativePtr, int type, String name);
private native void clearCustomSdpAttributes(long nativePtr);
private native void clearCustomSdpMediaAttributes(long nativePtr, int type);
private native void setPrivacy(long nativePtr, int mask);
private native int getPrivacy(long nativePtr);
private native void setSessionName(long nativePtr, String name);
private native String getSessionName(long nativePtr);
private native int[] getSentVideoSize(long nativePtr);
private native int[] getReceivedVideoSize(long nativePtr);
private native void enableAudioMulticast(long ptr,boolean yesno);
private native boolean audioMulticastEnabled(long ptr);
private native void enableVideoMulticast(long ptr,boolean yesno);
private native boolean videoMulticastEnabled(long ptr);
private native void enableRealTimeText(long nativePtr, boolean yesno);
private native boolean realTimeTextEnabled(long nativePtr);
private native int getAudioDirection(long nativePtr);
private native int getVideoDirection(long nativePtr);
private native void setAudioDirection(long nativePtr, int direction);
private native void setVideoDirection(long nativePtr, int direction);

enableVideo

extern "C" void Java_org_linphone_core_LinphoneConferenceParamsImpl_enableVideo(JNIEnv *env, jobject thiz, jlong paramsPtr, jboolean enable) {
    linphone_conference_params_enable_video((LinphoneConferenceParams *)paramsPtr, enable);
}

linphone_conference_params_enable_video

submodules/linphone/coreapi/conference.cc:void linphone_conference_params_enable_video(LinphoneConferenceParams *params, bool_t enable) {
submodules/linphone/coreapi/conference.h:LINPHONE_PUBLIC void linphone_conference_params_enable_video(LinphoneConferenceParams *params, bool_t enable);

linphone_conference_params_enable_video

void linphone_conference_params_enable_video(LinphoneConferenceParams *params, bool_t enable) {
    ((Conference::Params *)params)->enableVideo(enable);
}

LinphoneConferenceParams

submodules/linphone/coreapi/conference.h:typedef struct _LinphoneCorferenceParams LinphoneConferenceParams;

getVideoEnabled

extern "C" jboolean Java_org_linphone_core_LinphoneCallParamsImpl_getVideoEnabled(JNIEnv *env, jobject thiz, jlong lcp){
    return (jboolean)linphone_call_params_video_enabled((LinphoneCallParams*)lcp);
}

linphone_call_params_video_enabled

submodules/linphone/coreapi/call_params.h:LINPHONE_PUBLIC bool_t linphone_call_params_video_enabled(const LinphoneCallParams *cp);
submodules/linphone/coreapi/call_params.c:bool_t linphone_call_params_video_enabled(const LinphoneCallParams *cp){
bool_t linphone_call_params_video_enabled(const LinphoneCallParams *cp){
    return cp->has_video;
}

audioBandwidth

extern "C" void Java_org_linphone_core_LinphoneCallParamsImpl_audioBandwidth(JNIEnv *env, jobject thiz, jlong lcp, jint bw){
    linphone_call_params_set_audio_bandwidth_limit((LinphoneCallParams*)lcp, bw);
}

linphone_call_params_set_audio_bandwidth_limit

void linphone_call_params_set_audio_bandwidth_limit(LinphoneCallParams *cp, int bandwidth){
    cp->audio_bw=bandwidth;
}

setMediaEncryption

extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setMediaEncryption(JNIEnv*  env
                                                                            ,jobject  thiz
                                                                            ,jlong lc
                                                                            ,jint menc) {
    linphone_core_set_media_encryption((LinphoneCore*)lc,(LinphoneMediaEncryption)menc);
}

linphone_core_set_media_encryption

submodules/linphone/coreapi/linphonecore.h:LINPHONE_PUBLIC  int linphone_core_set_media_encryption(LinphoneCore *lc, LinphoneMediaEncryption menc);

submodules/linphone/coreapi/linphonecore.c:int linphone_core_set_media_encryption(LinphoneCore *lc, LinphoneMediaEncryption menc) {
int linphone_core_set_media_encryption(LinphoneCore *lc, LinphoneMediaEncryption menc) {
    const char *type="none";
    int ret=-1;

    switch(menc){
        case LinphoneMediaEncryptionSRTP:
            if (!ms_srtp_supported()){
                ms_warning("SRTP not supported by library.");
                type="none";
                ret=-1;
            }else{
                type="srtp";
                ret = 0;
            }
        break;
        case LinphoneMediaEncryptionZRTP:
            if (!ms_zrtp_available()){
                ms_warning("ZRTP not supported by library.");
                type="none";
                ret=-1;
            }else {
                type="zrtp";
                ret = 0;
            }
        break;
        case LinphoneMediaEncryptionDTLS:
            if (!ms_dtls_srtp_available()){
                ms_warning("DTLS not supported by library.");
                type="none";
                ret=-1;
            }else {
                type="dtls";
                ret = 0;
            }
        break;
        case LinphoneMediaEncryptionNone:
            type = "none";
            ret = 0;
        break;
    }
    lp_config_set_string(lc->config,"sip","media_encryption",type);
    return ret;
}

getMediaEncryption

extern "C" jint Java_org_linphone_core_LinphoneCallParamsImpl_getMediaEncryption(JNIEnv*  env
                                                                            ,jobject  thiz
                                                                            ,jlong cp
                                                                            ) {
    return (jint)linphone_call_params_get_media_encryption((LinphoneCallParams*)cp);
}

linphone_call_params_get_media_encryption

LinphoneMediaEncryption linphone_call_params_get_media_encryption(const LinphoneCallParams *cp) {
    return cp->media_encryption;
}

getUsedAudioCodec

extern "C" jlong Java_org_linphone_core_LinphoneCallParamsImpl_getUsedAudioCodec(JNIEnv *env, jobject thiz, jlong cp) {
    return (jlong)linphone_call_params_get_used_audio_codec((LinphoneCallParams *)cp);
}

linphone_call_params_get_used_audio_codec

const LinphonePayloadType* linphone_call_params_get_used_audio_codec(const LinphoneCallParams *cp) {
    return cp->audio_codec;
}

getUsedVideoCodec

extern "C" jlong Java_org_linphone_core_LinphoneCallParamsImpl_getUsedVideoCodec(JNIEnv *env, jobject thiz, jlong cp) {
    return (jlong)linphone_call_params_get_used_video_codec((LinphoneCallParams *)cp);
}

linphone_call_params_get_used_video_codec

const LinphonePayloadType* linphone_call_params_get_used_video_codec(const LinphoneCallParams *cp) {
    return cp->video_codec;
}

enableLowBandwidth

extern "C" void Java_org_linphone_core_LinphoneCallParamsImpl_enableLowBandwidth(JNIEnv *env, jobject thiz, jlong cp, jboolean enable) {
    linphone_call_params_enable_low_bandwidth((LinphoneCallParams *)cp, enable);
}

linphone_call_params_enable_low_bandwidth

void linphone_call_params_enable_low_bandwidth(LinphoneCallParams *cp, bool_t enabled){
    cp->low_bandwidth=enabled;
}

isLowBandwidthEnabled

//CallParams
extern "C" jboolean Java_org_linphone_core_LinphoneCallParamsImpl_isLowBandwidthEnabled(JNIEnv *env, jobject thiz, jlong cp) {
    return (jboolean) linphone_call_params_low_bandwidth_enabled((LinphoneCallParams *)cp);
}

 linphone_call_params_low_bandwidth_enabled

bool_t linphone_call_params_low_bandwidth_enabled(const LinphoneCallParams *cp) {
    return cp->low_bandwidth;
}

localConferenceMode

extern "C" jboolean Java_org_linphone_core_LinphoneCallParamsImpl_localConferenceMode(JNIEnv *env, jobject thiz, jlong lcp){
    return (jboolean)linphone_call_params_get_local_conference_mode((LinphoneCallParams*)lcp);
}

linphone_call_params_get_local_conference_mode

bool_t linphone_call_params_get_local_conference_mode(const LinphoneCallParams *cp){
    return cp->in_conference;
}

setRecordFile

extern "C" void Java_org_linphone_core_LinphoneCallParamsImpl_setRecordFile(JNIEnv *env, jobject thiz, jlong lcp, jstring jrecord_file){
    if (jrecord_file){
        const char* record_file=env->GetStringUTFChars(jrecord_file, NULL);
        linphone_call_params_set_record_file((LinphoneCallParams*)lcp,record_file);
        env->ReleaseStringUTFChars(jrecord_file, record_file);
    }else linphone_call_params_set_record_file((LinphoneCallParams*)lcp,NULL);
}

linphone_call_params_set_record_file

void linphone_call_params_set_record_file(LinphoneCallParams *cp, const char *path){
    if (cp->record_file){
        ms_free(cp->record_file);
        cp->record_file=NULL;
    }
    if (path) cp->record_file=ms_strdup(path);
}

addCustomHeader

JNIEXPORT void JNICALL Java_org_linphone_core_LinphoneEventImpl_addCustomHeader(JNIEnv *env, jobject thiz, jlong jevent, jstring jname, jstring jvalue) {
    const char *name = jname ? env->GetStringUTFChars(jname, NULL) : NULL;
    const char *value = jvalue ? env->GetStringUTFChars(jvalue, NULL) : NULL;
    linphone_event_add_custom_header((LinphoneEvent*) jevent, name, value);
    if (jname) env->ReleaseStringUTFChars(jname, name);
    if (jvalue) env->ReleaseStringUTFChars(jvalue, value);
}

getCustomHeader

JNIEXPORT jstring JNICALL Java_org_linphone_core_LinphoneEventImpl_getCustomHeader(JNIEnv *env, jobject thiz, jlong jevent, jstring jname) {
    const char *name = jname ? env->GetStringUTFChars(jname, NULL) : NULL;
    const char *header = linphone_event_get_custom_header((LinphoneEvent*) jevent, name);
    jstring jheader = header ? env->NewStringUTF(header) : NULL;
    if (jname) env->ReleaseStringUTFChars(jname, name);
    return jheader;
}

addCustomSdpAttribute

JNIEXPORT void JNICALL Java_org_linphone_core_LinphoneCallParamsImpl_addCustomSdpAttribute(JNIEnv *env, jobject thiz, jlong ptr, jstring jname, jstring jvalue) {
    const char *name = env->GetStringUTFChars(jname, NULL);
    const char *value = env->GetStringUTFChars(jvalue, NULL);
    linphone_call_params_add_custom_sdp_attribute((LinphoneCallParams *)ptr, name, value);
    env->ReleaseStringUTFChars(jname, name);
    env->ReleaseStringUTFChars(jvalue, value);
}

linphone_call_params_add_custom_sdp_attribute

void linphone_call_params_add_custom_sdp_attribute(LinphoneCallParams *params, const char *attribute_name, const char *attribute_value) {
    params->custom_sdp_attributes = sal_custom_sdp_attribute_append(params->custom_sdp_attributes, attribute_name, attribute_value);
}

addCustomSdpMediaAttribute

JNIEXPORT void JNICALL Java_org_linphone_core_LinphoneCallParamsImpl_addCustomSdpMediaAttribute(JNIEnv *env, jobject thiz, jlong ptr, jint jtype, jstring jname, jstring jvalue) {
    const char *name = env->GetStringUTFChars(jname, NULL);
    const char *value = env->GetStringUTFChars(jvalue, NULL);
    linphone_call_params_add_custom_sdp_media_attribute((LinphoneCallParams *)ptr, (LinphoneStreamType)jtype, name, value);
    env->ReleaseStringUTFChars(jname, name);
    env->ReleaseStringUTFChars(jvalue, value);
}

linphone_call_params_add_custom_sdp_media_attribute

void linphone_call_params_add_custom_sdp_media_attribute(LinphoneCallParams *params, LinphoneStreamType type, const char *attribute_name, const char *attribute_value) {
    params->custom_sdp_media_attributes[type] = sal_custom_sdp_attribute_append(params->custom_sdp_media_attributes[type], attribute_name, attribute_value);
}

getCustomSdpAttribute

JNIEXPORT jstring JNICALL Java_org_linphone_core_LinphoneCallParamsImpl_getCustomSdpAttribute(JNIEnv *env, jobject thiz, jlong ptr, jstring jname) {
    const char *name = env->GetStringUTFChars(jname, NULL);
    const char *value = linphone_call_params_get_custom_sdp_attribute((LinphoneCallParams *)ptr, name);
    env->ReleaseStringUTFChars(jname, name);
    return value ? env->NewStringUTF(value) : NULL;
}

inphone_call_params_get_custom_sdp_attribut

const char * linphone_call_params_get_custom_sdp_attribute(const LinphoneCallParams *params, const char *attribute_name) {
    return sal_custom_sdp_attribute_find(params->custom_sdp_attributes, attribute_name);
}

# sal_custom_sdp_attribute_find

submodules/linphone/include/sal/sal.h:const char * sal_custom_sdp_attribute_find(const SalCustomSdpAttribute *csa, const char *name);
submodules/linphone/coreapi/bellesip_sal/sal_impl.c:const char * sal_custom_sdp_attribute_find(const SalCustomSdpAttribute *csa, const char *name) {
const char * sal_custom_sdp_attribute_find(const SalCustomSdpAttribute *csa, const char *name) {
    if (csa) {
        return belle_sdp_session_description_get_attribute_value((belle_sdp_session_description_t *)csa, name);
    }
    return NULL;
}

getCustomSdpMediaAttribute

JNIEXPORT jstring JNICALL Java_org_linphone_core_LinphoneCallParamsImpl_getCustomSdpMediaAttribute(JNIEnv *env, jobject thiz, jlong ptr, jint jtype, jstring jname) {
    const char *name = env->GetStringUTFChars(jname, NULL);
    const char *value = linphone_call_params_get_custom_sdp_media_attribute((LinphoneCallParams *)ptr, (LinphoneStreamType)jtype, name);
    env->ReleaseStringUTFChars(jname, name);
    return value ? env->NewStringUTF(value) : NULL;
}

linphone_call_params_get_custom_sdp_media_attribute

const char * linphone_call_params_get_custom_sdp_media_attribute(const LinphoneCallParams *params, LinphoneStreamType type, const char *attribute_name) {
    return sal_custom_sdp_attribute_find(params->custom_sdp_media_attributes[type], attribute_name);
}

sal_custom_sdp_attribute_find

const char * sal_custom_sdp_attribute_find(const SalCustomSdpAttribute *csa, const char *name) {
    if (csa) {
        return belle_sdp_session_description_get_attribute_value((belle_sdp_session_description_t *)csa, name);
    }
    return NULL;
}

clearCustomSdpAttributes

JNIEXPORT void JNICALL Java_org_linphone_core_LinphoneCallParamsImpl_clearCustomSdpAttributes(JNIEnv *env, jobject thiz, jlong ptr) {
    linphone_call_params_clear_custom_sdp_attributes((LinphoneCallParams *)ptr);
}

linphone_call_params_clear_custom_sdp_attributes

void linphone_call_params_clear_custom_sdp_attributes(LinphoneCallParams *params) {
    linphone_call_params_set_custom_sdp_attributes(params, NULL);
}

linphone_call_params_set_custom_sdp_attributes

void linphone_call_params_set_custom_sdp_attributes(LinphoneCallParams *params, const SalCustomSdpAttribute *csa) {
    if (params->custom_sdp_attributes) {
        sal_custom_sdp_attribute_free(params->custom_sdp_attributes);
        params->custom_sdp_attributes = NULL;
    }
    if (csa) {
        params->custom_sdp_attributes = sal_custom_sdp_attribute_clone(csa);
    }
}

clearCustomSdpMediaAttributes

JNIEXPORT void JNICALL Java_org_linphone_core_LinphoneCallParamsImpl_clearCustomSdpMediaAttributes(JNIEnv *env, jobject thiz, jlong ptr, jint jtype) {
    linphone_call_params_clear_custom_sdp_media_attributes((LinphoneCallParams *)ptr, (LinphoneStreamType)jtype);
}

linphone_call_params_clear_custom_sdp_media_attributes

void linphone_call_params_clear_custom_sdp_media_attributes(LinphoneCallParams *params, LinphoneStreamType type) {
    linphone_call_params_set_custom_sdp_media_attributes(params, type, NULL);
}

linphone_call_params_set_custom_sdp_media_attributes

void linphone_call_params_set_custom_sdp_media_attributes(LinphoneCallParams *params, LinphoneStreamType type, const SalCustomSdpAttribute *csa) {
    if (params->custom_sdp_media_attributes[type]) {
        sal_custom_sdp_attribute_free(params->custom_sdp_media_attributes[type]);
        params->custom_sdp_media_attributes[type] = NULL;
    }
    if (csa) {
        params->custom_sdp_media_attributes[type] = sal_custom_sdp_attribute_clone(csa);
    }
}

setPrivacy

extern "C" void Java_org_linphone_core_LinphoneProxyConfigImpl_setPrivacy(JNIEnv*  env,jobject thiz,jlong ptr,jint privacy) {
    linphone_proxy_config_set_privacy((LinphoneProxyConfig *) ptr, (int) privacy);
}

linphone_proxy_config_set_privacy

submodules/linphone/coreapi/linphone_proxy_config.h:LINPHONE_PUBLIC void linphone_proxy_config_set_privacy(LinphoneProxyConfig *cfg, LinphonePrivacyMask privacy);
submodules/linphone/coreapi/proxy.c:void linphone_proxy_config_set_privacy(LinphoneProxyConfig *params, LinphonePrivacyMask privacy) {
void linphone_proxy_config_set_privacy(LinphoneProxyConfig *params, LinphonePrivacyMask privacy) {
    params->privacy=privacy;
}

LinphonePrivacyMask

submodules/linphone/coreapi/linphonecore.h:typedef unsigned int LinphonePrivacyMask;

LinphoneProxyConfig

submodules/linphone/coreapi/private.h:struct _LinphoneProxyConfig
typedef enum _LinphoneProxyConfigAddressComparisonResult{
    LinphoneProxyConfigAddressDifferent,
    LinphoneProxyConfigAddressEqual,
    LinphoneProxyConfigAddressWeakEqual
} LinphoneProxyConfigAddressComparisonResult;

getPrivacy

extern "C" jint Java_org_linphone_core_LinphoneProxyConfigImpl_getPrivacy(JNIEnv*  env,jobject thiz,jlong ptr) {
    return linphone_proxy_config_get_privacy((LinphoneProxyConfig *) ptr);
}
LinphonePrivacyMask linphone_proxy_config_get_privacy(const LinphoneProxyConfig *params) {
    return params->privacy;
}

setSessionName

extern "C" void Java_org_linphone_core_LinphoneCallParamsImpl_setSessionName(JNIEnv*  env
                                                                            ,jobject  thiz
                                                                            ,jlong cp
                                                                            ,jstring jname) {
    const char *name = jname ? env->GetStringUTFChars(jname,NULL) : NULL;
    linphone_call_params_set_session_name((LinphoneCallParams*)cp,name);
    if (name) env->ReleaseStringUTFChars(jname,name);
}

linphone_call_params_set_session_name

void linphone_call_params_set_session_name(LinphoneCallParams *cp, const char *name){
    if (cp->session_name){
        ms_free(cp->session_name);
        cp->session_name=NULL;
    }
    if (name) cp->session_name=ms_strdup(name);
}

getSessionName

extern "C" jstring Java_org_linphone_core_LinphoneCallParamsImpl_getSessionName(JNIEnv*  env
                                                                            ,jobject  thiz
                                                                            ,jlong cp
                                                                            ) {
    const char* name = linphone_call_params_get_session_name((LinphoneCallParams*)cp);
    return name ? env->NewStringUTF(name) : NULL;
}

linphone_call_params_get_session_name

const char *linphone_call_params_get_session_name(const LinphoneCallParams *cp){
    return cp->session_name;
}

getSentVideoSize

extern "C" jintArray Java_org_linphone_core_LinphoneCallParamsImpl_getSentVideoSize(JNIEnv *env, jobject thiz, jlong lcp) {
    const LinphoneCallParams *params = (LinphoneCallParams *) lcp;
    MSVideoSize vsize = linphone_call_params_get_sent_video_size(params);
    jintArray arr = env->NewIntArray(2);
    int tVsize [2]= {vsize.width,vsize.height};
    env->SetIntArrayRegion(arr, 0, 2, tVsize);
    return arr;
}

linphone_call_params_get_sent_video_size

MSVideoSize linphone_call_params_get_sent_video_size(const LinphoneCallParams *cp) {
    return cp->sent_vsize;
}

getReceivedVideoSize

extern "C" jintArray Java_org_linphone_core_LinphoneCallParamsImpl_getReceivedVideoSize(JNIEnv *env, jobject thiz, jlong lcp) {
    const LinphoneCallParams *params = (LinphoneCallParams *) lcp;
    MSVideoSize vsize = linphone_call_params_get_received_video_size(params);
    jintArray arr = env->NewIntArray(2);
    int tVsize [2]= {vsize.width,vsize.height};
    env->SetIntArrayRegion(arr, 0, 2, tVsize);
    return arr;
}

inphone_call_params_get_received_video_size

MSVideoSize linphone_call_params_get_received_video_size(const LinphoneCallParams *cp) {
    return cp->recv_vsize;
}

enableAudioMulticast

/*
 * Class:     org_linphone_core_LinphoneCoreImpl
 * Method:    enableAudioMulticast
 * Signature: (JZ)V
 */
extern "C" void JNICALL Java_org_linphone_core_LinphoneCoreImpl_enableAudioMulticast
  (JNIEnv *, jobject, jlong ptr, jboolean yesno) {
    return linphone_core_enable_audio_multicast((LinphoneCore*)ptr,yesno);
}

linphone_core_enable_audio_multicast

submodules/linphone/coreapi/linphonecore.h:LINPHONE_PUBLIC void linphone_core_enable_audio_multicast(LinphoneCore *core, bool_t yesno);

submodules/linphone/coreapi/linphonecore.c:void linphone_core_enable_audio_multicast(LinphoneCore *lc, bool_t yesno) {
void linphone_core_enable_audio_multicast(LinphoneCore *lc, bool_t yesno) {
    lp_config_set_int(lc->config,"rtp","audio_multicast_enabled",lc->rtp_conf.audio_multicast_enabled=yesno);
}

lp_config_set_int

submodules/linphone/coreapi/lpconfig.h:LINPHONE_PUBLIC void lp_config_set_int(LpConfig *lpconfig,const char *section, const char *key, int value);

submodules/linphone/coreapi/lpconfig.c:void lp_config_set_int(LpConfig *lpconfig,const char *section, const char *key, int value){
void lp_config_set_int(LpConfig *lpconfig,const char *section, const char *key, int value){
    char tmp[30];
    snprintf(tmp,sizeof(tmp),"%i",value);
    lp_config_set_string(lpconfig,section,key,tmp);
}

lp_config_set_string

void lp_config_set_string(LpConfig *lpconfig,const char *section, const char *key, const char *value){
    LpItem *item;
    LpSection *sec=lp_config_find_section(lpconfig,section);
    if (sec!=NULL){
        item=lp_section_find_item(sec,key);
        if (item!=NULL){
            if (value!=NULL && value[0] != '\0')
                lp_item_set_value(item,value);
            else lp_section_remove_item(sec,item);
        }else{
            if (value!=NULL && value[0] != '\0')
                lp_section_add_item(sec,lp_item_new(key,value));
        }
    }else if (value!=NULL && value[0] != '\0'){
        sec=lp_section_new(section);
        lp_config_add_section(lpconfig,sec);
        lp_section_add_item(sec,lp_item_new(key,value));
    }
    lpconfig->modified++;
}

audioMulticastEnabled

/*
 * Class:     org_linphone_core_LinphoneCoreImpl
 * Method:    audioMulticastEnabled
 * Signature: (J)Z
 */
extern "C" jboolean JNICALL Java_org_linphone_core_LinphoneCoreImpl_audioMulticastEnabled
  (JNIEnv *, jobject, jlong ptr) {
    return linphone_core_audio_multicast_enabled((LinphoneCore*)ptr);
}

linphone_core_audio_multicast_enabled

submodules/linphone/coreapi/linphonecore.h:LINPHONE_PUBLIC bool_t linphone_core_audio_multicast_enabled(const LinphoneCore *core);

submodules/linphone/coreapi/linphonecore.c: bool_t linphone_core_audio_multicast_enabled(const LinphoneCore *lc) {
bool_t linphone_core_audio_multicast_enabled(const LinphoneCore *lc) {
    return lc->rtp_conf.audio_multicast_enabled;
}

enableVideoMulticast

/*
 * Class:     org_linphone_core_LinphoneCoreImpl
 * Method:    enableVideoMulticast
 * Signature: (JZ)V
 */
extern "C" void JNICALL Java_org_linphone_core_LinphoneCoreImpl_enableVideoMulticast
  (JNIEnv *, jobject, jlong ptr, jboolean yesno) {
    return linphone_core_enable_video_multicast((LinphoneCore*)ptr,yesno);
}

linphone_core_enable_video_multicast

void linphone_core_enable_video_multicast(LinphoneCore *lc, bool_t yesno) {
    lp_config_set_int(lc->config,"rtp","video_multicast_enabled",lc->rtp_conf.video_multicast_enabled=yesno);
}

videoMulticastEnabled

/*
 * Class:     org_linphone_core_LinphoneCoreImpl
 * Method:    videoMulticastEnabled
 * Signature: (J)Z
 */
extern "C" jboolean JNICALL Java_org_linphone_core_LinphoneCoreImpl_videoMulticastEnabled
  (JNIEnv *, jobject, jlong ptr) {
    return linphone_core_video_multicast_enabled((LinphoneCore*)ptr);
}

linphone_core_video_multicast_enabled

bool_t linphone_core_video_multicast_enabled(const LinphoneCore *lc) {
    return lc->rtp_conf.video_multicast_enabled;
}

enableRealTimeText

/*
 * Class:     org_linphone_core_LinphoneCoreImpl
 * Method:    videoMulticastEnabled
 * Signature: (J)Z
 */
extern "C" jboolean JNICALL Java_org_linphone_core_LinphoneCoreImpl_videoMulticastEnabled
  (JNIEnv *, jobject, jlong ptr) {
    return linphone_core_video_multicast_enabled((LinphoneCore*)ptr);
}

linphone_core_video_multicast_enabled

bool_t linphone_core_video_multicast_enabled(const LinphoneCore *lc) {
    return lc->rtp_conf.video_multicast_enabled;
}

realTimeTextEnabled

getAudioDirection

JNIEXPORT jint JNICALL Java_org_linphone_core_LinphoneCallParamsImpl_getAudioDirection(JNIEnv *env, jobject thiz, jlong ptr) {
    return (jint)linphone_call_params_get_audio_direction((LinphoneCallParams *)ptr);
}

linphone_call_params_get_audio_direction

LinphoneMediaDirection linphone_call_params_get_audio_direction(const LinphoneCallParams *cp) {
    return cp->audio_dir;
}

getVideoDirection

JNIEXPORT jint JNICALL Java_org_linphone_core_LinphoneCallParamsImpl_getVideoDirection(JNIEnv *env, jobject thiz, jlong ptr) {
    return (jint)linphone_call_params_get_video_direction((LinphoneCallParams *)ptr);
}

linphone_call_params_get_video_direction

LinphoneMediaDirection linphone_call_params_get_video_direction(const LinphoneCallParams *cp) {
    return cp->video_dir;
}

setAudioDirection

JNIEXPORT void JNICALL Java_org_linphone_core_LinphoneCallParamsImpl_setAudioDirection(JNIEnv *env, jobject thiz, jlong ptr, jint jdir) {
    linphone_call_params_set_audio_direction((LinphoneCallParams *)ptr, (LinphoneMediaDirection)jdir);
}

linphone_call_params_set_audio_direction

void linphone_call_params_set_audio_direction(LinphoneCallParams *cp,LinphoneMediaDirection dir) {
    cp->audio_dir=dir;
}

setVideoDirection

JNIEXPORT void JNICALL Java_org_linphone_core_LinphoneCallParamsImpl_setVideoDirection(JNIEnv *env, jobject thiz, jlong ptr, jint jdir) {
    linphone_call_params_set_video_direction((LinphoneCallParams *)ptr, (LinphoneMediaDirection)jdir);
}

linphone_call_params_set_video_direction

void linphone_call_params_set_video_direction(LinphoneCallParams *cp,LinphoneMediaDirection dir) {
    cp->video_dir=dir;
}