Skip to content

Building and Installation Guide

Diederik de Groot edited this page May 12, 2019 · 6 revisions

UNIX, BSD and Linux

These instructions are valid for most UNIX-like operating systems, including BSD and Linux variants. Precompiled for your Platform

In README.md you can find links to a lot of pre-compiled versions of chan-sccp. You can just at the specific repository file specific to your platform to your system and install chan-sccp from there. Prerequisites

The following prerequisites are required:

  • A bourne shell (/bin/sh) that is capable of running the supplied configure script.
  • Installed version of Asterisk starting at version 1.2
  • Make sure you have the following installed on your system: * The GNU make program * Posix Utilities like awk, sed, tr, etc * Recent GNU C compiler (>= 4.3) see Snippets

Building and Installation

We also provide prebuild binaries for:

Note: When installing prebuild binaries please include debuginfo / symbol packages as well, which will allow debugging using gdb possible at a later stage.

  • Source Based:

  • Compiling:

    • Extract the source tree to a clean directory.

    • If you are using git then get the latest revision using:

      git pull

    • To get started with configure please run (run "./configure --help" to get a list of all the possible configure flags)

    • Note: Some of the configure switches have changed during the latest development, please check before running configure (./configure --help).

      ./configure [....any configure flags you like, see below....]
      make            # or 'make -j2' to use 2 cpu's 
      make install
      make reload     # unload and load a previously installed chan-sccp module
      

For source code maintainers it is important to know that when you change something in one of the Makefile.am files or configure.ac you should run ./tools/bootstrap.sh before commiting to the repository.

Description of some of the configure flags

flag description
--enable-devdoc enable developer documentation
--enable-doxygen-pdf generate doxygen PDF documentation
--enable-optimization no detection or tuning flags for cpu version
--disable-debug enable debug information
--enable-refcount-debug enable refcount debug
--enable-conference enable conference
--enable-indications enable debug indications
--disable-devstate-feature disable device state feature button
--disable-dynamic-speeddial disable dynamic speeddials
--disable-dynamic-speeddial-cid disable dynamic speeddials with call info
--enable-video enable streaming video (experimental)
--enable-distributed-devicestate enable distributed devicestate
--enable-advanced-functions enable extra functionality
--with-asterisk allows you to specify the path to the asterisk installation (lib / include directories.
--with-hash-size allows you to change the refcount hash table size. When using larger numbers of phones this value should be increased to the next prime number. Check the fillfactor displayed underneath the refcount table (sccp show refcount) and keep it below 1.00).

Asterisk Modules

To make sure that the chan_sccp.so module can be loaded you have to make sure that chan_skinny.so does not get loaded, because the use the same port to listen on. You can do so by editing /etc/asterisk/modules.conf and inserting:

noload => chan_skinny.so

Without this entry both modules will get loaded and you will receive an error message in the message log, stating that chan_sccp.so has failed to load.

Clone this wiki locally
You can’t perform that action at this time.