add tdd data also as a header for even lazier parsers

This commit is contained in:
Anthony Minessale 2012-07-02 11:05:56 -05:00
parent 158f96651f
commit e06bf26e65
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ static void put_text_msg(void *user_data, const uint8_t *msg, int len)
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "login", "mod_spandsp");
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, "TDD-Data", (char *)msg);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Unique-ID", switch_core_session_get_uuid(pvt->session));
switch_event_add_body(event, "%s\n\n", (char *)msg);