mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 22:54:18 +00:00
fix for FSCORE-97 and add set_name app to rename channel
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7752 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
eb3dc7f2bb
commit
bc2fd445ca
5 files changed
+44
-5
No files matched your search
@@ -345,6 +345,14 @@ SWITCH_STANDARD_APP(hangup_function)
|
||||
switch_channel_hangup(switch_core_session_get_channel(session), cause);
|
||||
}
|
||||
|
||||
SWITCH_STANDARD_APP(set_name_function)
|
||||
{
|
||||
|
||||
if (!switch_strlen_zero(data)) {
|
||||
switch_channel_set_name(switch_core_session_get_channel(session), (char *) data);
|
||||
}
|
||||
}
|
||||
|
||||
SWITCH_STANDARD_APP(answer_function)
|
||||
{
|
||||
switch_channel_answer(switch_core_session_get_channel(session));
|
||||
@@ -1502,6 +1510,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dptools_load)
|
||||
SWITCH_ADD_APP(app_interface, "pre_answer", "Pre-Answer the call", "Pre-Answer the call for a channel.", pre_answer_function, "", SAF_SUPPORT_NOMEDIA);
|
||||
SWITCH_ADD_APP(app_interface, "answer", "Answer the call", "Answer the call for a channel.", answer_function, "", SAF_SUPPORT_NOMEDIA);
|
||||
SWITCH_ADD_APP(app_interface, "hangup", "Hangup the call", "Hangup the call for a channel.", hangup_function, "[<cause>]", SAF_SUPPORT_NOMEDIA);
|
||||
SWITCH_ADD_APP(app_interface, "set_name", "Name the channel", "Name the channel", set_name_function, "<name>", SAF_SUPPORT_NOMEDIA);
|
||||
SWITCH_ADD_APP(app_interface, "log", "Logs a channel variable", LOG_LONG_DESC, log_function, "<varname>", SAF_SUPPORT_NOMEDIA);
|
||||
SWITCH_ADD_APP(app_interface, "info", "Display Call Info", "Display Call Info", info_function, "", SAF_SUPPORT_NOMEDIA);
|
||||
SWITCH_ADD_APP(app_interface, "event", "Fire an event", "Fire an event", event_function, "", SAF_SUPPORT_NOMEDIA);
|
||||
|
||||
Reference in new issue
Block a user