Sunteți pe pagina 1din 3

Guide for SS7 deployment over CentOS 5.

3 with 1 port Digium 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) ln ln ln Make the symbolic links -s /lib/modules/'uname -r'/build linux -s /usr/src/dahdi-linux-2.1.0.4 /usr/src/dahdi -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_ss71.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: 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 #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,1,0,ccs,hdb3 bchan=1-31 5) 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 4 (Optional) Testing the SS7 link with loopback connection 1) Put a loopback RJ45 connector in the port of the board 2) Test if the led goes to green or use dahdi_tool to see the link OK 3) 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 4) Remove the loopback

S-ar putea să vă placă și