mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-09 04:49:05 +00:00
FS-2811
This commit is contained in:
1 parent
1970ec1d81
commit
7ac78ac21a
3 files changed
+15
-6
No files matched your search
@@ -3483,6 +3483,12 @@ SWITCH_STANDARD_API(show_function)
|
||||
char hostname[256] = "";
|
||||
gethostname(hostname, sizeof(hostname));
|
||||
|
||||
|
||||
if (!(cflags & SCF_USE_SQL)) {
|
||||
stream->write_function(stream, "-ERR SQL DISABLED NO DATA AVAILABLE!\n");
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if (switch_core_db_handle(&db) != SWITCH_STATUS_SUCCESS) {
|
||||
stream->write_function(stream, "%s", "-ERR Databse Error!\n");
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
@@ -3515,11 +3521,6 @@ SWITCH_STANDARD_API(show_function)
|
||||
|
||||
holder.print_title = 1;
|
||||
|
||||
if (!(cflags & SCF_USE_SQL) && command && !strcasecmp(command, "channels")) {
|
||||
stream->write_function(stream, "-ERR SQL DISABLED NO CHANNEL DATA AVAILABLE!\n");
|
||||
goto end;
|
||||
}
|
||||
|
||||
/* If you change the field qty or order of any of these select */
|
||||
/* statements, you must also change show_callback and friends to match! */
|
||||
if (!command) {
|
||||
|
||||
Reference in new issue
Block a user