]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: send proper USER_TO_DEVICE_DATA_MESSAGE
authorMathieu Parent <math.parent@gmail.com>
Fri, 24 Sep 2010 17:41:52 +0000 (19:41 +0200)
committerMathieu Parent <math.parent@gmail.com>
Sat, 25 Sep 2010 08:49:13 +0000 (10:49 +0200)
src/mod/endpoints/mod_skinny/mod_skinny.c
src/mod/endpoints/mod_skinny/skinny_protocol.h

index fc7d8721a076599246ae4ba1fb634ea2dcc817a8..2df8937647f86b3e3fc509e9d98a9e2acd551f4c 100644 (file)
@@ -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);
index b741fa9c8a274ed3c27be862b26d65e525f1eae2..d85a190ba8ed021523d7e2b15f7998fb8ea57ee7 100644 (file)
@@ -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,