Merged revisions 104920 via svnmerge from
authorJason Parker <jparker@digium.com>
Thu, 28 Feb 2008 04:37:28 +0000 (04:37 +0000)
committerJason Parker <jparker@digium.com>
Thu, 28 Feb 2008 04:37:28 +0000 (04:37 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r104920 | qwell | 2008-02-27 22:31:21 -0600 (Wed, 27 Feb 2008) | 2 lines

According to a video at www.cisco.com, the 7921G supports 6 line appearances.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104921 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index 6d79aab..90a611b 100644 (file)
@@ -1373,11 +1373,14 @@ static void *get_button_template(struct skinnysession *s, struct button_definiti
                        (btn++)->buttonDefinition = BT_HOLD;
                        break;
                case SKINNY_DEVICE_7920:
-               case SKINNY_DEVICE_7921:
                        /* XXX I don't know if this is right. */
                        for (i = 0; i < 4; i++)
                                (btn++)->buttonDefinition = BT_CUST_LINESPEEDDIAL;
                        break;
+               case SKINNY_DEVICE_7921:
+                       for (i = 0; i < 6; i++)
+                               (btn++)->buttonDefinition = BT_CUST_LINESPEEDDIAL;
+                       break;
                case SKINNY_DEVICE_7902:
                        ast_log(LOG_WARNING, "Unsupported device type '%d (7902)' found.\n", d->type);
                        break;