mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 15:44:21 +00:00
pull down stack size another 128k, make the sql use mem cache and add session count to the status command
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2747 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
b2c6786f25
commit
19446804c7
4 files changed
+72
-67
No files matched your search
@@ -39,6 +39,7 @@ static switch_status_t status_function(char *cmd, switch_core_session_t *session
|
||||
{
|
||||
uint8_t html = 0;
|
||||
switch_core_time_duration_t duration;
|
||||
char *http;
|
||||
|
||||
if (session) {
|
||||
return SWITCH_STATUS_FALSE;
|
||||
@@ -46,7 +47,11 @@ static switch_status_t status_function(char *cmd, switch_core_session_t *session
|
||||
|
||||
switch_core_measure_time(switch_core_uptime(), &duration);
|
||||
|
||||
if (cmd && strstr(cmd, "html")) {
|
||||
if (stream->event) {
|
||||
http = switch_event_get_header(stream->event, "http-host");
|
||||
}
|
||||
|
||||
if (http || (cmd && strstr(cmd, "html"))) {
|
||||
html = 1;
|
||||
stream->write_function(stream, "<h1>FreeSWITCH Status</h1>\n<b>");
|
||||
}
|
||||
@@ -61,6 +66,8 @@ static switch_status_t status_function(char *cmd, switch_core_session_t *session
|
||||
duration.mms, duration.mms == 1 ? "" : "s"
|
||||
);
|
||||
|
||||
stream->write_function(stream, "%d sessions\n", switch_core_session_count());
|
||||
|
||||
if (html) {
|
||||
stream->write_function(stream, "</b>\n");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user