Cant compile chan-sccp chan-sccp_master for my Ciso 797x phones

Hello
I try to install chan-sep_master for using 5 Cisco IP-Phones 7970 an 7975. First was installing a fresh version of freepbx with the image from the webside. Let run all the updates and deinstall the commercial modul (homeoffice using). So now i get a a freepbx 14.0.5.2 with Asterisk 15.5.
I looks like a CentOS 7.6. base. Everything its installed in a VM on a XCP-NG server.

I am following this instruktion for chan-sccp and chan-sccp_master. but configuration to make is not flying …

github…chan-sccp/chan-sccp/wiki/Setup-FreePBX

load the source with git
cd /usr/src
git clone …/chan-sccp/chan-sccp chan-sccp_master
cd chan-sccp_master
git checkout master
./configure

result was

checking pkg-config asterisk... not found
checking Search Path: /usr /usr/local /opt... not-found
not-found
not-found
configure: Please install either the asterisk-devel package.
configure: Or run ./configure --with-asterisk=PATH with PATH pointing to the directory where you installed asterisk
configure: error: Cannot find pbx libraries - these are required.

I am trying ./ ./configure --with-asterisk=PATH
./configure --with-asterisk=/usr/lib64/asterisk/
./configure --with-asterisk=/usr/lib64/asterisk/modules
with the no results :frowning:

where is my mistake oder where is the rigth path ?

thx Axel

PS: Sorry it is my first use of you community :wink: new user cant send links… there must be someone had the same problem :wink:

You need to install the devel package

Hello Arielgrin

i am installing asterisk15-devel-15.5.0-1.sng7.x86_64

now ./configure --enable-conference it is running longe but no sucess …

Checking Asterisk Version:
checking asterisk/version.h usability... no
checking asterisk/version.h presence... no
checking for asterisk/version.h... no
checking asterisk/ast_version.h usability... yes
checking asterisk/ast_version.h presence... yes
checking for asterisk/ast_version.h... yes
checking asterisk/format_cache.h usability... yes
checking asterisk/format_cache.h presence... yes
checking for asterisk/format_cache.h... yes
Found 'Asterisk Version 11300'.

Checking Asterisk Headers:
checking whether C compiler accepts -Werror=incompatible-pointer-types... no
checking whether C compiler accepts -Werror=implicit-function-declaration... yes
checking whether C compiler accepts -Werror=int-conversion... no
checking whether C compiler accepts -Werror-shadow... no
checking asterisk.h usability... no
checking asterisk.h presence... no
checking for asterisk.h... no
checking for asterisk/lock.h... no
Couldn't find asterisk/lock.h. No need to go any further. All will fail.
Asterisk version.h:

but it fails later

looks like a problem with asterisk.h ond asterisk/look.h

did i had to compile asterisk 2 ? :thinking:

You don’t need to recompile Asterisk, but you do need to have the Asterisk source files that correspond to your Asterisk version in order to be able to compile SCCP.

As far as I know, SCCP is compatible with Asterisk version up to 13, so you would have to switch to Asterisk 13, since you are running Asterisk 15, but I could be wrong.

Use this link as starting point, because it seems to me you were using the old wiki, which is now deprecated:

now with the sources an 13.19. Asterisk
compiling is running

when ii starting asterisk i had a lot of wornings like this

[2018-12-21 02:56:09] WARNING[17684]: xmldoc.c:2204 xmldoc_build_field: Couldn't find application SCCPSetCalledParty in XML documentation
[2018-12-21 02:56:09] WARNING[17684]: xmldoc.c:2204 xmldoc_build_field: Couldn't find application SCCPSetCalledParty in XML documentation
  == Registered application 'SCCPSetCalledParty'
[2018-12-21 02:56:09] WARNING[17684]: xmldoc.c:2204 xmldoc_build_field: Couldn't find application SCCPSetMessage in XML documentation
[2018-12-21 02:56:09] WARNING[17684]: xmldoc.c:2204 xmldoc_build_field: Couldn't find application SCCPSetMessage in XML documentation
  == Registered application 'SCCPSetMessage'
[2018-12-21 02:56:09] WARNING[17684]: xmldoc.c:2204 xmldoc_build_field: Couldn't find application SCCPSetCodec in XML documentation
[2018-12-21 02:56:09] WARNING[17684]: xmldoc.c:2204 xmldoc_build_field: Couldn't find application SCCPSetCodec in XML documentation
  == Registered application 'SCCPSetCodec'
[2018-12-21 02:56:09] WARNING[17684]: xmldoc.c:2204 xmldoc_build_field: Couldn't find function SCCPDevice in XML documentation
[2018-12-21 02:56:09] WARNING[17684]: xmldoc.c:2204 xmldoc_build_field: Couldn't find function SCCPDevice in XML documentation
  == Registered custom function 'SCCPDevice'
[2018-12-21 02:56:09] WARNING[17684]: xmldoc.c:2204 xmldoc_build_field: Couldn't find function SCCPLine in XML documentation
[2018-12-21 02:56:09] WARNING[17684]: xmldoc.c:2204 xmldoc_build_field: Couldn't find function SCCPLine in XML documentation
  == Registered custom function 'SCCPLine'
[2018-12-21 02:56:09] WARNING[17684]: xmldoc.c:2204 xmldoc_build_field: Couldn't find function SCCPChannel in XML documentation
[2018-12-21 02:56:09] WARNING[17684]: xmldoc.c:2204 xmldoc_build_field: Couldn't find function SCCPChannel in XML documentation
  == Registered custom function 'SCCPChannel'

Is that normal and okay ?
i am fiting with configurations :frowning:
4 the Phones 7970 and 7975

Those messages are probably related to incomplete configuration. Have you completed the configuration?

I try to compled …
now i am trying the conf files from the src exampels, but it not running.
Now i use asrisk cli to know more …

now its looking better
and i will try next step the TFTP files
SCCP firmware is on the phone SCCP70.9-2-1S 7970 late some 7975

sccp.conf

;
; general definitions
;
[general]
debug = core, config, action, socket, device, line, channel
servername = FreePbxSCCP
keepalive = 60
context = from-internal-xfer
dateformat = D.M.Y
bindaddr = 192.168.38.10
;bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
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=internal ; ‘internal’ is automatically converted to these private cidr address:
; 127.0.0.0/255.0.0.0, 10.0.0.0/255.0.0.0,
; 172.0.0.0/255.224.0.0, 192.168.0.0/255.255.0.0
permit=192.168.38.0/255.255.255.0
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
hotline_enabled=yes ; can devices without configuration register
hotline_context=default ; context for hotline
hotline_extension=111 ; extension will be dialed on offHook

#include sccp_hardware.conf
#include sccp_extensions.conf

sccp_hardware.conf
only first phone ist shod be registert, next is a dummy

[SEP001C58F107C3]
description = Phone Number One
devicetype = 7970
park = off
button = speeddial,Helpdesk, 98112, [email protected] ; Add SpeedDial to Helpdesk
button = line, 98011: Line1 ; Assign Line 98011 to Device
button = empty ; Assign an Empty Button
button = line, 98012 ; Assign Line 98012 to Device
button = speeddial,Phone 2 Line 1, 98021, [email protected] ; Add SpeedDial to Phone Number Two Line 1 (button labels can contain special characters like ‘é’)
cfwdall = off
type = device
keepalive = 60
;tzoffset = +2
transfer = on
park = on
cfwdall = off
cfwdbusy = off
cfwdnoanswer = off
directed_pickup = on
directed_pickup_context = from-internal-xfer
directed_pickup_modeanswer = on
imageversion = SCCP70.9-2-1S
deny=0.0.0.0/0.0.0.0
permit=192.168.38.10/255.255.255.0
;permit=192.168.38.5/255.255.255.0
dndFeature = on
nat=auto
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on

[SEP002244668800]
description = Phone Number Two
devicetype = 7975
now a dummyaddon = 7914
park = off
button = speeddial,Helpdesk, 98112 ; Add SpeedDial to Helpdesk (without hint)
button = line, 98021
button= feature,Private Call,privacy,callpresent ;set channel variable SKINNY_PRIVATE to 1 if feature is enabled
button= feature,DND Busy,DND,busy ;set dnd status to busy
button= feature,DND Silent,DND,silent ;set dnd status to silent
button= feature,Record calls,monitor ;record calls using automon (asterisk >= 1.6 only)
button= feature,call forward to *54,cfwdAll,*54 ;forward all calls to *54
button = speeddial,Phone 1 Line 1, 98011, [email protected]
button = speeddial,Phone 1 Line 2, 98012, [email protected]
type = device
keepalive = 60
;tzoffset = +2
transfer = on
park = on
cfwdall = off
cfwdbusy = off
cfwdnoanswer = off
directed_pickup = on
directed_pickupcontext = from-internal-xfer
directed_pickupmodeanswer = on
imageversion = P00405000700
deny=0.0.0.0/0.0.0.0
permit=192.168.38.10/255.255.255.255
dndFeature = on
nat=auto
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on

sccp_extensions.conf

[98011]
id = 1000
type = line
pin = 1234
label = Phone 1 Line 1
description = Line 98011
mailbox = 10011
cid_name = MY CID
cid_num = 98011
accountcode=79011
callgroup=
pickupgroup=
;callgroup=1,3-4
;pickupgroup=1,3-5
;amaflags = 
context = from-internal-xfer
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
setvar=testvar2=my value
dnd = reject

[98012]
id = 1001
type = line
pin = 4356
label = Phone 1 Line 2
description = Line 98012
mailbox = 10012
cid_name = MY LINE 2
cid_num = 98012
accountcode=79002
callgroup=
pickupgroup=
echocancel = off
context = from-internal-xfer
incominglimit = 2
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=en
echocancel = on
silencesuppression = off
silencesuppression = on
dnd = silent
    [98021]
    id = 1002
    type = line
    pin = 1234
    label = Phone 2 Line 1
    description = Line 98021
    mailbox = 10021
    cid_name = MY CID
    cid_num = 98021
    accountcode=79021
    callgroup=
    pickupgroup=
    context = from-internal-xfer
    incominglimit = 2
    transfer = on
    vmnum = 600
    trnsfvm = 1000
    secondary_dialtone_digits = 9
    secondary_dialtone_tone = 0x22
    musicclass=default
    language=en
    echocancel = on
    silencesuppression = off
    setvar=testvar2=my value

a snip from XMLDefault.cnf.xml

<Default>
    <callManagerGroup>
        <members>
            <member priority="0">
                <callManager>
                    <ports>
                        <ethernetPhonePort>2000</ethernetPhonePort>
                    </ports>
                    <processNodeName>192.168.38.10</processNodeName>
                </callManager>
            </member>
            <member priority="1">
                <callManager>
                    <ports>
                        <ethernetPhonePort>2000</ethernetPhonePort>
                    </ports>
                    <processNodeName>192.168.38.11</processNodeName>
                </callManager>
            </member>
        </members>
    </callManagerGroup>
    <authenticationURL>http://192.168.38.10/authentication.php</authenticationURL>
    <idleURL>http://192.168.38.10/idle.php</idleURL> 
    <informationURL>http://192.168.38.10/help/help.php</informationURL> 
    <messagesURL></messagesURL> 
    <proxyServerURL></proxyServerURL> 
    <servicesURL>http://192.168.38.10/menu.php</servicesURL> 
    <directoryURL>http://192.168.38.10/directory.php</directoryURL>
</Default>

There was - that’s why I wrote the instructions on how to do this, as well as the instructions on how to troubleshoot your installation. The link to GitHub that @arielgrin posted is the most recent instructions on how to install the Chan-SCCP-B driver.

Important note - all of that information (from the GitHub site) is specific to Chan-SCCP-B and will not work with the “native” chan-skinny (which is sometimes called chan-sccp) drive that comes with the base Asterisk install.

The instructions are up-to-date (I used them a few weeks ago to do another new install), so if you are using the right driver and following the instructions, you should be fine.

Remember to turn down the debug on the driver conf file or you will fill your hard drive is spurious messages.

When you type “sccp show devices” what output are you seeing?

Almost all of the options you are using are the defaults, so you can get rid of anything that you didn’t need to set yourself.

Remember to turn on port 2000 in the Integrated Firewall and make sure your phone network for the SCCP phones is included. The bindaddr option should be set to 0.0.0.0 unless you have some specific problems that are outlined in the documentation.

The default “permit=internal” should work fine for your installation.

Once we’re sure the chan-sccp driver is loaded, we’ll talk more about the problems in your device and extension configurations.

I sorry when i wirting to hard :frowning:
you are doing i fine job…
but sometimes a developer sitting to near on his own product / software
I was a developer and programmer before
There a to mutch informations what a newbee needs that you are knowing…
as as exampel i am reading a few times the instruktions, but was i miss first ist what i need to install witch packages …

  • my first mistake was not to install the asterisk-devel package
  • and i didnt know whats to do in witch version af asterisk
  • so it will be nice with an easy exampel in the config dir with ach coment 4 withch

If i try the original freePbx and follow your instaktion the VM was crasching.
On my test VM the firewall is disabel, and it looks like that the Modul is working
The asterisk cli (asterisk -rv) are helpfull and the sccp tools.

neth*CLI> core show version
Asterisk 13.19.1 built by makerpms @ b9.nethserver.org on a x86_64 running Linux on 2018-07-26 07:49:09 UTC
neth*CLI> sccp show version
Skinny Client Control Protocol (SCCP). Release: 4.3.1 develop - a7bca36M (built by 'root' on '2018-12-20 14:06:16 UTC')

next was sccp show devices

+--- Devices ---------------------------------------------------------------------------
| Descr                Address   Mac              RegState  Token RegTime Act Lines Nat
+ ==================== ========= ================ ========= ===== ======= === ===== ====
| Phone Number Two            -- SEP002244668800  None      None     None  No 0
| Phone Number One            -- SEP001C58F107C3  None      None     None  No 0
+---------------------------------------------------------------------------------------

sccp show lines

+--- Lines -------------------------------------------------------------------------+
| Ext      Suffix    Label           Description  Device  MWI  Chs  Active Channel  |
+ ======== ========= =============== ============ ======= ==== ==== =============== +
| 98011              Phone 1 Line 1  Line 98011   --      OFF  0    --         --   |
|          Variable: testvar2        = my value                                     |
| 98012              Phone 1 Line 2  Line 98012   --      OFF  0    --         --   |
| 98021              Phone 2 Line 1  Line 98021   --      OFF  0    --         --   |
|          Variable: testvar2        = my value                                     |
| Hotline            Hotline         (null)       --      OFF  0    --         --   |
+-----------------------------------------------------------------------------------+

telnet 192.168.38.10 2000 had a reaction

[[email protected] ~]# telnet 192.168.38.10 2000
Trying 192.168.38.10...
Connected to 192.168.38.10.
Escape character is '^]'.

The TFTP is runing under Cent0s 7.6 and look like runging
frimwareupdate is running and loading this files to, but not shure that both otion 66 and 150 are set

Now my freePBX setup had two SIP softphones running

When i am booting the Cisco 7970 there are no linies in Asterisk CLI

And i will have a look on the disk space, at this time the server dont use 2 mutch space…

Thx Dave and grielgrin

I will go step by step to know that i am on the rigth way.
and send the results :slight_smile:

Asterisk Version is 13.19.1-1
and the devel ist 13.19.1-1
skinny Client Control Protocol (SCCP). Release: 4.3.1
FreePBX 14.0.5.2

  • all IP phones and freePBX Server are in the same network 192.168.38.0/24 no NAT between
  • the Host and the VM PBX are behind a firewall included in WAN router
  • DHCP/TFTP services are in the VM PBX
  • DHCP option 66 is running The firmware an SEP files ar loading
  • not shure that option 150 is activated (next step)
  • VM PBX firewall is disabled
  • chan-sccp_b is compiled
  • and included on the modules.conf
  • chan_skinny.so is excluded
  • port 2000 had a reaction with telnet 192.168.38.10 2000

now looking 2 TFTP and DHCP

  • loading the SEPxxx.cnf.xml file
  • dont load the XMLDefault.cnf.xml file
  • dont set time/date
  • dont concect asterisk no massages in asterisk CLI

:frowning:

merry xmas or hollydays

If the SEPxml files are loading and the rest of the files are not, you need to log into the server and run the command 'xmllint SEPxml’ and make sure the XML files are error free. I ran into a problem like this early on - the phone just sits and reboots and reboots because of the XML file having a problem.

Take a look at the SEP config file example in the distribution stuff. There should be one that has a single stanza for the config of the phone. Make sure the server in there is your PBX.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.