]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
using the wrong api to remove media bug from crienzo on IRC, thanks.
authorBrian West <brian@freeswitch.org>
Thu, 2 Dec 2010 23:11:04 +0000 (17:11 -0600)
committerBrian West <brian@freeswitch.org>
Thu, 2 Dec 2010 23:11:04 +0000 (17:11 -0600)
src/mod/applications/mod_spandsp/mod_spandsp_dsp.c

index 005924194f0eee6a5df19905f272aabb60ad60e4..f576b7dd01e1db7d2b6c99339ef56cdf6fc27d6c 100644 (file)
@@ -495,7 +495,7 @@ switch_status_t callprogress_detector_stop(switch_core_session_t *session)
        switch_channel_t *channel = switch_core_session_get_channel(session);
        switch_media_bug_t *bug = switch_channel_get_private(channel, TONE_PRIVATE);
        if (bug) {
-               switch_core_media_bug_close(&bug);
+               switch_core_media_bug_remove(session, &bug);
                switch_channel_set_private(channel, TONE_PRIVATE, NULL);
        }
        return SWITCH_STATUS_SUCCESS;