mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
allow repair of calls when no proxy config is used or proxy config doesn't register.
This commit is contained in:
parent
3dbde7bc48
commit
c2002e29a5
1 changed files with 9 additions and 4 deletions
|
|
@ -5046,12 +5046,17 @@ void linphone_call_repair_if_broken(LinphoneCall *call){
|
|||
LinphoneCallParams *params;
|
||||
|
||||
if (!call->broken) return;
|
||||
|
||||
/*First, make sure that the proxy from which we received this call, or to which we routed this call is registered*/
|
||||
if (!call->dest_proxy || linphone_proxy_config_get_state(call->dest_proxy) != LinphoneRegistrationOk) return;
|
||||
|
||||
if (!call->core->media_network_reachable) return;
|
||||
|
||||
/*Make sure that the proxy from which we received this call, or to which we routed this call is registered first*/
|
||||
if (call->dest_proxy){
|
||||
/*in all other cases, ie no proxy config, or a proxy config for which no registration was requested, we can start the
|
||||
* call repair immediately.*/
|
||||
if (linphone_proxy_config_register_enabled(call->dest_proxy)
|
||||
&& linphone_proxy_config_get_state(call->dest_proxy) != LinphoneRegistrationOk) return;
|
||||
}
|
||||
|
||||
|
||||
switch (call->state){
|
||||
case LinphoneCallStreamsRunning:
|
||||
case LinphoneCallPaused:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue