mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Merge branch 'master' of git.sv.gnu.org:/srv/git/linphone
This commit is contained in:
commit
09b925f3a2
7 changed files with 32 additions and 2 deletions
|
|
@ -466,6 +466,7 @@ static void sip_config_read(LinphoneCore *lc)
|
|||
|
||||
sal_use_rport(lc->sal,lp_config_get_int(lc->config,"sip","use_rport",1));
|
||||
sal_use_101(lc->sal,lp_config_get_int(lc->config,"sip","use_101",1));
|
||||
sal_reuse_authorization(lc->sal, lp_config_get_int(lc->config,"sip","reuse_authorization",0));
|
||||
|
||||
tmp=lp_config_get_int(lc->config,"sip","use_rfc2833",0);
|
||||
linphone_core_set_use_rfc2833_for_dtmf(lc,tmp);
|
||||
|
|
|
|||
|
|
@ -1206,6 +1206,15 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setDownloadBandwidth(JNI
|
|||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setUploadBandwidth(JNIEnv *env, jobject thiz, jlong lc, jint bw){
|
||||
linphone_core_set_upload_bandwidth((LinphoneCore *)lc, (int) bw);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setDownloadPtime(JNIEnv *env, jobject thiz, jlong lc, jint ptime){
|
||||
linphone_core_set_download_ptime((LinphoneCore *)lc, (int) ptime);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setUploadPtime(JNIEnv *env, jobject thiz, jlong lc, jint ptime){
|
||||
linphone_core_set_upload_ptime((LinphoneCore *)lc, (int) ptime);
|
||||
}
|
||||
|
||||
extern "C" int Java_org_linphone_core_LinphoneProxyConfigImpl_getState(JNIEnv* env,jobject thiz,jlong ptr) {
|
||||
return (int) linphone_proxy_config_get_state((const LinphoneProxyConfig *) ptr);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -329,3 +329,4 @@ void sal_auth_info_delete(const SalAuthInfo* auth_info) {
|
|||
if (auth_info->password) ms_free(auth_info->password);
|
||||
ms_free((void*)auth_info);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -267,6 +267,7 @@ void sal_set_keepalive_period(Sal *ctx,unsigned int value);
|
|||
unsigned int sal_get_keepalive_period(Sal *ctx);
|
||||
void sal_use_session_timers(Sal *ctx, int expires);
|
||||
void sal_use_double_registrations(Sal *ctx, bool_t enabled);
|
||||
void sal_reuse_authorization(Sal *ctx, bool_t enabled);
|
||||
void sal_use_one_matching_codec_policy(Sal *ctx, bool_t one_matching_codec);
|
||||
void sal_use_rport(Sal *ctx, bool_t use_rports);
|
||||
void sal_use_101(Sal *ctx, bool_t use_101);
|
||||
|
|
|
|||
|
|
@ -193,6 +193,7 @@ void sal_op_release(SalOp *op){
|
|||
eXosip_event_free(op->pending_auth);
|
||||
if (op->rid!=-1){
|
||||
sal_remove_register(op->base.root,op->rid);
|
||||
eXosip_register_remove(op->rid);
|
||||
}
|
||||
if (op->cid!=-1){
|
||||
ms_message("Cleaning cid %i",op->cid);
|
||||
|
|
@ -279,6 +280,7 @@ Sal * sal_init(){
|
|||
sal->double_reg=TRUE;
|
||||
sal->use_rports=TRUE;
|
||||
sal->use_101=TRUE;
|
||||
sal->reuse_authorization=FALSE;
|
||||
return sal;
|
||||
}
|
||||
|
||||
|
|
@ -797,7 +799,7 @@ int sal_call_terminate(SalOp *h){
|
|||
eXosip_lock();
|
||||
err=eXosip_call_terminate(h->cid,h->did);
|
||||
eXosip_unlock();
|
||||
pop_auth_from_exosip();
|
||||
if (!h->base.root->reuse_authorization) pop_auth_from_exosip();
|
||||
if (err!=0){
|
||||
ms_warning("Exosip could not terminate the call: cid=%i did=%i", h->cid,h->did);
|
||||
}
|
||||
|
|
@ -820,7 +822,7 @@ void sal_op_authenticate(SalOp *h, const SalAuthInfo *info){
|
|||
eXosip_default_action(h->pending_auth);
|
||||
eXosip_unlock();
|
||||
ms_message("eXosip_default_action() done");
|
||||
pop_auth_from_exosip();
|
||||
if (!h->base.root->reuse_authorization) pop_auth_from_exosip();
|
||||
|
||||
if (h->auth_info) sal_auth_info_delete(h->auth_info); /*if already exist*/
|
||||
h->auth_info=sal_auth_info_clone(info); /*store auth info for subsequent request*/
|
||||
|
|
@ -2211,3 +2213,6 @@ int sal_call_update(SalOp *h, const char *subject){
|
|||
eXosip_unlock();
|
||||
return err;
|
||||
}
|
||||
void sal_reuse_authorization(Sal *ctx, bool_t value) {
|
||||
ctx->reuse_authorization=value;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ struct Sal{
|
|||
bool_t double_reg;
|
||||
bool_t use_rports;
|
||||
bool_t use_101;
|
||||
bool_t reuse_authorization;
|
||||
};
|
||||
|
||||
struct SalOp{
|
||||
|
|
|
|||
|
|
@ -531,6 +531,18 @@ public interface LinphoneCore {
|
|||
void setUploadBandwidth(int bw);
|
||||
|
||||
void setDownloadBandwidth(int bw);
|
||||
|
||||
/**
|
||||
* Sets audio packetization interval suggested for remote end.
|
||||
* @param ptime packetization interval in milliseconds
|
||||
*/
|
||||
void setDownloadPtime(int ptime);
|
||||
|
||||
/**
|
||||
* Sets audio packetization interval sent to remote end.
|
||||
* @param ptime packetization interval in milliseconds
|
||||
*/
|
||||
void setUploadPtime(int ptime);
|
||||
|
||||
void setPreferredVideoSize(VideoSize vSize);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue