propagate GSTATE error in case of 487 sent by the server

This commit is contained in:
Jehan Monnier 2010-03-25 09:06:01 +01:00
parent a2f7044f34
commit 6b59e79c6e
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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){