]> sjero.net Git - linphone/commitdiff
stop dtmf stream in core_uninit
authorJehan Monnier <jehan.monnier@linphone.org>
Thu, 10 Feb 2011 14:44:14 +0000 (15:44 +0100)
committerJehan Monnier <jehan.monnier@linphone.org>
Thu, 10 Feb 2011 14:44:14 +0000 (15:44 +0100)
coreapi/linphonecore.c

index d6a56e2645481e504f1ba56df4b0070581ea98de..225e81e1545258da717ecc69a4911d4c5dc52dbc 100644 (file)
@@ -3867,12 +3867,13 @@ static void linphone_core_uninit(LinphoneCore *lc)
        lc->msevq=NULL;
        /* save all config */
        net_config_uninit(lc);
-       sip_config_uninit(lc);
        rtp_config_uninit(lc);
+       if (lc->ringstream) ring_stop(lc->ringstream);
        sound_config_uninit(lc);
        video_config_uninit(lc);
        codecs_config_uninit(lc);
        ui_config_uninit(lc);
+       sip_config_uninit(lc);
        if (lp_config_needs_commit(lc->config)) lp_config_sync(lc->config);
        lp_config_destroy(lc->config);
        lc->config = NULL; /* Mark the config as NULL to block further calls */
@@ -3882,7 +3883,6 @@ static void linphone_core_uninit(LinphoneCore *lc)
        lc->call_logs=ms_list_free(lc->call_logs);
 
        linphone_core_free_payload_types();
-
        ortp_exit();
        linphone_core_set_state(lc,LinphoneGlobalOff,"Off");
 }