FreePBX + SCCP + 7942G

Hello guys im trying to figure out how to install and setup my Cisco 7942 to work with FreePBX using SCCP.

I have follow all the steps on https://github.com/chan-sccp/chan-sccp/wiki/FreePBX with not luck

this is the shell script i put together.

yum -y update
yum -y install asterisk13-devel
yum -y install git
cd /usr/src
git clone https://github.com/chan-sccp/chan-sccp chan-sccp_master
cd chan-sccp_master

./configure --enable-conference
make -j2
make install
make reload

echo "noload = chan_skinny.so" >> /etc/asterisk/modules.conf
echo "load = chan_sccp.so" >> /etc/asterisk/modules.conf


cd chan-sccp_master
cp conf/sccp.conf.freepbx /etc/asterisk/sccp.conf -y
cp conf/sccp_extensions.conf.freepbx /etc/asterisk/sccp_extensions.conf -y
cp conf/sccp_hardware.conf.freepbx /etc/asterisk/sccp_hardware.conf -y

amportal restart
fwconsole restart

Also this is my SCCP.conf file

;=========================================================================================
;
; general definitions
;
;=========================================================================================
[general]
servername = Asterisk
keepalive = 60
debug = 1
context = sccp
dateformat = D/M/Y
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
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.10.0/255.255.255.0
dndFeature = on
echocancel = on
silencesuppression = off
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
private = on
callanswerorder=oldestfirst
hotline_enabled=yes
hotline_context=default
hotline_extension=111

;=========================================================================================
;
; device template definitions
;
;=========================================================================================
[defaultdevice](!)
type = device
keepalive = 60
;tzoffset = +2
transfer = on
park = on
cfwdall = off
cfwdbusy = off
cfwdnoanswer = off
pickupexten = off
pickupcontext = sccp
pickupmodeanswer = on
imageversion = P00405000700
deny=0.0.0.0/0.0.0.0
permit=192.168.1.5/255.255.255.255
dndFeature = on
nat=off
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value

[7942](!,defaultdevice)
devicetype = 7942
transfer = off
park = on
cfwdall = on

[7940](!,defaultdevice)
devicetype = 7940
transfer = off
park = on
cfwdall = on

[7960](!,defaultdevice)
devicetype = 7960
park = off
button = speeddial,Helpdesk, 98112, 98112@hints  	; Add SpeedDial to Helpdesk
cfwdall = on

;=========================================================================================
;
; line template definitions
;
;=========================================================================================
[defaultline](!)
type = line
context = sccp
incominglimit = 2
transfer = on
vmnum = 600
meetme = on
meetmeopts=qxd
meetmenum=700
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=en
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
dnd = reject


;=========================================================================================
;
; actual definitions
;
;=========================================================================================
[SEP001122334455](7960)
description = Phone Number One
addon = 7914
button = line, 98011					; Assign Line 98011 to Device
button = line, empty					; Assign an Empty Line
button = line, 98012					; Assign Line 98012 to Device
button = speeddial,Phone 2 Line 1, 98021, 98021@hints	; Add SpeedDial to Phone Number Two Line 1 (button labels can contain special characters like 'é')
cfwdall = off

[98011](defaultline)
id = 1000
pin = 1234
label = Phone 1 Line 1
description = Line 98011
mailbox = 10011
cid_name = MY CID
cid_num = 98011
accountcode=79011
callgroup=1,3-4
pickupgroup=1,3-5
;amaflags = 
setvar=testvar2=my value

[98012](defaultline)
id = 1001
pin = 4356
label = Phone 1 Line 2
description = Line 98012
mailbox = 10012
cid_name = MY LINE 2
cid_num = 98012
accountcode=79002
callgroup=1,4-9
pickupgroup=1,3-9
echocancel = off
silencesuppression = on



[SEP08CC683066AC](7942)
description = Phone Number Two
button = line, 98021
button= feature,Private Call,privacy,callpresent
button= feature,DND Busy,DND,busy
button= feature,DND Silent,DND,silent
button = speeddial,Phone 1 Line 1, 98011, 98011@hints
button = speeddial,Phone 1 Line 2, 98012, 98012@hints

[98021](defaultline)
id = 1000
pin = 1234
label = Phone 2 Line 1
description = Line 98021
mailbox = 10021
cid_name = MY CID
cid_num = 98021
accountcode=79021
callgroup=1,3-4
pickupgroup=1,3-5
setvar=testvar2=my value

In my FreePBx i create the extension 1000 using custom extension SCC/1000 on Dial Extesion
but i can me this phones to work i’m missing some step??

SCCP/1000 is the right syntax.

I’m on my phone right now, so it’s going to take me a minute to get through the rest.

Your phones are on 192.168.1.x

This isn’t probably a valid context. You should be using the one I recommended in the Wiki.

Did you define SCCP/98021 in addition to line 1000. The wiki explains how the pieces link together. It doesn’t look like you followed the instructions I wrote.

Updated FreePBX install instructions for Chan-SCCP-B is the pointer to the Wiki I wrote specifically for integrating Chan-SCCP-B into FreePBX.

My Phone is
192.168.10.136
Im trying to setup the phone without the SCCP Module the problem i install your SCCP Module but it crash

It’s not my module, but that’s splitting hairs. I just wrote the FreePBX instructions.

You need to make sure you download the correct source interface module and compile the module against that. You can contact Diedrich through the Chan-SCCP-B discussion forums and try to figure out why the module is crashing. The instructions in the Wiki should get you there.

@cynjut im trying to open the link https://sourceforge.net/p/chan-sccp-b/wiki/FreePBX/

but i get this

Ours works ok. Wouldn’t put tons of people on that server thats unrelated to SCCP though due to stability.To get the server working we used:

;=========================================================================================
;
; general definitions
;
;=========================================================================================
[general]
servername = SCCP
keepalive = 60
debug = 1
context = from-internal
dateformat = M.D.YA
bindaddr = 78.8.10.100
externip = 78.8.10.100
port = 2000
disallow = all
allow = ulaw
allow = alaw
firstdigittimeout = 16
digittimeout = 5
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
transfer_on_hangup = on
callwaiting_tone = 0x2d
musicclass=default
language=en
deny=0.0.0.0/0.0.0.0
;permit = 0.0.0.0/0.0.0.0
permit = 32.12.20.2/255.255.255.255 ; Phones IP Address
nat = on
dndFeature = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
private = on
callanswerorder=oldestfirst
directed_pickup_modeanswer = on
;hotline_enabled=yes ;can devices without configuration register
;hotline_context=from-internal ; context for hotline
;hotline_extension=7777 ; extension will be dialed on offHook

;=========================================================================================
;
; device template definitions
;
;=========================================================================================
[defaultdevice](!)
type = device
keepalive = 60
;tzoffset = -4 ;EDT
transfer = on
park = off
cfwdall = on
cfwdbusy = off
cfwdnoanswer = off
directed_pickup = off
directed_pickup_context = sccp
directed_pickup_modeanswer = on
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0 ; Allow device connections from anywhere
dndFeature = on
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
conf_allow = yes
conf_play_general_announce = yes
conf_play_part_announce = yes
conf_mute_on_entry = no
conf_music_on_hold_class = default
conf_show_conflist = yes

;=========================================================================================
;
; line template definitions
;
;=========================================================================================
[defaultline](!)
type = line
context = from-internal
incominglimit = 2
transfer = on
vmnum = *97
;meetme = on ; Meet me doesn’t seem to be used so I commented out
;meetmeopts=qxd
;meetmenum=700
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=en
echocancel = on
silencesuppression = off
dnd = reject

[SEP0015611A43A5](defaultdev)
type = device
devicetype = 7960
description = 1403
button = line, 1403, default
button = line, 1411

[1403](defaultline)
type=line
mailbox = 1404@from-internal
label = 1403
cid_num = 1403
context = default

That’s not good. I wonder where Diedrich moved it to now. He’s moved it a couple of times since I started working on it.

Your device definition limits your phones to connecting from the 192.168.1.x network.

Your button config should be

button = line, 98011 ; Assign Line 98011 to Device
button = empty ; Assign an Empty Line
button = line, 98012 ; Assign Line 98012 to Device

Unless you are actually using callgroups and pickup groups, just leave these out. Same with the ‘setvar’. If you’re not using the var for something (which I kind of doubt), leave it out.

Set the ‘ID’ to 98021 and the PIN should be blank. Neither of these entries is actually used for anything, but the ID should match the extension if you’re going to use it. PINs don’t work in this skinny driver. The label is what shows up on the phone for this line definition (on your phone) and the one you’ve chosen is probably too long.

The “lines” are what you connect to Asterisk with, so you need to set up each line so that it matches an entry in your “extensions” setup using the Custom type “SCCP/xxx”. The lines are then assigned to buttons on your devices, which are identified to the system by the SEPMAC number. The phone connects, gets it’s configuration from the server, and starts. The SEPMAC is the “user ID” which it why the system doesn’t use a password.

You’ve also set yourself for failure since your extensions start with ‘9’ and you’ve set up the rest of the configuration file to request a secondary dialtone when dialing ‘9’.

What problem are you seeing when you try to compile the current drive against the “development” YUM package?

Sorry for the late replay updating topic

The problem was i have the wrong Asterisk Version you must have the same asterisk version that the asterisk-devel pack.

phones are working thanks !