mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
Skinny: use a const for SKINNY_KEY_SET_IN_USE_HINT
This commit is contained in:
parent
61d3c56fde
commit
c9aab94aa4
@ -651,7 +651,7 @@ int channel_on_routing_callback(void *pArg, int argc, char **argv, char **column
|
|||||||
} else {
|
} else {
|
||||||
send_set_lamp(listener, SKINNY_BUTTON_LINE, line_instance, SKINNY_LAMP_ON);
|
send_set_lamp(listener, SKINNY_BUTTON_LINE, line_instance, SKINNY_LAMP_ON);
|
||||||
skinny_line_set_state(listener, line_instance, helper->tech_pvt->call_id, SKINNY_IN_USE_REMOTELY);
|
skinny_line_set_state(listener, line_instance, helper->tech_pvt->call_id, SKINNY_IN_USE_REMOTELY);
|
||||||
send_select_soft_keys(listener, line_instance, helper->tech_pvt->call_id, 10, 0xffff);
|
send_select_soft_keys(listener, line_instance, helper->tech_pvt->call_id, SKINNY_KEY_SET_IN_USE_HINT, 0xffff);
|
||||||
send_display_prompt_status(listener, 0, SKINNY_DISP_IN_USE_REMOTE,
|
send_display_prompt_status(listener, 0, SKINNY_DISP_IN_USE_REMOTE,
|
||||||
line_instance, helper->tech_pvt->call_id);
|
line_instance, helper->tech_pvt->call_id);
|
||||||
skinny_session_send_call_info(helper->tech_pvt->session, listener, line_instance);
|
skinny_session_send_call_info(helper->tech_pvt->session, listener, line_instance);
|
||||||
|
@ -216,6 +216,7 @@ struct skinny_table SKINNY_KEY_SETS[] = {
|
|||||||
{"KeySetConnectedWithConference", SKINNY_KEY_SET_CONNECTED_WITH_CONFERENCE},
|
{"KeySetConnectedWithConference", SKINNY_KEY_SET_CONNECTED_WITH_CONFERENCE},
|
||||||
{"KeySetRingOut", SKINNY_KEY_SET_RING_OUT},
|
{"KeySetRingOut", SKINNY_KEY_SET_RING_OUT},
|
||||||
{"KeySetOffHookWithFeatures", SKINNY_KEY_SET_OFF_HOOK_WITH_FEATURES},
|
{"KeySetOffHookWithFeatures", SKINNY_KEY_SET_OFF_HOOK_WITH_FEATURES},
|
||||||
|
{"KeySetInUseHint", SKINNY_KEY_SET_IN_USE_HINT},
|
||||||
{NULL, 0}
|
{NULL, 0}
|
||||||
};
|
};
|
||||||
SKINNY_DECLARE_ID2STR(skinny_soft_key_set2str, SKINNY_KEY_SETS, "UNKNOWN_SOFT_KEY_SET")
|
SKINNY_DECLARE_ID2STR(skinny_soft_key_set2str, SKINNY_KEY_SETS, "UNKNOWN_SOFT_KEY_SET")
|
||||||
|
@ -210,8 +210,9 @@ enum skinny_key_set {
|
|||||||
SKINNY_KEY_SET_CONNECTED_WITH_CONFERENCE = 7,
|
SKINNY_KEY_SET_CONNECTED_WITH_CONFERENCE = 7,
|
||||||
SKINNY_KEY_SET_RING_OUT = 8,
|
SKINNY_KEY_SET_RING_OUT = 8,
|
||||||
SKINNY_KEY_SET_OFF_HOOK_WITH_FEATURES = 9,
|
SKINNY_KEY_SET_OFF_HOOK_WITH_FEATURES = 9,
|
||||||
|
SKINNY_KEY_SET_IN_USE_HINT = 10,
|
||||||
};
|
};
|
||||||
extern struct skinny_table SKINNY_KEY_SETS[11];
|
extern struct skinny_table SKINNY_KEY_SETS[12];
|
||||||
const char *skinny_soft_key_set2str(uint32_t id);
|
const char *skinny_soft_key_set2str(uint32_t id);
|
||||||
uint32_t skinny_str2soft_key_set(const char *str);
|
uint32_t skinny_str2soft_key_set(const char *str);
|
||||||
#define SKINNY_PUSH_SOFT_KEY_SETS SKINNY_DECLARE_PUSH_MATCH(SKINNY_KEY_SETS)
|
#define SKINNY_PUSH_SOFT_KEY_SETS SKINNY_DECLARE_PUSH_MATCH(SKINNY_KEY_SETS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user