Configuring Cisco 12SP+ with SCCP

Configuring Cisco 12SP+ using SCCP


This setup gives you basic callerid, 3 speed dials and 2 lines/extensions.


The version of sccp we are using

SCCP channel version: 20060207


download it from http://chan-sccp.sourceforge.net

compile and install it per the RTFM in the package
(when you 'make', choose no for the first two options or you will get compilation errors)


edit /path/to/*/modules.conf

noload => chan_skinny.so
load => chan_sccp.so





edit /path/to/*/sccp.conf



[globals]
;general settings
servername = Asterisk
keepalive = 60
debug = 10 ;change this to 1 when you know your phone is working
context = default
dateFormat = D.M.Y
bindaddr = IP_OF_*_SERVER
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g723
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 0
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=en
deny=0.0.0.0/0.0.0.0
permit=192.168.1.0/255.255.255.0
localnet = 192.168.1.0/255.255.255.0
dnd = off
rtptos = 184
echocancel = on
silencesuppression = off
trustphoneip = no
tos = 0x68
private = on
mwilamp = on
mwioncall = off
cfwdall = off
cfwdbusy = off

[devices]
;devices section
type = 12SP

; EXT1 & EXT2 are extension numbers defined in extensions.conf (replace EXT1 & EXT2 with real ext numbers)
; you can omit EXT2 if you are only going to use one line.

;autologin = EXT1
autologin = EXT1,EXT2
description = cisco12sp
transfer = on
speeddial = 1234,SPDIAL1
speeddial = 5678,SPDIAL2
speeddial = 9012,SPDIAL3
dnd = off
deny=0.0.0.0/0.0.0.0
permit=IP_OF_CISCO12SP+/255.255.255.255
private = off
mwilamp = flash
mwioncall = on
device => SEP(UR_MAC_ADDY_OF_12SP)

id = EXT1
pin = 123456
context = extension:context
cid_name= Cisco
cid_num = EXT1
incominglimit = 2
transfer=on
mailbox=VMB#
vmnum=VMNUM
musicclass=default
language=en
accountcode=1234
rtptos = 184
echocancel = on
silencesuppression = off
line => EXT1

; Omit this section if you are only using one line
id = EXT2
pin = 123456
context = extension:context
cid_name= Cisco
cid_num = EXT1
incominglimit = 2
transfer=on
mailbox=VMB#
vmnum=VMNUM
musicclass=default
language=en
accountcode=5678
rtptos = 184
echocancel = on
silencesuppression = off
line => EXT2


; phone types
;12 — Cisco IP Phone 12SP+ (or other 12 variants)
;30 — Cisco IP Phone 30VIP (or other 30 variants)
;7902 — Cisco IP Phone 7902G
;7905 — Cisco IP Phone 7905G
;7910 — Cisco IP Phone 7910
;7912 — Cisco IP Phone 7912G
;7935 — Cisco IP Conference Station 7935
;7936 — Cisco IP Conference Station 7936
;7920 — Cisco IP Wireless Phone 7920
;7940 — Cisco IP Phone 7940
;7960 — Cisco IP Phone 7960
;7970 — Cisco IP Phone 7970
;7914 — Cisco IP Phone 7960 with a 7914 addon
; ata — Cisco ATA-186 or Cisco ATA-188
;kirk — Kirk telecom ip phones



edit /path/to/*/extensions.conf


[globals]
; Global Variables
PHONE1=SCCP/1234
PHONE1VM=1234
PHONE2=SCCP/5678
PHONE2VM=5678

;Timeout Variables
VERYSHORTTIMEOUT=10
SHORTTIMEOUT=20
DEFTIMEOUT=30
MEDTIMEOUT=40
LONGTIMEOUT=70


;cisco line1
exten => 1234,1,Dial(${PHONE1},${DEFTIMEOUT})
exten => 1234,2,VoiceMail(b${PHONE1VM})
exten => 1234,102,VoiceMail(u${PHONE1VM})

exten => 5678,1,Dial(${PHONE2},${DEFTIMEOUT})
exten => 5678,2,VoiceMail(b${PHONE2VM})
exten => 5678,102,VoiceMail(u${PHONE2VM})




restart your asterisk server

since we set the debug to 10 in the general section of sccp.conf, you should see something similar to this in the CLI when we start asterisk as 'asterisk -vvvvvvvvvcfg'


— SCCP: Accepted connection from IP_ADDY_OF_12SP+
— SCCP: Using ip IP_OF_*_SERVER
— SCCP: >> Got message AlarmMessage
— SCCP: Alarm Message: Severity: Informational (2), Name=SEPMAC_ADDY_OF_12SP+ Load=L2.J2 Parms=Status/IPaddr LastTime=E [549/167880896]
— SCCP: >> Got message RegisterMessage
— SEPMAC_ADDY_OF_12SP+: is registering, Instance: 1, Type: 12SPplus (2), Version: 0
— SEPMAC_ADDY_OF_12SP+: Allocating device to session (28) IP_ADDY_OF_12SP+
— SEPMAC_ADDY_OF_12SP+: Building button template 12SPplus(2), user config 12SP
— SEPMAC_ADDY_OF_12SP+: Phone available lines 2
— SEPMAC_ADDY_OF_12SP+: Auto logging into 1234
— SCCP: Looking for line 1234
— SEPMAC_ADDY_OF_12SP+: Attaching line 1234 to this device
— SEPMAC_ADDY_OF_12SP+: Auto logging into 5678
— SCCP: Looking for line 5678
— SEPMAC_ADDY_OF_12SP+: Attaching line 5678 to this device
— SEPMAC_ADDY_OF_12SP+: Ask the phone to send keepalive message every 60 seconds
— SEPMAC_ADDY_OF_12SP+: Send speaker mode 2
— SEPMAC_ADDY_OF_12SP+: Restoring device status (dnd, cfwd*) from the asterisk db
— SCCP: Looking for line 1234
— SEPMAC_ADDY_OF_12SP+: found line 1234
— SCCP: Asterisk asked for the state (1) of the line 1234
— SCCP: Looking for line 5678
— SEPMAC_ADDY_OF_12SP+: found line 5678
— SCCP: Asterisk asked for the state (1) of the line 5678
— SEPMAC_ADDY_OF_12SP+: >> Got message IpPortMessage
— SEPMAC_ADDY_OF_12SP+: >> Got message VersionReqMessage
— SEPMAC_ADDY_OF_12SP+: Sending version number:
— SEPMAC_ADDY_OF_12SP+: >> Got message CapabilitiesResMessage
— SEPMAC_ADDY_OF_12SP+: Device has 3 Capabilities
— SEPMAC_ADDY_OF_12SP+: CISCO: 4 G.711 u-law 64k AST: 4 G.711 u-law
— SEPMAC_ADDY_OF_12SP+: CISCO: 9 G.723.1 AST: 1 G.723.1
— SEPMAC_ADDY_OF_12SP+: CISCO: 2 G.711 A-law 64k AST: 8 G.711 A-law
— SEPMAC_ADDY_OF_12SP+: >> Got message ButtonTemplateReqMessage
— SEPMAC_ADDY_OF_12SP+: Building button template 12SPplus(2), user config 12SP
— SEPMAC_ADDY_OF_12SP+: Looking for a line button place 1234 (1)
— SEPMAC_ADDY_OF_12SP+: Configured Phone Button [01] = LINE (1234), temporary instance (1)
— SEPMAC_ADDY_OF_12SP+: Looking for a line button place 5678 (2)
— SEPMAC_ADDY_OF_12SP+: Configured Phone Button [02] = LINE (5678), temporary instance (2)
— SEPMAC_ADDY_OF_12SP+: Looking for a speeddial button place SPDIAL1 (1)
— SEPMAC_ADDY_OF_12SP+: Configured Phone Button [04] = SPEEDIAL (SPDIAL1) temporary instance (4)
— SEPMAC_ADDY_OF_12SP+: Looking for a speeddial button place SPDIAL2 (2)
— SEPMAC_ADDY_OF_12SP+: Configured Phone Button [05] = SPEEDIAL (SPDIAL2) temporary instance (5)
— SEPMAC_ADDY_OF_12SP+: Looking for a speeddial button place SPDIAL3 (3)
— SEPMAC_ADDY_OF_12SP+: Configured Phone Button [06] = SPEEDIAL (SPDIAL3) temporary instance (6)
— SEPMAC_ADDY_OF_12SP+: Button Template [01] = Line (9), instance 1
— SEPMAC_ADDY_OF_12SP+: Button Template [02] = Line (9), instance 2
— SEPMAC_ADDY_OF_12SP+: Button Template [03] = LastNumberRedial (1), instance 0
— SEPMAC_ADDY_OF_12SP+: Button Template [04] = SpeedDial (2), instance 1
— SEPMAC_ADDY_OF_12SP+: Button Template [05] = SpeedDial (2), instance 2
— SEPMAC_ADDY_OF_12SP+: Button Template [06] = SpeedDial (2), instance 3
— SEPMAC_ADDY_OF_12SP+: Button Template [07] = Hold (3), instance 0
— SEPMAC_ADDY_OF_12SP+: Button Template [08] = Transfer (4), instance 0
— SEPMAC_ADDY_OF_12SP+: Button Template [09] = ForwardAll (5), instance 0
— SEPMAC_ADDY_OF_12SP+: Button Template [10] = CallPark (126), instance 0
— SEPMAC_ADDY_OF_12SP+: Button Template [11] = Voicemail (15), instance 0
— SEPMAC_ADDY_OF_12SP+: Button Template [12] = Conference (125), instance 0
— SEPMAC_ADDY_OF_12SP+: >> Got message TimeDateReqMessage
— SEPMAC_ADDY_OF_12SP+: Send date/time




*CLI> sccp show devices

NAME ADDRESS MAC Reg. State
============= ========= ========== =======
cisco12sp IP_OF_CISCO12SP+ SEPMAC_ADDY_OF_12SP+ Ok
*CLI>




*CLI> sccp show globals
SCCP channel driver global settings


Platform byte order : LITTLE ENDIAN
Protocol Version : 3
Server Name : Asterisk
Bind Address : IP_OF_*_SERVER:2000
Keepalive : 60
Debug level : 10
Date format : D.M.Y
First digit timeout : 16
Digit timeout : 8
RTP tos : 184
Context : default
Language : en
Accountcode :
Musicclass : default
AMA flags : 3 - DOCUMENTATION
Callgroup :
Capabilities : 0xd (g723|ulaw|alaw)
Codecs preference : (alaw|ulaw|g723)
CFWDALL : No
CFWBUSY : No
DND : Disabled
Park : Disabled
Private softkey : Enabled
Echo cancel : Enabled
Silence suppression : Disabled
Trust phone ip : No
Early RTP : No
AutoAnswer ringtime : 0
AutoAnswer tone : 50
RemoteHangup tone : 50
Transfer tone : 0
CallWaiting tone : 45
*CLI>



*CLI> sccp show lines

NAME DEVICE MWI Chs Active Channel
============= ========== = = ==============================================
5678 SEPMAC_ADDY_OF_12SP+ OFF 0 —
1234 SEPMAC_ADDY_OF_12SP+ OFF 0 —
*CLI>


See Also


This page was haxored at Tue 04 of Apr, 2006 (22:35 UTC)

10204 people have read this page


  
  83.20%
Interesting Meter



Configuring Cisco 12SP+ using SCCP


This setup gives you basic callerid, 3 speed dials and 2 lines/extensions.


The version of sccp we are using

SCCP channel version: 20060207


download it from http://chan-sccp.sourceforge.net

compile and install it per the RTFM in the package
(when you 'make', choose no for the first two options or you will get compilation errors)


edit /path/to/*/modules.conf

noload => chan_skinny.so
load => chan_sccp.so





edit /path/to/*/sccp.conf



[globals]
;general settings
servername = Asterisk
keepalive = 60
debug = 10 ;change this to 1 when you know your phone is working
context = default
dateFormat = D.M.Y
bindaddr = IP_OF_*_SERVER
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g723
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 0
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=en
deny=0.0.0.0/0.0.0.0
permit=192.168.1.0/255.255.255.0
localnet = 192.168.1.0/255.255.255.0
dnd = off
rtptos = 184
echocancel = on
silencesuppression = off
trustphoneip = no
tos = 0x68
private = on
mwilamp = on
mwioncall = off
cfwdall = off
cfwdbusy = off

[devices]
;devices section
type = 12SP

; EXT1 & EXT2 are extension numbers defined in extensions.conf (replace EXT1 & EXT2 with real ext numbers)
; you can omit EXT2 if you are only going to use one line.

;autologin = EXT1
autologin = EXT1,EXT2
description = cisco12sp
transfer = on
speeddial = 1234,SPDIAL1
speeddial = 5678,SPDIAL2
speeddial = 9012,SPDIAL3
dnd = off
deny=0.0.0.0/0.0.0.0
permit=IP_OF_CISCO12SP+/255.255.255.255
private = off
mwilamp = flash
mwioncall = on
device => SEP(UR_MAC_ADDY_OF_12SP)

id = EXT1
pin = 123456
context = extension:context
cid_name= Cisco
cid_num = EXT1
incominglimit = 2
transfer=on
mailbox=VMB#
vmnum=VMNUM
musicclass=default
language=en
accountcode=1234
rtptos = 184
echocancel = on
silencesuppression = off
line => EXT1

; Omit this section if you are only using one line
id = EXT2
pin = 123456
context = extension:context
cid_name= Cisco
cid_num = EXT1
incominglimit = 2
transfer=on
mailbox=VMB#
vmnum=VMNUM
musicclass=default
language=en
accountcode=5678
rtptos = 184
echocancel = on
silencesuppression = off
line => EXT2


; phone types
;12 — Cisco IP Phone 12SP+ (or other 12 variants)
;30 — Cisco IP Phone 30VIP (or other 30 variants)
;7902 — Cisco IP Phone 7902G
;7905 — Cisco IP Phone 7905G
;7910 — Cisco IP Phone 7910
;7912 — Cisco IP Phone 7912G
;7935 — Cisco IP Conference Station 7935
;7936 — Cisco IP Conference Station 7936
;7920 — Cisco IP Wireless Phone 7920
;7940 — Cisco IP Phone 7940
;7960 — Cisco IP Phone 7960
;7970 — Cisco IP Phone 7970
;7914 — Cisco IP Phone 7960 with a 7914 addon
; ata — Cisco ATA-186 or Cisco ATA-188
;kirk — Kirk telecom ip phones



edit /path/to/*/extensions.conf


[globals]
; Global Variables
PHONE1=SCCP/1234
PHONE1VM=1234
PHONE2=SCCP/5678
PHONE2VM=5678

;Timeout Variables
VERYSHORTTIMEOUT=10
SHORTTIMEOUT=20
DEFTIMEOUT=30
MEDTIMEOUT=40
LONGTIMEOUT=70


;cisco line1
exten => 1234,1,Dial(${PHONE1},${DEFTIMEOUT})
exten => 1234,2,VoiceMail(b${PHONE1VM})
exten => 1234,102,VoiceMail(u${PHONE1VM})

exten => 5678,1,Dial(${PHONE2},${DEFTIMEOUT})
exten => 5678,2,VoiceMail(b${PHONE2VM})
exten => 5678,102,VoiceMail(u${PHONE2VM})




restart your asterisk server

since we set the debug to 10 in the general section of sccp.conf, you should see something similar to this in the CLI when we start asterisk as 'asterisk -vvvvvvvvvcfg'


— SCCP: Accepted connection from IP_ADDY_OF_12SP+
— SCCP: Using ip IP_OF_*_SERVER
— SCCP: >> Got message AlarmMessage
— SCCP: Alarm Message: Severity: Informational (2), Name=SEPMAC_ADDY_OF_12SP+ Load=L2.J2 Parms=Status/IPaddr LastTime=E [549/167880896]
— SCCP: >> Got message RegisterMessage
— SEPMAC_ADDY_OF_12SP+: is registering, Instance: 1, Type: 12SPplus (2), Version: 0
— SEPMAC_ADDY_OF_12SP+: Allocating device to session (28) IP_ADDY_OF_12SP+
— SEPMAC_ADDY_OF_12SP+: Building button template 12SPplus(2), user config 12SP
— SEPMAC_ADDY_OF_12SP+: Phone available lines 2
— SEPMAC_ADDY_OF_12SP+: Auto logging into 1234
— SCCP: Looking for line 1234
— SEPMAC_ADDY_OF_12SP+: Attaching line 1234 to this device
— SEPMAC_ADDY_OF_12SP+: Auto logging into 5678
— SCCP: Looking for line 5678
— SEPMAC_ADDY_OF_12SP+: Attaching line 5678 to this device
— SEPMAC_ADDY_OF_12SP+: Ask the phone to send keepalive message every 60 seconds
— SEPMAC_ADDY_OF_12SP+: Send speaker mode 2
— SEPMAC_ADDY_OF_12SP+: Restoring device status (dnd, cfwd*) from the asterisk db
— SCCP: Looking for line 1234
— SEPMAC_ADDY_OF_12SP+: found line 1234
— SCCP: Asterisk asked for the state (1) of the line 1234
— SCCP: Looking for line 5678
— SEPMAC_ADDY_OF_12SP+: found line 5678
— SCCP: Asterisk asked for the state (1) of the line 5678
— SEPMAC_ADDY_OF_12SP+: >> Got message IpPortMessage
— SEPMAC_ADDY_OF_12SP+: >> Got message VersionReqMessage
— SEPMAC_ADDY_OF_12SP+: Sending version number:
— SEPMAC_ADDY_OF_12SP+: >> Got message CapabilitiesResMessage
— SEPMAC_ADDY_OF_12SP+: Device has 3 Capabilities
— SEPMAC_ADDY_OF_12SP+: CISCO: 4 G.711 u-law 64k AST: 4 G.711 u-law
— SEPMAC_ADDY_OF_12SP+: CISCO: 9 G.723.1 AST: 1 G.723.1
— SEPMAC_ADDY_OF_12SP+: CISCO: 2 G.711 A-law 64k AST: 8 G.711 A-law
— SEPMAC_ADDY_OF_12SP+: >> Got message ButtonTemplateReqMessage
— SEPMAC_ADDY_OF_12SP+: Building button template 12SPplus(2), user config 12SP
— SEPMAC_ADDY_OF_12SP+: Looking for a line button place 1234 (1)
— SEPMAC_ADDY_OF_12SP+: Configured Phone Button [01] = LINE (1234), temporary instance (1)
— SEPMAC_ADDY_OF_12SP+: Looking for a line button place 5678 (2)
— SEPMAC_ADDY_OF_12SP+: Configured Phone Button [02] = LINE (5678), temporary instance (2)
— SEPMAC_ADDY_OF_12SP+: Looking for a speeddial button place SPDIAL1 (1)
— SEPMAC_ADDY_OF_12SP+: Configured Phone Button [04] = SPEEDIAL (SPDIAL1) temporary instance (4)
— SEPMAC_ADDY_OF_12SP+: Looking for a speeddial button place SPDIAL2 (2)
— SEPMAC_ADDY_OF_12SP+: Configured Phone Button [05] = SPEEDIAL (SPDIAL2) temporary instance (5)
— SEPMAC_ADDY_OF_12SP+: Looking for a speeddial button place SPDIAL3 (3)
— SEPMAC_ADDY_OF_12SP+: Configured Phone Button [06] = SPEEDIAL (SPDIAL3) temporary instance (6)
— SEPMAC_ADDY_OF_12SP+: Button Template [01] = Line (9), instance 1
— SEPMAC_ADDY_OF_12SP+: Button Template [02] = Line (9), instance 2
— SEPMAC_ADDY_OF_12SP+: Button Template [03] = LastNumberRedial (1), instance 0
— SEPMAC_ADDY_OF_12SP+: Button Template [04] = SpeedDial (2), instance 1
— SEPMAC_ADDY_OF_12SP+: Button Template [05] = SpeedDial (2), instance 2
— SEPMAC_ADDY_OF_12SP+: Button Template [06] = SpeedDial (2), instance 3
— SEPMAC_ADDY_OF_12SP+: Button Template [07] = Hold (3), instance 0
— SEPMAC_ADDY_OF_12SP+: Button Template [08] = Transfer (4), instance 0
— SEPMAC_ADDY_OF_12SP+: Button Template [09] = ForwardAll (5), instance 0
— SEPMAC_ADDY_OF_12SP+: Button Template [10] = CallPark (126), instance 0
— SEPMAC_ADDY_OF_12SP+: Button Template [11] = Voicemail (15), instance 0
— SEPMAC_ADDY_OF_12SP+: Button Template [12] = Conference (125), instance 0
— SEPMAC_ADDY_OF_12SP+: >> Got message TimeDateReqMessage
— SEPMAC_ADDY_OF_12SP+: Send date/time




*CLI> sccp show devices

NAME ADDRESS MAC Reg. State
============= ========= ========== =======
cisco12sp IP_OF_CISCO12SP+ SEPMAC_ADDY_OF_12SP+ Ok
*CLI>




*CLI> sccp show globals
SCCP channel driver global settings


Platform byte order : LITTLE ENDIAN
Protocol Version : 3
Server Name : Asterisk
Bind Address : IP_OF_*_SERVER:2000
Keepalive : 60
Debug level : 10
Date format : D.M.Y
First digit timeout : 16
Digit timeout : 8
RTP tos : 184
Context : default
Language : en
Accountcode :
Musicclass : default
AMA flags : 3 - DOCUMENTATION
Callgroup :
Capabilities : 0xd (g723|ulaw|alaw)
Codecs preference : (alaw|ulaw|g723)
CFWDALL : No
CFWBUSY : No
DND : Disabled
Park : Disabled
Private softkey : Enabled
Echo cancel : Enabled
Silence suppression : Disabled
Trust phone ip : No
Early RTP : No
AutoAnswer ringtime : 0
AutoAnswer tone : 50
RemoteHangup tone : 50
Transfer tone : 0
CallWaiting tone : 45
*CLI>



*CLI> sccp show lines

NAME DEVICE MWI Chs Active Channel
============= ========== = = ==============================================
5678 SEPMAC_ADDY_OF_12SP+ OFF 0 —
1234 SEPMAC_ADDY_OF_12SP+ OFF 0 —
*CLI>


See Also


This page was haxored at Tue 04 of Apr, 2006 (22:35 UTC)

10204 people have read this page


  
  83.20%
Interesting Meter



Created by: kFuQ, Last modification: Mon 18 of Jun, 2012 (06:49 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+