sal->double_reg=TRUE;
sal->use_rports=TRUE;
sal->use_101=TRUE;
+ sal->reuse_authorization=FALSE;
return sal;
}
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);
}
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*/
eXosip_unlock();
return err;
}
+void sal_reuse_authorization(Sal *ctx, bool_t value) {
+ ctx->reuse_authorization=value;
+}