mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-26 21:24:16 +00:00
add trailing newlines for lazy parsers
This commit is contained in:
1 parent
104bab6b92
commit
158f96651f
1 file changed
+1
-1
@@ -121,7 +121,7 @@ static void put_text_msg(void *user_data, const uint8_t *msg, int len)
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "proto", "tdd");
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "subject", "TDD MESSAGE");
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Unique-ID", switch_core_session_get_uuid(pvt->session));
|
||||
switch_event_add_body(event, "%s", (char *)msg);
|
||||
switch_event_add_body(event, "%s\n\n", (char *)msg);
|
||||
|
||||
if (switch_core_session_get_partner(pvt->session, &other_session) == SWITCH_STATUS_SUCCESS) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user