]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5042 changed event body creation
authorMariusz Czułada <manieq.net@gmail.com>
Fri, 24 May 2013 10:18:00 +0000 (12:18 +0200)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 24 May 2013 14:02:23 +0000 (09:02 -0500)
src/mod/applications/mod_conference/mod_conference.c

index 9f5a65540478d293e1df7280843b4935602f76c8..b4316cb703748c736109018b89b42c0ad64f2684 100644 (file)
@@ -1058,7 +1058,7 @@ static void conference_cdr_render(conference_obj_t *conference)
                        {
                                switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "CDR-Source", CONF_EVENT_CDR);
                                if (conference->cdr_event_mode == CDRE_AS_CONTENT) {
-                                       switch_event_add_body(event, xml_text);
+                                       switch_event_set_body(event, xml_text);
                                } else {
                                        switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "CDR-Path", path);
                                }