add block_dtmf and unblock_dtmf apps

This commit is contained in:
Michael Jerris
2010-06-07 21:14:47 -04:00
parent abb7d2e574
commit d9eb01974f
3 changed files with 54 additions and 0 deletions
@@ -198,6 +198,16 @@ SWITCH_STANDARD_APP(soft_hold_function)
}
}
SWITCH_STANDARD_APP(dtmf_unblock_function)
{
switch_ivr_unblock_dtmf_session(session);
}
SWITCH_STANDARD_APP(dtmf_block_function)
{
switch_ivr_block_dtmf_session(session);
}
#define UNBIND_SYNTAX "[<key>]"
SWITCH_STANDARD_APP(dtmf_unbind_function)
{
@@ -3108,6 +3118,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dptools_load)
SAF_SUPPORT_NOMEDIA);
SWITCH_ADD_APP(app_interface, "unbind_meta_app", "Unbind a key from an application", "Unbind a key from an application", dtmf_unbind_function,
UNBIND_SYNTAX, SAF_SUPPORT_NOMEDIA);
SWITCH_ADD_APP(app_interface, "block_dfmf", "Block DTMF", "Block DTMF", dtmf_block_function, "", SAF_SUPPORT_NOMEDIA);
SWITCH_ADD_APP(app_interface, "unblock_dtmf", "Stop blocking DTMF", "Stop blocking DTMF", dtmf_unblock_function, "", SAF_SUPPORT_NOMEDIA);
SWITCH_ADD_APP(app_interface, "intercept", "intercept", "intercept", intercept_function, INTERCEPT_SYNTAX, SAF_NONE);
SWITCH_ADD_APP(app_interface, "eavesdrop", "eavesdrop on a uuid", "eavesdrop on a uuid", eavesdrop_function, eavesdrop_SYNTAX, SAF_MEDIA_TAP);
SWITCH_ADD_APP(app_interface, "three_way", "three way call with a uuid", "three way call with a uuid", three_way_function, threeway_SYNTAX,