Guide for SS7 deployment over CentOS 5.3 with 1 port Sangoma card Part 1: Installing Asterisk 1) Install the classic dependences for Asterisk/DAHDI Install GCC: yum install gcc gcc-c++ Install SSL: yum install openssl openssl-devel Install Zlib: yum install zlib zlib-devel Install Bison: yum install bison Install source code de Linux: yum install kernel-devel Install ncurses: yum install ncurses ncurses-devel Install newt: yum install newt newt-devel 2) Download from www.asterisk.org to /usr/src/ and extract the tarballs DAHDI dahdi-linux-2.1.0.4.tar.gz dahdi-tools-2.1.0.1.tar.gz ASTERISK asterisk-1.4.24.1.tar.gz 3) Make the symbolic links ln -s /usr/src/dahdi-linux-2.1.0.4 /usr/src/dahdi ln -s /usr/src/asterisk-1.4.24.1 /usr/src/asterisk 4) Compile and install dahdi-linux,dahdi-tools and asterisk Part 2: Installing the SS7 channel 1) Download from http://www.dicea.dk/company/downloads the chan_ss7-1.1.tar.gz 2) Extract it into /usr/src 3) Edit the Makefile vim /usr/src/chan_ss7-1.1/Makefile 4) Replace the follow lines for pointing to dahdi and asterisk directories. INCLUDE+=-I../dahdi/include INCLUDE+=-I../asterisk/include 5) Uncomment the DAHDI flag CFLAGS+=-DDAHDI 6) Compile and install it make; make install 7) Copy the generated module to asterisk module directory cp /usr/src/chan_ss7-1.1/chan_ss7.so /usr/lib/asterisk/modules/ Part 3: Installing Sangoma drivers 1) Download the wanpipe stable driver from Sangoma site wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.4.4.tgz 2) Extract the driver on /usr/src 3) Install the classical packet dependences for Sangoma Wanpipe Perl developement tools: yum install perl-devel AWK: yum install awk FLEX: yum install flex libtermcap-devel: yum install libtermcap-devel 4) Install the wanpipe driver ./Setup dahdi 5) After the compilation and linking phase, choose configure only DAHDI file (system.conf) not Asterisk file (chan_dahdi.conf) 6) Finally, accept to run dahdi_cfg after wanrouter and config the services coming up on startup Part 4: Configuring the SS7 channel 1) Erase zapata.conf and chan_dahdi.conf because you don't need it 2) Create a symbolic link for the old device dahdi ln -s /dev/dahdi /dev/zap 3) Edit the DAHDI configuration file vi /etc/dahdi/system.conf 4) Change all the chanells to bchan, comment hardhdlc line #Dahdi Channels Configurations #For detailed Dahdi options, view /etc/dahdi/system.conf.bak #echocanceller=mg2,1-15 #echocanceller=mg2,17-31 loadzone=uk defaultzone=uk span=1,0,0,ccs,hdb3 bchan=1-31 #hardhdlc=16 5) Edit the sangoma configuration file for the span 1 vi /etc/wanpipe/wanpipe1.conf 6) Change the signalling channel from 16 to 0 (no signalling because ss7 will manage it) TDMV_DCHAN = 0 7) Restart the services service asterisk stop wanrouter stop service dahdi stop wanrouter start 6) Configure your chan_ss7 file according to your SS7 link data vi /etc/asterisk/ss7.conf ------------------------- [linkset-siuc] enabled => yes enable_st => no use_connect => yes hunting_policy => even_mru context => ss7 language => da t35 => 15000,timeout subservice => auto variant => ITU [link-l1] linkset => siuc channels => 1-15,17-31 schannel => 16 firstcic => 1 enabled => yes [host-my_server_hostname] enabled => yes opc => 14000 dpc => siuc:14001,l1:14002 links => l1:1 ;span 1 of dahdi/system.conf globaltitle => 0x00, 0x03, 0x01, 7773 ssn => 7 6) Finally, in order to have a clean booting, add the lines to /etc/rc3.d/S99local ln -s /dev/dahdi /dev/zap Part 5 (Optional) Testing the SS7 link with loopback connection 1) Edit the sangoma configuration file for the span 1 vi /etc/wanpipe/wanpipe1.conf 2) Change the clock source from NORMAL to MASTER TE_CLOCK = MASTER 3) Stop asterisk service asterisk stop 3) Stop wanrouter wanrouter stop 4) Start wanrouter wanrouter start 5) Put a loopback RJ45 connector in the port of the board 6) Test if the led goes to green or use dahdi_tool to see the link OK 7) Enter to CLI (asterisk -r) and try "ss7 link status". The result must show INSERVICE CENTOS*CLI> ss7 link status linkset siuc, link l1, schannel 16, sls 0, INSERVICE, rx: 0, tx: 3/3, sentseq/lastack: 85/85, total 806579120, 806579216 8) Remove the loopback 9) Edit the sangoma configuration file for the span 1 vi /etc/wanpipe/wanpipe1.conf 10) Change the clock source from MASTER to NORMAL TE_CLOCK = NORMAL 11) Stop asterisk service asterisk stop 12) Stop wanrouter wanrouter stop 13) Start wanrouter wanrouter start