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
This commit is contained in:
Brian West 2008-07-29 15:19:58 +00:00
parent eec15605aa
commit c6fb2d3435
1 changed files with 6 additions and 0 deletions

View 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);