add a few additional skinny message types

This commit is contained in:
Nathan Neulinger 2013-07-12 11:05:52 -05:00
parent fd31247ef9
commit 37e6195e35
3 changed files with 15 additions and 1 deletions

View File

@ -145,6 +145,8 @@ struct PACKED capabilities_res_message {
struct station_capabilities caps[SWITCH_MAX_CODECS];
};
#define SERVER_REQ_MESSAGE 0x0012
/* AlarmMessage */
#define ALARM_MESSAGE 0x0020
struct PACKED alarm_message {
@ -207,6 +209,8 @@ struct PACKED data_message {
#define DEVICE_TO_USER_DATA_RESPONSE_MESSAGE 0x002F
/* See struct PACKED data_message */
#define DEVICE_UPDATECAPABILITIES 0x0030
/* ServiceUrlStatReqMessage */
#define SERVICE_URL_STAT_REQ_MESSAGE 0x0033
struct PACKED service_url_stat_req_message {
@ -442,6 +446,8 @@ struct PACKED register_reject_message {
char error[33];
};
#define SERVER_RESPONSE_MESSAGE 0x009E
/* ResetMessage */
#define RESET_MESSAGE 0x009F
struct PACKED reset_message {
@ -723,6 +729,8 @@ typedef struct skinny_message skinny_message_t;
/* SKINNY TYPES */
/*****************************************************************************/
enum skinny_codecs {
SKINNY_CODEC_NONE = 0,
SKINNY_CODEC_NONSTANDARD = 1,
SKINNY_CODEC_ALAW_64K = 2,
SKINNY_CODEC_ALAW_56K = 3,
SKINNY_CODEC_ULAW_64K = 4,
@ -744,6 +752,8 @@ enum skinny_codecs {
SKINNY_CODEC_WIDEBAND_256K = 25,
SKINNY_CODEC_DATA_64K = 32,
SKINNY_CODEC_DATA_56K = 33,
SKINNY_CODEC_G722_1_32K = 40,
SKINNY_CODEC_G722_1_24K = 41,
SKINNY_CODEC_GSM = 80,
SKINNY_CODEC_ACTIVEVOICE = 81,
SKINNY_CODEC_G726_32K = 82,
@ -754,6 +764,7 @@ enum skinny_codecs {
SKINNY_CODEC_H261 = 100,
SKINNY_CODEC_H263 = 101,
SKINNY_CODEC_VIDEO = 102,
SKINNY_CODEC_H264 = 103,
SKINNY_CODEC_T120 = 105,
SKINNY_CODEC_H224 = 106,
SKINNY_CODEC_RFC2833_DYNPAYLOAD = 257

View File

@ -61,6 +61,7 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
{REGISTER_AVAILABLE_LINES_MESSAGE, "RegisterAvailableLinesMessage"},
{DEVICE_TO_USER_DATA_MESSAGE, "DeviceToUserDataMessage"},
{DEVICE_TO_USER_DATA_RESPONSE_MESSAGE, "DeviceToUserDataResponseMessage"},
{DEVICE_UPDATECAPABILITIES, "DeviceUpdateCapabilities"},
{SERVICE_URL_STAT_REQ_MESSAGE, "ServiceUrlStatReqMessage"},
{FEATURE_STAT_REQ_MESSAGE, "FeatureStatReqMessage"},
{DEVICE_TO_USER_DATA_VERSION1_MESSAGE, "DeviceToUserDataVersion1Message"},
@ -84,7 +85,9 @@ struct skinny_table SKINNY_MESSAGE_TYPES[] = {
{BUTTON_TEMPLATE_RES_MESSAGE, "ButtonTemplateResMessage"},
{VERSION_MESSAGE, "VersionMessage"},
{CAPABILITIES_REQ_MESSAGE, "CapabilitiesReqMessage"},
{SERVER_REQ_MESSAGE, "Server Request Message"},
{REGISTER_REJECT_MESSAGE, "RegisterRejectMessage"},
{SERVER_RESPONSE_MESSAGE, "ServerResponseMessage"},
{RESET_MESSAGE, "ResetMessage"},
{KEEP_ALIVE_ACK_MESSAGE, "KeepAliveAckMessage"},
{OPEN_RECEIVE_CHANNEL_MESSAGE, "OpenReceiveChannelMessage"},

View File

@ -87,7 +87,7 @@ if (my_matches) {\
}
extern struct skinny_table SKINNY_MESSAGE_TYPES[72];
extern struct skinny_table SKINNY_MESSAGE_TYPES[75];
const char *skinny_message_type2str(uint32_t id);
uint32_t skinny_str2message_type(const char *str);
#define SKINNY_PUSH_MESSAGE_TYPES SKINNY_DECLARE_PUSH_MATCH(SKINNY_MESSAGE_TYPES)