函数linphone_core_invite_address_with_params分析
呼叫函数
LinphoneCall * linphone_core_invite_address_with_params
(LinphoneCore *lc, const LinphoneAddress *addr, const LinphoneCallParams *params)
调用:
判断当前是否有呼叫,以及是否达到呼叫数目的最大限
if(!linphone_core_can_we_add_call(lc)){linphone_core_notify_display_warning(lc,_("Sorry, we have reached the maximum number of simultaneous calls"));return NULL;}
/*** Check if we do not have exceed the number of simultaneous call** @ingroup call_control
**/
bool_t linphone_core_can_we_add_call(LinphoneCore *lc)
{if(linphone_core_get_calls_nb(lc) < lc->max_calls)return TRUE;ms_message("Maximum amount of simultaneous calls reached !");return FALSE;
}
进入到呼叫函数linphone_core_invite_address_with_params后,
首先判断是否达到呼叫数目的最大限。
linphone_core_can_we_add_call(lc);
if(linphone_core_add_call(lc,call)!= 0){
into the invite ... weird");linphone_call_unref(call);linphone_call_params_destroy(cp);return NULL;}
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
