[Freeswitch-svn] [commit] r9198 - freeswitch/trunk/src/mod/applications/mod_dptools
Freeswitch SVN
brian at freeswitch.org
Tue Jul 29 11:19:58 EDT 2008
Author: brian
Date: Tue Jul 29 11:19:58 2008
New Revision: 9198
Modified:
freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
Log:
remove_bugs to zap all the media bugs on a session
Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c Tue Jul 29 11:19:58 2008
@@ -373,6 +373,11 @@
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 @@
"<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);
More information about the Freeswitch-svn
mailing list