From d018fa489aab152d797eb7e41a8038b2520d64e6 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Fri, 24 Sep 2010 19:41:52 +0200 Subject: [PATCH] Skinny: send proper USER_TO_DEVICE_DATA_MESSAGE --- src/mod/endpoints/mod_skinny/mod_skinny.c | 6 +++++- src/mod/endpoints/mod_skinny/skinny_protocol.h | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index fc7d8721a0..2df8937647 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -1939,9 +1939,13 @@ static void skinny_user_to_device_event_handler(switch_event_t *event) } switch(message_type) { case USER_TO_DEVICE_DATA_MESSAGE: + data_length = strlen(data); /* we ignore data_length sent */ + send_data(listener, message_type, + application_id, line_instance, call_id, transaction_id, data_length, + data); case USER_TO_DEVICE_DATA_VERSION1_MESSAGE: data_length = strlen(data); /* we ignore data_length sent */ - send_extended_data(listener, message_type, + send_extended_data(listener, message_type, application_id, line_instance, call_id, transaction_id, data_length, sequence_flag, display_priority, conference_id, app_instance_id, routing_id, data); diff --git a/src/mod/endpoints/mod_skinny/skinny_protocol.h b/src/mod/endpoints/mod_skinny/skinny_protocol.h index b741fa9c8a..d85a190ba8 100644 --- a/src/mod/endpoints/mod_skinny/skinny_protocol.h +++ b/src/mod/endpoints/mod_skinny/skinny_protocol.h @@ -839,6 +839,14 @@ switch_status_t send_display_pri_notify(listener_t *listener, switch_status_t send_reset(listener_t *listener, uint32_t reset_type); +switch_status_t send_data(listener_t *listener, uint32_t message_type, + uint32_t application_id, + uint32_t line_instance, + uint32_t call_id, + uint32_t transaction_id, + uint32_t data_length, + const char *data); + switch_status_t send_extended_data(listener_t *listener, uint32_t message_type, uint32_t application_id, uint32_t line_instance,