]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add tdd data also as a header for even lazier parsers
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 2 Jul 2012 16:05:56 +0000 (11:05 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 2 Jul 2012 16:05:56 +0000 (11:05 -0500)
src/mod/applications/mod_spandsp/mod_spandsp_dsp.c

index bec0172deaf1dac06ac53fe02d38383a39beb603..a3439ed612becd53a8c654c426c30d018eb1f09c 100644 (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);