Skinny: noop ForwardStatReq and ForwardStat implementation
This commit is contained in:
parent
f217ec48a4
commit
d86388dbf7
|
@ -97,6 +97,12 @@ struct PACKED on_hook_message {
|
||||||
uint32_t call_id;
|
uint32_t call_id;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* ForwardStatReqMessage */
|
||||||
|
#define FORWARD_STAT_REQ_MESSAGE 0x0009
|
||||||
|
struct PACKED forward_stat_req_message {
|
||||||
|
uint32_t line_instance;
|
||||||
|
};
|
||||||
|
|
||||||
/* SpeedDialStatReqMessage */
|
/* SpeedDialStatReqMessage */
|
||||||
#define SPEED_DIAL_STAT_REQ_MESSAGE 0x000A
|
#define SPEED_DIAL_STAT_REQ_MESSAGE 0x000A
|
||||||
struct PACKED speed_dial_stat_req_message {
|
struct PACKED speed_dial_stat_req_message {
|
||||||
|
@ -328,6 +334,19 @@ struct PACKED call_info_message {
|
||||||
uint32_t party_pi_restriction_bits;
|
uint32_t party_pi_restriction_bits;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* ForwardStatMessage */
|
||||||
|
#define FORWARD_STAT_MESSAGE 0x0090
|
||||||
|
struct PACKED forward_stat_message {
|
||||||
|
uint32_t active_forward;
|
||||||
|
uint32_t line_instance;
|
||||||
|
uint32_t forward_all_active;
|
||||||
|
char forward_all_number[24];
|
||||||
|
uint32_t forward_busy_active;
|
||||||
|
char forward_busy_number[24];
|
||||||
|
uint32_t forward_noanswer_active;
|
||||||
|
char forward_noanswer_number[24];
|
||||||
|
};
|
||||||
|
|
||||||
/* SpeedDialStatMessage */
|
/* SpeedDialStatMessage */
|
||||||
#define SPEED_DIAL_STAT_RES_MESSAGE 0x0091
|
#define SPEED_DIAL_STAT_RES_MESSAGE 0x0091
|
||||||
struct PACKED speed_dial_stat_res_message {
|
struct PACKED speed_dial_stat_res_message {
|
||||||
|
@ -566,76 +585,78 @@ struct PACKED service_url_stat_res_message {
|
||||||
|
|
||||||
union skinny_data {
|
union skinny_data {
|
||||||
/* no data for KEEP_ALIVE_MESSAGE */
|
/* no data for KEEP_ALIVE_MESSAGE */
|
||||||
struct register_message reg;
|
struct register_message reg;
|
||||||
struct port_message port;
|
struct port_message port;
|
||||||
struct keypad_button_message keypad_button;
|
struct keypad_button_message keypad_button;
|
||||||
struct enbloc_call_message enbloc_call;
|
struct enbloc_call_message enbloc_call;
|
||||||
struct stimulus_message stimulus;
|
struct stimulus_message stimulus;
|
||||||
struct off_hook_message off_hook;
|
struct off_hook_message off_hook;
|
||||||
struct on_hook_message on_hook;
|
struct on_hook_message on_hook;
|
||||||
struct speed_dial_stat_req_message speed_dial_req;
|
struct forward_stat_req_message forward_stat_req;
|
||||||
struct line_stat_req_message line_req;
|
struct speed_dial_stat_req_message speed_dial_req;
|
||||||
/* no data for CONFIG_STAT_REQ_MESSAGE */
|
struct line_stat_req_message line_req;
|
||||||
/* no data for TIME_DATE_REQ_MESSAGE */
|
/* no data for CONFIG_STAT_REQ_MESSAGE */
|
||||||
/* no data for BUTTON_TEMPLATE_REQ_MESSAGE */
|
/* no data for TIME_DATE_REQ_MESSAGE */
|
||||||
/* no data for VERSION_REQ_MESSAGE */
|
/* no data for BUTTON_TEMPLATE_REQ_MESSAGE */
|
||||||
struct capabilities_res_message cap_res;
|
/* no data for VERSION_REQ_MESSAGE */
|
||||||
struct alarm_message alarm;
|
struct capabilities_res_message cap_res;
|
||||||
struct open_receive_channel_ack_message open_receive_channel_ack;
|
struct alarm_message alarm;
|
||||||
/* no data for SOFT_KEY_SET_REQ_MESSAGE */
|
struct open_receive_channel_ack_message open_receive_channel_ack;
|
||||||
struct soft_key_event_message soft_key_event;
|
/* no data for SOFT_KEY_SET_REQ_MESSAGE */
|
||||||
/* no data for UNREGISTER_MESSAGE */
|
struct soft_key_event_message soft_key_event;
|
||||||
/* no data for SOFT_KEY_TEMPLATE_REQ_MESSAGE */
|
/* no data for UNREGISTER_MESSAGE */
|
||||||
struct headset_status_message headset_status;
|
/* no data for SOFT_KEY_TEMPLATE_REQ_MESSAGE */
|
||||||
struct register_available_lines_message reg_lines;
|
struct headset_status_message headset_status;
|
||||||
/* see field "data" for DEVICE_TO_USER_DATA_MESSAGE */
|
struct register_available_lines_message reg_lines;
|
||||||
/* see field "data" for DEVICE_TO_USER_DATA_RESPONSE_MESSAGE */
|
/* see field "data" for DEVICE_TO_USER_DATA_MESSAGE */
|
||||||
struct service_url_stat_req_message service_url_req;
|
/* see field "data" for DEVICE_TO_USER_DATA_RESPONSE_MESSAGE */
|
||||||
struct feature_stat_req_message feature_req;
|
struct service_url_stat_req_message service_url_req;
|
||||||
/* see field "extended_data" for DEVICE_TO_USER_DATA_VERSION1_MESSAGE */
|
struct feature_stat_req_message feature_req;
|
||||||
/* see field "extended_data" for DEVICE_TO_USER_DATA_RESPONSE_VERSION1_MESSAGE */
|
/* see field "extended_data" for DEVICE_TO_USER_DATA_VERSION1_MESSAGE */
|
||||||
struct register_ack_message reg_ack;
|
/* see field "extended_data" for DEVICE_TO_USER_DATA_RESPONSE_VERSION1_MESSAGE */
|
||||||
struct start_tone_message start_tone;
|
struct register_ack_message reg_ack;
|
||||||
struct stop_tone_message stop_tone;
|
struct start_tone_message start_tone;
|
||||||
struct set_ringer_message ringer;
|
struct stop_tone_message stop_tone;
|
||||||
struct set_lamp_message lamp;
|
struct set_ringer_message ringer;
|
||||||
struct set_speaker_mode_message speaker_mode;
|
struct set_lamp_message lamp;
|
||||||
struct start_media_transmission_message start_media;
|
struct set_speaker_mode_message speaker_mode;
|
||||||
struct stop_media_transmission_message stop_media;
|
struct start_media_transmission_message start_media;
|
||||||
struct call_info_message call_info;
|
struct stop_media_transmission_message stop_media;
|
||||||
struct speed_dial_stat_res_message speed_dial_res;
|
struct call_info_message call_info;
|
||||||
struct line_stat_res_message line_res;
|
struct forward_stat_message forward_stat;
|
||||||
struct config_stat_res_message config_res;
|
struct speed_dial_stat_res_message speed_dial_res;
|
||||||
struct define_time_date_message define_time_date;
|
struct line_stat_res_message line_res;
|
||||||
struct button_template_message button_template;
|
struct config_stat_res_message config_res;
|
||||||
struct version_message version;
|
struct define_time_date_message define_time_date;
|
||||||
/* no data for CAPABILITIES_REQ_MESSAGE */
|
struct button_template_message button_template;
|
||||||
struct register_reject_message reg_rej;
|
struct version_message version;
|
||||||
struct reset_message reset;
|
/* no data for CAPABILITIES_REQ_MESSAGE */
|
||||||
/* no data for KEEP_ALIVE_ACK_MESSAGE */
|
struct register_reject_message reg_rej;
|
||||||
struct open_receive_channel_message open_receive_channel;
|
struct reset_message reset;
|
||||||
struct close_receive_channel_message close_receive_channel;
|
/* no data for KEEP_ALIVE_ACK_MESSAGE */
|
||||||
struct soft_key_template_res_message soft_key_template;
|
struct open_receive_channel_message open_receive_channel;
|
||||||
struct soft_key_set_res_message soft_key_set;
|
struct close_receive_channel_message close_receive_channel;
|
||||||
struct select_soft_keys_message select_soft_keys;
|
struct soft_key_template_res_message soft_key_template;
|
||||||
struct call_state_message call_state;
|
struct soft_key_set_res_message soft_key_set;
|
||||||
struct display_prompt_status_message display_prompt_status;
|
struct select_soft_keys_message select_soft_keys;
|
||||||
struct clear_prompt_status_message clear_prompt_status;
|
struct call_state_message call_state;
|
||||||
struct activate_call_plane_message activate_call_plane;
|
struct display_prompt_status_message display_prompt_status;
|
||||||
struct unregister_ack_message unregister_ack;
|
struct clear_prompt_status_message clear_prompt_status;
|
||||||
struct back_space_req_message back_space_req;
|
struct activate_call_plane_message activate_call_plane;
|
||||||
struct dialed_number_message dialed_number;
|
struct unregister_ack_message unregister_ack;
|
||||||
/* see field "data" for USER_TO_DEVICE_DATA_MESSAGE */
|
struct back_space_req_message back_space_req;
|
||||||
struct feature_stat_res_message feature_res;
|
struct dialed_number_message dialed_number;
|
||||||
struct display_pri_notify_message display_pri_notify;
|
/* see field "data" for USER_TO_DEVICE_DATA_MESSAGE */
|
||||||
struct service_url_stat_res_message service_url_res;
|
struct feature_stat_res_message feature_res;
|
||||||
/* see field "extended_data" for USER_TO_DEVICE_DATA_VERSION1_MESSAGE */
|
struct display_pri_notify_message display_pri_notify;
|
||||||
|
struct service_url_stat_res_message service_url_res;
|
||||||
|
/* see field "extended_data" for USER_TO_DEVICE_DATA_VERSION1_MESSAGE */
|
||||||
|
|
||||||
struct data_message data;
|
struct data_message data;
|
||||||
struct extended_data_message extended_data;
|
struct extended_data_message extended_data;
|
||||||
|
|
||||||
uint16_t as_uint16;
|
uint16_t as_uint16;
|
||||||
char as_char[1];
|
char as_char[1];
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1329,6 +1329,22 @@ switch_status_t skinny_handle_on_hook_message(listener_t *listener, skinny_messa
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
switch_status_t skinny_handle_forward_stat_req_message(listener_t *listener, skinny_message_t *request)
|
||||||
|
{
|
||||||
|
skinny_message_t *message;
|
||||||
|
|
||||||
|
skinny_check_data_length(request, sizeof(request->data.forward_stat_req));
|
||||||
|
|
||||||
|
message = switch_core_alloc(listener->pool, 12+sizeof(message->data.forward_stat));
|
||||||
|
message->type = FORWARD_STAT_MESSAGE;
|
||||||
|
message->length = 4 + sizeof(message->data.forward_stat);
|
||||||
|
|
||||||
|
message->data.forward_stat.line_instance = request->data.forward_stat_req.line_instance;
|
||||||
|
|
||||||
|
skinny_send_reply(listener, message);
|
||||||
|
|
||||||
|
return SWITCH_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
switch_status_t skinny_handle_speed_dial_stat_request(listener_t *listener, skinny_message_t *request)
|
switch_status_t skinny_handle_speed_dial_stat_request(listener_t *listener, skinny_message_t *request)
|
||||||
{
|
{
|
||||||
|
@ -2046,6 +2062,8 @@ switch_status_t skinny_handle_request(listener_t *listener, skinny_message_t *re
|
||||||
return skinny_handle_off_hook_message(listener, request);
|
return skinny_handle_off_hook_message(listener, request);
|
||||||
case ON_HOOK_MESSAGE:
|
case ON_HOOK_MESSAGE:
|
||||||
return skinny_handle_on_hook_message(listener, request);
|
return skinny_handle_on_hook_message(listener, request);
|
||||||
|
case FORWARD_STAT_REQ_MESSAGE:
|
||||||
|
return skinny_handle_forward_stat_req_message(listener, request);
|
||||||
case SPEED_DIAL_STAT_REQ_MESSAGE:
|
case SPEED_DIAL_STAT_REQ_MESSAGE:
|
||||||
return skinny_handle_speed_dial_stat_request(listener, request);
|
return skinny_handle_speed_dial_stat_request(listener, request);
|
||||||
case LINE_STAT_REQ_MESSAGE:
|
case LINE_STAT_REQ_MESSAGE:
|
||||||
|
|
|
@ -35,73 +35,75 @@
|
||||||
|
|
||||||
/* Translation tables */
|
/* Translation tables */
|
||||||
struct skinny_table SKINNY_MESSAGE_TYPES[] = {
|
struct skinny_table SKINNY_MESSAGE_TYPES[] = {
|
||||||
{"KeepAliveMessage", KEEP_ALIVE_MESSAGE},
|
{"KeepAliveMessage", KEEP_ALIVE_MESSAGE},
|
||||||
{"RegisterMessage", REGISTER_MESSAGE},
|
{"RegisterMessage", REGISTER_MESSAGE},
|
||||||
{"PortMessage", PORT_MESSAGE},
|
{"PortMessage", PORT_MESSAGE},
|
||||||
{"KeypadButtonMessage", KEYPAD_BUTTON_MESSAGE},
|
{"KeypadButtonMessage", KEYPAD_BUTTON_MESSAGE},
|
||||||
{"EnblocCallMessage", ENBLOC_CALL_MESSAGE},
|
{"EnblocCallMessage", ENBLOC_CALL_MESSAGE},
|
||||||
{"StimulusMessage", STIMULUS_MESSAGE},
|
{"StimulusMessage", STIMULUS_MESSAGE},
|
||||||
{"OffHookMessage", OFF_HOOK_MESSAGE},
|
{"OffHookMessage", OFF_HOOK_MESSAGE},
|
||||||
{"OnHookMessage", ON_HOOK_MESSAGE},
|
{"OnHookMessage", ON_HOOK_MESSAGE},
|
||||||
{"SpeedDialStatReqMessage", SPEED_DIAL_STAT_REQ_MESSAGE},
|
{"ForwardStatReqMessage", FORWARD_STAT_REQ_MESSAGE},
|
||||||
{"LineStatReqMessage", LINE_STAT_REQ_MESSAGE},
|
{"SpeedDialStatReqMessage", SPEED_DIAL_STAT_REQ_MESSAGE},
|
||||||
{"ConfigStatReqMessage", CONFIG_STAT_REQ_MESSAGE},
|
{"LineStatReqMessage", LINE_STAT_REQ_MESSAGE},
|
||||||
{"TimeDateReqMessage", TIME_DATE_REQ_MESSAGE},
|
{"ConfigStatReqMessage", CONFIG_STAT_REQ_MESSAGE},
|
||||||
{"ButtonTemplateReqMessage", BUTTON_TEMPLATE_REQ_MESSAGE},
|
{"TimeDateReqMessage", TIME_DATE_REQ_MESSAGE},
|
||||||
{"VersionReqMessage", VERSION_REQ_MESSAGE},
|
{"ButtonTemplateReqMessage", BUTTON_TEMPLATE_REQ_MESSAGE},
|
||||||
{"CapabilitiesReqMessage", CAPABILITIES_RES_MESSAGE},
|
{"VersionReqMessage", VERSION_REQ_MESSAGE},
|
||||||
{"AlarmMessage", ALARM_MESSAGE},
|
{"CapabilitiesReqMessage", CAPABILITIES_RES_MESSAGE},
|
||||||
{"OpenReceiveChannelAckMessage", OPEN_RECEIVE_CHANNEL_ACK_MESSAGE},
|
{"AlarmMessage", ALARM_MESSAGE},
|
||||||
{"SoftKeySetReqMessage", SOFT_KEY_SET_REQ_MESSAGE},
|
{"OpenReceiveChannelAckMessage", OPEN_RECEIVE_CHANNEL_ACK_MESSAGE},
|
||||||
{"SoftKeyEventMessage", SOFT_KEY_EVENT_MESSAGE},
|
{"SoftKeySetReqMessage", SOFT_KEY_SET_REQ_MESSAGE},
|
||||||
{"UnregisterMessage", UNREGISTER_MESSAGE},
|
{"SoftKeyEventMessage", SOFT_KEY_EVENT_MESSAGE},
|
||||||
{"SoftKeyTemplateReqMessage", SOFT_KEY_TEMPLATE_REQ_MESSAGE},
|
{"UnregisterMessage", UNREGISTER_MESSAGE},
|
||||||
{"HeadsetStatusMessage", HEADSET_STATUS_MESSAGE},
|
{"SoftKeyTemplateReqMessage", SOFT_KEY_TEMPLATE_REQ_MESSAGE},
|
||||||
{"RegisterAvailableLinesMessage", REGISTER_AVAILABLE_LINES_MESSAGE},
|
{"HeadsetStatusMessage", HEADSET_STATUS_MESSAGE},
|
||||||
{"DeviceToUserDataMessage", DEVICE_TO_USER_DATA_MESSAGE},
|
{"RegisterAvailableLinesMessage", REGISTER_AVAILABLE_LINES_MESSAGE},
|
||||||
{"DeviceToUserDataResponseMessage", DEVICE_TO_USER_DATA_RESPONSE_MESSAGE},
|
{"DeviceToUserDataMessage", DEVICE_TO_USER_DATA_MESSAGE},
|
||||||
{"ServiceUrlStatReqMessage", SERVICE_URL_STAT_REQ_MESSAGE},
|
{"DeviceToUserDataResponseMessage", DEVICE_TO_USER_DATA_RESPONSE_MESSAGE},
|
||||||
{"FeatureStatReqMessage", FEATURE_STAT_REQ_MESSAGE},
|
{"ServiceUrlStatReqMessage", SERVICE_URL_STAT_REQ_MESSAGE},
|
||||||
{"DeviceToUserDataVersion1Message", DEVICE_TO_USER_DATA_VERSION1_MESSAGE},
|
{"FeatureStatReqMessage", FEATURE_STAT_REQ_MESSAGE},
|
||||||
{"DeviceToUserDataResponseVersion1Message", DEVICE_TO_USER_DATA_RESPONSE_VERSION1_MESSAGE},
|
{"DeviceToUserDataVersion1Message", DEVICE_TO_USER_DATA_VERSION1_MESSAGE},
|
||||||
{"RegisterAckMessage", REGISTER_ACK_MESSAGE},
|
{"DeviceToUserDataResponseVersion1Message", DEVICE_TO_USER_DATA_RESPONSE_VERSION1_MESSAGE},
|
||||||
{"StartToneMessage", START_TONE_MESSAGE},
|
{"RegisterAckMessage", REGISTER_ACK_MESSAGE},
|
||||||
{"StopToneMessage", STOP_TONE_MESSAGE},
|
{"StartToneMessage", START_TONE_MESSAGE},
|
||||||
{"SetRingerMessage", SET_RINGER_MESSAGE},
|
{"StopToneMessage", STOP_TONE_MESSAGE},
|
||||||
{"SetLampMessage", SET_LAMP_MESSAGE},
|
{"SetRingerMessage", SET_RINGER_MESSAGE},
|
||||||
{"SetSpeakerModeMessage", SET_SPEAKER_MODE_MESSAGE},
|
{"SetLampMessage", SET_LAMP_MESSAGE},
|
||||||
{"StartMediaTransmissionMessage", START_MEDIA_TRANSMISSION_MESSAGE},
|
{"SetSpeakerModeMessage", SET_SPEAKER_MODE_MESSAGE},
|
||||||
{"StopMediaTransmissionMessage", STOP_MEDIA_TRANSMISSION_MESSAGE},
|
{"StartMediaTransmissionMessage", START_MEDIA_TRANSMISSION_MESSAGE},
|
||||||
{"CallInfoMessage", CALL_INFO_MESSAGE},
|
{"StopMediaTransmissionMessage", STOP_MEDIA_TRANSMISSION_MESSAGE},
|
||||||
{"SpeedDialStatResMessage", SPEED_DIAL_STAT_RES_MESSAGE},
|
{"CallInfoMessage", CALL_INFO_MESSAGE},
|
||||||
{"LineStatResMessage", LINE_STAT_RES_MESSAGE},
|
{"ForwardStatMessage", FORWARD_STAT_MESSAGE},
|
||||||
{"ConfigStatResMessage", CONFIG_STAT_RES_MESSAGE},
|
{"SpeedDialStatResMessage", SPEED_DIAL_STAT_RES_MESSAGE},
|
||||||
{"DefineTimeDateMessage", DEFINE_TIME_DATE_MESSAGE},
|
{"LineStatResMessage", LINE_STAT_RES_MESSAGE},
|
||||||
{"ButtonTemplateResMessage", BUTTON_TEMPLATE_RES_MESSAGE},
|
{"ConfigStatResMessage", CONFIG_STAT_RES_MESSAGE},
|
||||||
{"VersionMessage", VERSION_MESSAGE},
|
{"DefineTimeDateMessage", DEFINE_TIME_DATE_MESSAGE},
|
||||||
{"CapabilitiesReqMessage", CAPABILITIES_REQ_MESSAGE},
|
{"ButtonTemplateResMessage", BUTTON_TEMPLATE_RES_MESSAGE},
|
||||||
{"RegisterRejectMessage", REGISTER_REJECT_MESSAGE},
|
{"VersionMessage", VERSION_MESSAGE},
|
||||||
{"ResetMessage", RESET_MESSAGE},
|
{"CapabilitiesReqMessage", CAPABILITIES_REQ_MESSAGE},
|
||||||
{"KeepAliveAckMessage", KEEP_ALIVE_ACK_MESSAGE},
|
{"RegisterRejectMessage", REGISTER_REJECT_MESSAGE},
|
||||||
{"OpenReceiveChannelMessage", OPEN_RECEIVE_CHANNEL_MESSAGE},
|
{"ResetMessage", RESET_MESSAGE},
|
||||||
{"CloseReceiveChannelMessage", CLOSE_RECEIVE_CHANNEL_MESSAGE},
|
{"KeepAliveAckMessage", KEEP_ALIVE_ACK_MESSAGE},
|
||||||
{"SoftKeyTemplateResMessage", SOFT_KEY_TEMPLATE_RES_MESSAGE},
|
{"OpenReceiveChannelMessage", OPEN_RECEIVE_CHANNEL_MESSAGE},
|
||||||
{"SoftKeySetResMessage", SOFT_KEY_SET_RES_MESSAGE},
|
{"CloseReceiveChannelMessage", CLOSE_RECEIVE_CHANNEL_MESSAGE},
|
||||||
{"SelectSoftKeysMessage", SELECT_SOFT_KEYS_MESSAGE},
|
{"SoftKeyTemplateResMessage", SOFT_KEY_TEMPLATE_RES_MESSAGE},
|
||||||
{"CallStateMessage", CALL_STATE_MESSAGE},
|
{"SoftKeySetResMessage", SOFT_KEY_SET_RES_MESSAGE},
|
||||||
{"DisplayPromptStatusMessage", DISPLAY_PROMPT_STATUS_MESSAGE},
|
{"SelectSoftKeysMessage", SELECT_SOFT_KEYS_MESSAGE},
|
||||||
{"ClearPromptStatusMessage", CLEAR_PROMPT_STATUS_MESSAGE},
|
{"CallStateMessage", CALL_STATE_MESSAGE},
|
||||||
{"ActivateCallPlaneMessage", ACTIVATE_CALL_PLANE_MESSAGE},
|
{"DisplayPromptStatusMessage", DISPLAY_PROMPT_STATUS_MESSAGE},
|
||||||
{"UnregisterAckMessage", UNREGISTER_ACK_MESSAGE},
|
{"ClearPromptStatusMessage", CLEAR_PROMPT_STATUS_MESSAGE},
|
||||||
{"BackSpaceReqMessage", BACK_SPACE_REQ_MESSAGE},
|
{"ActivateCallPlaneMessage", ACTIVATE_CALL_PLANE_MESSAGE},
|
||||||
{"DialedNumberMessage", DIALED_NUMBER_MESSAGE},
|
{"UnregisterAckMessage", UNREGISTER_ACK_MESSAGE},
|
||||||
{"UserToDeviceDataMessage", USER_TO_DEVICE_DATA_MESSAGE},
|
{"BackSpaceReqMessage", BACK_SPACE_REQ_MESSAGE},
|
||||||
{"FeatureResMessage", FEATURE_STAT_RES_MESSAGE},
|
{"DialedNumberMessage", DIALED_NUMBER_MESSAGE},
|
||||||
{"DisplayPriNotifyMessage", DISPLAY_PRI_NOTIFY_MESSAGE},
|
{"UserToDeviceDataMessage", USER_TO_DEVICE_DATA_MESSAGE},
|
||||||
{"ServiceUrlStatMessage", SERVICE_URL_STAT_RES_MESSAGE},
|
{"FeatureResMessage", FEATURE_STAT_RES_MESSAGE},
|
||||||
{"UserToDeviceDataVersion1Message", USER_TO_DEVICE_DATA_VERSION1_MESSAGE},
|
{"DisplayPriNotifyMessage", DISPLAY_PRI_NOTIFY_MESSAGE},
|
||||||
{"XMLAlarmMessage", XML_ALARM_MESSAGE},
|
{"ServiceUrlStatMessage", SERVICE_URL_STAT_RES_MESSAGE},
|
||||||
{NULL, 0}
|
{"UserToDeviceDataVersion1Message", USER_TO_DEVICE_DATA_VERSION1_MESSAGE},
|
||||||
|
{"XMLAlarmMessage", XML_ALARM_MESSAGE},
|
||||||
|
{NULL, 0}
|
||||||
};
|
};
|
||||||
SKINNY_DECLARE_ID2STR(skinny_message_type2str, SKINNY_MESSAGE_TYPES, "UnknownMessage")
|
SKINNY_DECLARE_ID2STR(skinny_message_type2str, SKINNY_MESSAGE_TYPES, "UnknownMessage")
|
||||||
SKINNY_DECLARE_STR2ID(skinny_str2message_type, SKINNY_MESSAGE_TYPES, -1)
|
SKINNY_DECLARE_STR2ID(skinny_str2message_type, SKINNY_MESSAGE_TYPES, -1)
|
||||||
|
|
|
@ -87,7 +87,7 @@ uint32_t func(const char *str)\
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern struct skinny_table SKINNY_MESSAGE_TYPES[67];
|
extern struct skinny_table SKINNY_MESSAGE_TYPES[69];
|
||||||
const char *skinny_message_type2str(uint32_t id);
|
const char *skinny_message_type2str(uint32_t id);
|
||||||
uint32_t skinny_str2message_type(const char *str);
|
uint32_t skinny_str2message_type(const char *str);
|
||||||
#define SKINNY_PUSH_MESSAGE_TYPES SKINNY_DECLARE_PUSH_MATCH(SKINNY_MESSAGE_TYPES)
|
#define SKINNY_PUSH_MESSAGE_TYPES SKINNY_DECLARE_PUSH_MATCH(SKINNY_MESSAGE_TYPES)
|
||||||
|
|
Loading…
Reference in New Issue