Skinny: send proper USER_TO_DEVICE_DATA_MESSAGE
This commit is contained in:
parent
b2fd42ef09
commit
d018fa489a
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue