]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_conference] fix crash when using conference heartbeat
authorChris Rienzo <chris@signalwire.com>
Sat, 18 Apr 2020 16:13:38 +0000 (16:13 +0000)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:01:10 +0000 (22:01 +0300)
src/mod/applications/mod_conference/mod_conference.c

index 1a8aa09e8897c5ce873abfd63d121a7be3417771..71fd17532cac743fdde44118297145476456abe2 100644 (file)
@@ -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);
                }