mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 07:59:20 +00:00
propagate GSTATE error in case of 487 sent by the server
This commit is contained in:
parent
a2f7044f34
commit
6b59e79c6e
2 changed files with 2 additions and 2 deletions
|
|
@ -244,7 +244,7 @@ int linphone_call_failure(LinphoneCore *lc, eXosip_event_t *ev)
|
|||
linphone_core_stop_media_streams(lc);
|
||||
if (call!=NULL) {
|
||||
linphone_call_destroy(call);
|
||||
if (code!=487) gstate_new_state(lc, GSTATE_CALL_ERROR, NULL);
|
||||
gstate_new_state(lc, GSTATE_CALL_ERROR, NULL);
|
||||
lc->call=NULL;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -1424,7 +1424,7 @@ static void monitor_network_state(LinphoneCore *lc, time_t curtime){
|
|||
static time_t last_check=0;
|
||||
static bool_t last_status=FALSE;
|
||||
char result[LINPHONE_IPADDR_SIZE];
|
||||
bool_t new_status;
|
||||
bool_t new_status=last_status;
|
||||
|
||||
/* only do the network up checking every five seconds */
|
||||
if (last_check==0 || (curtime-last_check)>=5){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue