From: Chris Rienzo Date: Sat, 18 Apr 2020 16:13:38 +0000 (+0000) Subject: [mod_conference] fix crash when using conference heartbeat X-Git-Tag: v1.10.7^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a617d5857c5c33e390436106f9b45905522620c7;p=thirdparty%2Ffreeswitch.git [mod_conference] fix crash when using conference heartbeat --- 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); }