From 5046f9388b544f78c92c00de9597e7284d97f0b9 Mon Sep 17 00:00:00 2001 From: Yann Diorcet Date: Wed, 6 Mar 2013 11:36:25 +0100 Subject: [PATCH] Update upnp call stats on session destruction --- coreapi/upnp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coreapi/upnp.c b/coreapi/upnp.c index 8aead382..240c34b3 100644 --- a/coreapi/upnp.c +++ b/coreapi/upnp.c @@ -1109,7 +1109,10 @@ void linphone_upnp_session_destroy(UpnpSession *session) { linphone_upnp_context_send_remove_port_binding(lc->upnp, session->video->rtcp, TRUE); } } - + + session->call->stats[LINPHONE_CALL_STATS_AUDIO].upnp_state = LinphoneUpnpStateKo; + session->call->stats[LINPHONE_CALL_STATS_VIDEO].upnp_state = LinphoneUpnpStateKo; + linphone_upnp_stream_destroy(session->audio); linphone_upnp_stream_destroy(session->video); ms_free(session); -- 2.39.2