mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 06:08:07 +00:00
fix(linphonecall): test conference context before on_call_stream_starting call
This commit is contained in:
parent
c3f94fbddf
commit
974daa4bb5
1 changed files with 5 additions and 5 deletions
|
|
@ -1109,18 +1109,18 @@ static void linphone_call_init_common(LinphoneCall *call, LinphoneAddress *from,
|
|||
linphone_call_init_stats(call->audio_stats, LINPHONE_CALL_STATS_AUDIO);
|
||||
linphone_call_init_stats(call->video_stats, LINPHONE_CALL_STATS_VIDEO);
|
||||
linphone_call_init_stats(call->text_stats, LINPHONE_CALL_STATS_TEXT);
|
||||
|
||||
|
||||
if (call->dest_proxy == NULL) {
|
||||
/* Try to define the destination proxy if it has not already been done to have a correct contact field in the SIP messages */
|
||||
call->dest_proxy = linphone_core_lookup_known_proxy(call->core, call->log->to);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (call->dest_proxy != NULL)
|
||||
call->nat_policy = linphone_proxy_config_get_nat_policy(call->dest_proxy);
|
||||
if (call->nat_policy == NULL)
|
||||
call->nat_policy = linphone_core_get_nat_policy(call->core);
|
||||
|
||||
|
||||
linphone_nat_policy_ref(call->nat_policy);
|
||||
|
||||
}
|
||||
|
|
@ -3506,7 +3506,7 @@ static void linphone_call_start_audio_stream(LinphoneCall *call, LinphoneCallSta
|
|||
setup_ring_player(lc,call);
|
||||
}
|
||||
|
||||
if (call->params->in_conference){
|
||||
if (call->params->in_conference && lc->conf_ctx){
|
||||
/*transform the graph to connect it to the conference filter */
|
||||
mute = stream->dir==SalStreamRecvOnly;
|
||||
linphone_conference_on_call_stream_starting(lc->conf_ctx, call, mute);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue