]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6381 add hostname to conference cdr
authorBrian West <brian@freeswitch.org>
Fri, 21 Mar 2014 22:23:50 +0000 (17:23 -0500)
committerBrian West <brian@freeswitch.org>
Fri, 21 Mar 2014 22:23:50 +0000 (17:23 -0500)
src/mod/applications/mod_conference/mod_conference.c

index f94547b7e9efead044e7d070ba899db93ea95ff8..5796d813b42d9fdfbda4cf013b74fdb301792655 100644 (file)
@@ -933,6 +933,11 @@ static void conference_cdr_render(conference_obj_t *conference)
        }
        switch_xml_set_txt_d(x_ptr, conference->name);
        
+       if (!(x_ptr = switch_xml_add_child_d(x_conference, "hostname", conf_off++))) {
+               abort();
+       }
+       switch_xml_set_txt_d(x_ptr, switch_core_get_hostname());
+       
        if (!(x_ptr = switch_xml_add_child_d(x_conference, "rate", conf_off++))) {
                abort();
        }