]> sjero.net Git - linphone/commitdiff
Do not tread ACK event if call has been terminated
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@linphone.org>
Tue, 15 May 2012 12:34:58 +0000 (14:34 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@linphone.org>
Tue, 15 May 2012 12:35:53 +0000 (14:35 +0200)
coreapi/sal_eXosip2.c

index 6a4e2b2849fbc623dc6b4bdb519ecce98479f22e..d1cf241ab65fbe29f4f03e77ee74d0393ecff023 100644 (file)
@@ -1062,6 +1062,10 @@ static void handle_ack(Sal *sal,  eXosip_event_t *ev){
                ms_warning("ack for non-existing call !");
                return;
        }
+       if (op->terminated) {
+               ms_warning("ack for terminated call, ignoring");
+               return;
+       }
        
        if (op->sdp_offering){
                sdp=eXosip_get_sdp_info(ev->ack);