From: Brian West Date: Tue, 29 Jul 2008 15:19:58 +0000 (+0000) Subject: remove_bugs to zap all the media bugs on a session X-Git-Tag: v1.0.2~1531 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6fb2d343581b43ada3886a527fa60af79d9d35c;p=thirdparty%2Ffreeswitch.git remove_bugs to zap all the media bugs on a session git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9198 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 4ca3013893..e877ec5565 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -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) "=", SAF_SUPPORT_NOMEDIA); SWITCH_ADD_APP(app_interface, "unset", "Unset a channel variable", UNSET_LONG_DESC, unset_function, "", 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, "", SAF_NONE);