From 6b59e79c6e51ae6c1876633df87da44e18d03309 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Thu, 25 Mar 2010 09:06:01 +0100 Subject: [PATCH] propagate GSTATE error in case of 487 sent by the server --- coreapi/exevents.c | 2 +- coreapi/linphonecore.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/exevents.c b/coreapi/exevents.c index 4dcee01a6..5265a2efe 100644 --- a/coreapi/exevents.c +++ b/coreapi/exevents.c @@ -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; diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 62adf68fc..61e9fdf65 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -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){