mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
[mod_commands,mod_event_socket,mod_event_test] fix up other users of switch_event_xmlize() to use SWITCH_EVENT_NONE
This commit is contained in:
parent
dbe62c25e9
commit
d6eb7562e5
@ -4003,7 +4003,7 @@ SWITCH_STANDARD_API(uuid_dump_function)
|
||||
switch_xml_t xml;
|
||||
switch_channel_event_set_data(channel, event);
|
||||
if (!strcasecmp(format, "xml")) {
|
||||
if ((xml = switch_event_xmlize(event, "%s", ""))) {
|
||||
if ((xml = switch_event_xmlize(event, SWITCH_VA_NONE))) {
|
||||
buf = switch_xml_toxml(xml, SWITCH_FALSE);
|
||||
switch_xml_free(xml);
|
||||
} else {
|
||||
|
@ -966,7 +966,7 @@ SWITCH_STANDARD_API(event_sink_function)
|
||||
switch_xml_t xml;
|
||||
etype = "xml";
|
||||
|
||||
if ((xml = switch_event_xmlize(pevent, "%s", ""))) {
|
||||
if ((xml = switch_event_xmlize(pevent, SWITCH_VA_NONE))) {
|
||||
listener->ebuf = switch_xml_toxml(xml, SWITCH_FALSE);
|
||||
switch_xml_free(xml);
|
||||
} else {
|
||||
@ -1257,7 +1257,7 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
|
||||
switch_xml_t xml;
|
||||
etype = "xml";
|
||||
|
||||
if ((xml = switch_event_xmlize(pevent, "%s", ""))) {
|
||||
if ((xml = switch_event_xmlize(pevent, SWITCH_VA_NONE))) {
|
||||
listener->ebuf = switch_xml_toxml(xml, SWITCH_FALSE);
|
||||
switch_xml_free(xml);
|
||||
} else {
|
||||
|
@ -49,7 +49,7 @@ static void event_handler(switch_event_t *event)
|
||||
return;
|
||||
default:
|
||||
switch_event_serialize(event, &buf, SWITCH_TRUE);
|
||||
if ((xml = switch_event_xmlize(event, NULL))) {
|
||||
if ((xml = switch_event_xmlize(event, SWITCH_VA_NONE))) {
|
||||
xmlstr = switch_xml_toxml(xml, SWITCH_FALSE);
|
||||
dofree++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user