]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3415 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 10 Aug 2011 12:58:02 +0000 (07:58 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 10 Aug 2011 12:58:02 +0000 (07:58 -0500)
src/switch_core.c

index e7cd60d58f2bc2582e3e32612dfe77649eede2e0..12850ce99853f237b9400a5e0b92f4bb5bad9592 100644 (file)
@@ -81,6 +81,7 @@ static void send_heartbeat(void)
                                                                duration.ms, duration.ms == 1 ? "" : "s", duration.mms, duration.mms == 1 ? "" : "s");
 
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Count", "%u", switch_core_session_count());
+               switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Max-Sessions", "%u", switch_core_session_limit(0));
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Per-Sec", "%u", runtime.sps);
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Since-Startup", "%" SWITCH_SIZE_T_FMT, switch_core_session_id() - 1);
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Idle-CPU", "%f", switch_core_idle_cpu());