]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add conference member data to floor event
authorSimon Ditner <spditner@gmail.com>
Tue, 6 Jan 2015 17:43:16 +0000 (12:43 -0500)
committerSimon Ditner <spditner@gmail.com>
Tue, 6 Jan 2015 17:43:16 +0000 (12:43 -0500)
Between v1.2 and v1.4, member data was factored out. This makes it so
that one can not determine who the originator of a floor change event
is.

With this change, the meta data related to the conference member whom
initiated the floor change event is added to the event.

See FS-7136

src/mod/applications/mod_conference/mod_conference.c

index b3a5fd525ef43c4eef9e8f242d2d410b07c4b492..60de0c78102b85e9de2f74475ac6a26b3082923d 100644 (file)
@@ -2578,6 +2578,7 @@ static void conference_set_floor_holder(conference_obj_t *conference, conference
                }
 
                if (conference->floor_holder) {
+                       conference_add_event_member_data(conference->floor_holder, event);
                        switch_event_add_header(event, SWITCH_STACK_BOTTOM, "New-ID", "%d", conference->floor_holder->id);
                } else {
                        switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "New-ID", "none");