提交 3c36d269 authored 作者: Mathieu Parent's avatar Mathieu Parent

Skinny: answer FeatureStatReqMessage with FeatureStatMessage

'#buggy version!'

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16796 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 32565f50
<profile name="internal">
<settings>
<param name="domain" value="$${domain}}"/>
<param name="ip" value="$${local_ip_v4}"/>
<param name="port" value="2000"/>
<param name="dialplan" value="XML"/>
<param name="context" value="public"/>
<param name="keep-alive" value="60"/>
<param name="date-format" value="D/M/Y"/>
<param name="odbc-dsn" value=""/>
<param name="debug" value="4"/>
</settings>
</profile>
...@@ -159,6 +159,12 @@ struct soft_key_event_message { ...@@ -159,6 +159,12 @@ struct soft_key_event_message {
/* SoftKeyTemplateReqMessage */ /* SoftKeyTemplateReqMessage */
#define SOFT_KEY_TEMPLATE_REQ_MESSAGE 0x0028 #define SOFT_KEY_TEMPLATE_REQ_MESSAGE 0x0028
/* FeatureStatReqMessage */
#define FEATURE_STAT_REQ_MESSAGE 0x0034
struct feature_stat_req_message {
uint32_t feature_index;
};
/* HeadsetStatusMessage */ /* HeadsetStatusMessage */
#define HEADSET_STATUS_MESSAGE 0x002B #define HEADSET_STATUS_MESSAGE 0x002B
struct headset_status_message { struct headset_status_message {
...@@ -437,6 +443,16 @@ struct dialed_number_message { ...@@ -437,6 +443,16 @@ struct dialed_number_message {
uint32_t call_id; uint32_t call_id;
}; };
/* FeatureStatMessage */
#define FEATURE_STAT_RES_MESSAGE 0x011F
struct feature_stat_res_message {
uint32_t index;
uint32_t id;
char text_label[40];
uint32_t status;
};
/*****************************************************************************/ /*****************************************************************************/
/* SKINNY MESSAGE */ /* SKINNY MESSAGE */
/*****************************************************************************/ /*****************************************************************************/
...@@ -456,6 +472,7 @@ union skinny_data { ...@@ -456,6 +472,7 @@ union skinny_data {
struct alarm_message alarm; struct alarm_message alarm;
struct open_receive_channel_ack_message open_receive_channel_ack; struct open_receive_channel_ack_message open_receive_channel_ack;
struct soft_key_event_message soft_key_event; struct soft_key_event_message soft_key_event;
struct feature_stat_req_message feature_req;
struct headset_status_message headset_status; struct headset_status_message headset_status;
struct register_available_lines_message reg_lines; struct register_available_lines_message reg_lines;
struct register_ack_message reg_ack; struct register_ack_message reg_ack;
...@@ -483,6 +500,7 @@ union skinny_data { ...@@ -483,6 +500,7 @@ union skinny_data {
struct clear_prompt_status_message clear_prompt_status; struct clear_prompt_status_message clear_prompt_status;
struct activate_call_plane_message activate_call_plane; struct activate_call_plane_message activate_call_plane;
struct dialed_number_message dialed_number; struct dialed_number_message dialed_number;
struct feature_stat_res_message feature_res;
uint16_t as_uint16; uint16_t as_uint16;
char as_char; char as_char;
...@@ -594,7 +612,7 @@ uint32_t func(const char *str)\ ...@@ -594,7 +612,7 @@ uint32_t func(const char *str)\
status = SWITCH_STATUS_SUCCESS;\ status = SWITCH_STATUS_SUCCESS;\
} }
struct skinny_table SKINNY_MESSAGE_TYPES[52]; struct skinny_table SKINNY_MESSAGE_TYPES[51];
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)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论