From: Simon Ditner Date: Tue, 6 Jan 2015 17:43:16 +0000 (-0500) Subject: Add conference member data to floor event X-Git-Tag: v1.4.16~1^2~38^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85b8631d621f71a5345bc00627f938eb85ffef03;p=thirdparty%2Ffreeswitch.git Add conference member data to floor event 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 --- diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index b3a5fd525e..60de0c7810 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -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");