]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9505 [mod_conference] honor verbose-events in conference-create event
authorLuis Azedo <luis.azedo@factorlusitano.com>
Tue, 13 Sep 2016 10:20:32 +0000 (05:20 -0500)
committerLuis Azedo <luis@2600hz.com>
Tue, 13 Sep 2016 16:45:15 +0000 (17:45 +0100)
src/mod/applications/mod_conference/mod_conference.c

index 47f44ec6e5ecb5e41e705390e5017b9fefedc4c2..9692b931b1ec21b483160b312345ae782437f1c3 100644 (file)
@@ -3240,6 +3240,9 @@ conference_obj_t *conference_new(char *name, conference_xml_cfg_t cfg, switch_co
 
        switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, CONF_EVENT_MAINT);
        conference_event_add_data(conference, event);
+       if(conference->verbose_events && channel) {
+               switch_channel_event_set_data(channel, event);
+       }
        switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Action", "conference-create");
        switch_event_fire(&event);