mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 03:57:14 +00:00
add delay_echo application
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5794 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
0b9482f1fd
commit
1418927007
3 files changed
+66
-2
No files matched your search
@@ -231,6 +231,20 @@ SWITCH_STANDARD_APP(sleep_function)
|
||||
}
|
||||
}
|
||||
|
||||
SWITCH_STANDARD_APP(delay_function)
|
||||
{
|
||||
uint32_t len = 0;
|
||||
|
||||
if (switch_strlen_zero(data)) {
|
||||
len = 1000;
|
||||
} else {
|
||||
len = atoi(data);
|
||||
}
|
||||
|
||||
switch_ivr_delay_echo(session, len);
|
||||
|
||||
}
|
||||
|
||||
SWITCH_STANDARD_APP(eval_function)
|
||||
{
|
||||
return;
|
||||
@@ -1243,6 +1257,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dptools_load)
|
||||
SWITCH_ADD_APP(app_interface, "privacy", "Set privacy on calls", "Set caller privacy on calls.", privacy_function, "off|on|name|full|number", SAF_SUPPORT_NOMEDIA);
|
||||
SWITCH_ADD_APP(app_interface, "transfer", "Transfer a channel", TRANSFER_LONG_DESC, transfer_function, "<exten> [<dialplan> <context>]", SAF_SUPPORT_NOMEDIA);
|
||||
SWITCH_ADD_APP(app_interface, "sleep", "Pause a channel", SLEEP_LONG_DESC, sleep_function, "<pausemilliseconds>", SAF_NONE);
|
||||
SWITCH_ADD_APP(app_interface, "delay_echo", "echo audio at a specified delay", "Delay n ms", delay_function, "<delay ms>", SAF_NONE);
|
||||
SWITCH_ADD_APP(app_interface, "strftime", NULL, NULL, strftime_function, NULL, SAF_SUPPORT_NOMEDIA);
|
||||
SWITCH_ADD_APP(app_interface, "phrase", "Say a Phrase", "Say a Phrase", phrase_function, "<macro_name>,<data>", SAF_NONE);
|
||||
SWITCH_ADD_APP(app_interface, "eval", "Do Nothing", "Do Nothing", eval_function, "", SAF_SUPPORT_NOMEDIA);
|
||||
|
||||
Reference in new issue
Block a user