From 452f153d1b00d160fe40bd2551e2fff8926948a9 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Sat, 18 Apr 2020 16:13:38 +0000 Subject: [PATCH] [mod_conference] fix crash when using conference heartbeat --- src/mod/applications/mod_conference/mod_conference.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 1a8aa09e88..71fd17532c 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -264,7 +264,7 @@ void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, void *ob last_heartbeat_time = now; switch_event_create_subclass(&heartbeat_event, SWITCH_EVENT_CUSTOM, CONF_EVENT_MAINT); conference_event_add_data(conference, heartbeat_event); - switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Action", "conference-heartbeat"); + switch_event_add_header_string(heartbeat_event, SWITCH_STACK_BOTTOM, "Action", "conference-heartbeat"); switch_event_fire(&heartbeat_event); }