]> sjero.net Git - linphone/blobdiff - coreapi/upnp.c
Update upnp call stats on session destruction
[linphone] / coreapi / upnp.c
index 8aead382cc341a82afb3c5366c3aca066e078c15..240c34b38591fa9d6fbb232fc3adfae88333d671 100644 (file)
@@ -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);