[Asterisk-Dev] Button Templates for 12SP+ and 30 VIP chan_sccp.c

Peter E. Clark peter_clark at yahoo.com
Mon Feb 16 09:02:53 MST 2004


Here's some button templates for the 30 VIP and 12SP+ for chan_sccp.c. 
Since the 79xx phones all have numeric model numbers and the code does
an atoi on the model number to look up the button template, I just used
12 for the 12SP+ and 30 for the 30 VIP.  From what I've read on Cisco's
site, all 12 series phones use the same button template. 

Pete

static const btnlist layout_12SP [] = {
  { BtLine },
  { BtLine },
  { BtLastNumberRedial },
  { BtSpeedDial },
  { BtSpeedDial },
  { BtSpeedDial },
  { BtHold},
  { BtTransfer },
  { BtForwardAll },
  { BtCallPark },
  { BtVoiceMail },
  { BtConference },
};

static const btnlist layout_30VIP [] = {
  { BtLine },				// 1 - 4 Line
  { BtLine },				// 2
  { BtLine },				// 3
  { BtLine },				// 4
  { BtCallPark },			// 5 Park
  { BtLastNumberRedial },	        // 6 Redial
  { BtNone },				// 7 button 7 not used?
  { BtSpeedDial },			// 8 - 13 Speed Dial
  { BtSpeedDial },			// 9
  { BtSpeedDial },			// 10
  { BtSpeedDial },			// 11
  { BtSpeedDial },			// 12
  { BtSpeedDial },			// 13
  { BtVoiceMail }, 			// 14 Message waiting indicator
  { BtForwardAll },			// 15 Call forward
  { BtConference },			// 16 Conf.
  { BtNone },				// 17 not used?
  { BtNone },				// 18 not used?
  { BtNone },				// 19 not used?
  { BtNone },				// 20 not used?
  { BtNone },				// 21 not used?
  { BtSpeedDial },			// 22 - 25 Speed Dial
  { BtSpeedDial },			// 23
  { BtSpeedDial },			// 24
  { BtSpeedDial },			// 25
};

static const button_modes default_layouts [] = {
  { "7910", 10, layout_7910 },
  { "7920", 6,  layout_7920 },
  { "7940", 2,  layout_7940 },
  { "7960", 6,  layout_7960 },
  { "12",   12, layout_12SP },
  { "30",   25, layout_30VIP },
  { NULL, 0 },
};





More information about the asterisk-dev mailing list