]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove_bugs to zap all the media bugs on a session
authorBrian West <brian@freeswitch.org>
Tue, 29 Jul 2008 15:19:58 +0000 (15:19 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 29 Jul 2008 15:19:58 +0000 (15:19 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9198 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_dptools/mod_dptools.c

index 4ca30138930d6fe69e7b3e9d0ce5b299d7e30f92..e877ec55659fdfded8f0013d722ef9b329ded4bd 100644 (file)
@@ -373,6 +373,11 @@ SWITCH_STANDARD_APP(ring_ready_function)
        switch_channel_ring_ready(switch_core_session_get_channel(session));
 }
 
+SWITCH_STANDARD_APP(remove_bugs_function)
+{
+       switch_core_media_bug_remove_all(session);
+}
+
 SWITCH_STANDARD_APP(break_function)
 {
        switch_channel_set_flag(switch_core_session_get_channel(session), CF_BREAK);
@@ -2223,6 +2228,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dptools_load)
                                   "<varname>=<value>", SAF_SUPPORT_NOMEDIA);
        SWITCH_ADD_APP(app_interface, "unset", "Unset a channel variable", UNSET_LONG_DESC, unset_function, "<varname>", SAF_SUPPORT_NOMEDIA);
        SWITCH_ADD_APP(app_interface, "ring_ready", "Indicate Ring_Ready", "Indicate Ring_Ready on a channel.", ring_ready_function, "", SAF_SUPPORT_NOMEDIA);
+       SWITCH_ADD_APP(app_interface, "remove_bugs", "Remove media bugs", "Remove all media bugs from a channel.", remove_bugs_function, "", SAF_NONE);
        SWITCH_ADD_APP(app_interface, "break", "Break", "Set the break flag.", break_function, "", SAF_SUPPORT_NOMEDIA);
        SWITCH_ADD_APP(app_interface, "detect_speech", "Detect speech", "Detect speech on a channel.", detect_speech_function, DETECT_SPEECH_SYNTAX, SAF_NONE);
        SWITCH_ADD_APP(app_interface, "ivr", "Run an ivr menu", "Run an ivr menu.", ivr_application_function, "<menu_name>", SAF_NONE);