]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: use a const for SKINNY_KEY_SET_IN_USE_HINT
authorMathieu Parent <math.parent@gmail.com>
Thu, 24 Feb 2011 21:25:59 +0000 (22:25 +0100)
committerMathieu Parent <math.parent@gmail.com>
Thu, 24 Feb 2011 23:05:56 +0000 (00:05 +0100)
src/mod/endpoints/mod_skinny/mod_skinny.c
src/mod/endpoints/mod_skinny/skinny_tables.c
src/mod/endpoints/mod_skinny/skinny_tables.h

index 91d81dacf25c6d41188d570d0bf135e93e787bff..46acdb6bacaaa4baffa6da1fa795c2326c33d7b4 100644 (file)
@@ -651,7 +651,7 @@ int channel_on_routing_callback(void *pArg, int argc, char **argv, char **column
            } else {
                        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);
-                       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,
                                line_instance, helper->tech_pvt->call_id);
                        skinny_session_send_call_info(helper->tech_pvt->session, listener, line_instance);
index 466a70538d093be57173b742277ba3e3412b4054..4488b7571cb92e3fb60774a7574cac5443a4a11a 100644 (file)
@@ -216,6 +216,7 @@ struct skinny_table SKINNY_KEY_SETS[] = {
     {"KeySetConnectedWithConference", SKINNY_KEY_SET_CONNECTED_WITH_CONFERENCE},
     {"KeySetRingOut", SKINNY_KEY_SET_RING_OUT},
     {"KeySetOffHookWithFeatures", SKINNY_KEY_SET_OFF_HOOK_WITH_FEATURES},
+    {"KeySetInUseHint", SKINNY_KEY_SET_IN_USE_HINT},
     {NULL, 0}
 };
 SKINNY_DECLARE_ID2STR(skinny_soft_key_set2str, SKINNY_KEY_SETS, "UNKNOWN_SOFT_KEY_SET")
index bc92f9f4bf60e62e0fa1f28c4601501c61ae59c0..e1144a92036178557ad19dc7d3f5b44caa5862b1 100644 (file)
@@ -210,8 +210,9 @@ enum skinny_key_set {
     SKINNY_KEY_SET_CONNECTED_WITH_CONFERENCE = 7,
     SKINNY_KEY_SET_RING_OUT = 8,
     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);
 uint32_t skinny_str2soft_key_set(const char *str);
 #define SKINNY_PUSH_SOFT_KEY_SETS SKINNY_DECLARE_PUSH_MATCH(SKINNY_KEY_SETS)