mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +00:00
add some more warning msgs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8859 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
17b96b492c
commit
587bbe6557
2 files changed
+24
-12
No files matched your search
@@ -1080,8 +1080,11 @@ SWITCH_STANDARD_API(chat_api_function)
|
||||
switch_chat_interface_t *ci;
|
||||
|
||||
if ((ci = switch_loadable_module_get_chat_interface(argv[0]))) {
|
||||
ci->chat_send("dp", argv[1], argv[2], "", argv[3], "");
|
||||
stream->write_function(stream, "Sent");
|
||||
if (ci->chat_send("dp", argv[1], argv[2], "", argv[3], "") == SWITCH_STATUS_SUCCESS) {
|
||||
stream->write_function(stream, "Sent");
|
||||
} else {
|
||||
stream->write_function(stream, "Error! Message Not Sent");
|
||||
}
|
||||
} else {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Chat Interface [%s]!\n", argv[0]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user