Monthly Archives: March 2012

RSYNC EXCLUDE, RSYNC INCLUDE , Single file or Multiple Directory


Rsync adalah tool untuk transfer dan sinkronisasi file atau tree (struktur direktori dan file) secara satu arah, baik transfer lokal (di sistem yang sama) maupun remote (jaringan/internet). Rsync merupakan tools kecil yang powerful karena bisa bertindak sebagai server sekaligus sebagai klien.

Gambar dibawah disetup 2 server A (192.168.0.1) dan B(192.168.0.2). Untuk memudahkan pemahaman tentang  rsync maka dibuat directory crm yang akan di tranfer ke server B.

Untuk tahap pertama yang paling penting adalah serverA harus bisa login ke Server B tanpa password (openssh) via pulic_keynya.

Langkah-langkahnya:

Server A
1. Create key rsa

[root@serverA~]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory ‘/root/.ssh’.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
d7:5f:da:24:d2:0f:95:1b:ad:51:8d:50:3e:fe:b2:3d root@ecentrix6
The key’s randomart image is:
+–[ RSA 2048]—-+
| .o..o|
| …+|
| +oo|
| . o =o|
| S . o *.o|
| . o X |
| + +|
| E |
| . o|
+—————–+

2. Copy id_rsa.pub ke server B
[root@serverA ~]# ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.0.2
enter -> masukkan password server B -> Jika password benar maka akan masuk ke shell server B -> exit

3. Coba login ke server B
[root@serverA~]# ssh root@192.168.0.2 -> harusnya tidak meminta password lagi

Gambar di tengah adalah salah satu stuktur dir crm yang ditempatkan pada dir /var/www/html/crm (serverA)

Case 1:

  1. rsync exclude spesific directory
    rsync -avz –exclude ‘config’ /var/www/html/crm/ root@192.168.0.1:/var/www/html/crm/
    (mencopy seluruh dir crm kecuali folder config)
  2. Exclude multiple directory dengan pattern
    rsync -avz –exclude ‘config’  –exclude ‘admin.*’ /var/www/html/crm/ root@192.168.0.1:/var/www/html/crm/
    (mencopy seluruh dir crm kecuali folder config,folder admin.spv dan admin.agent)
  3. Exclude single file or multiple file
    rsync -avz –exclude ‘.jpg’  –exclude ‘init.php’ /var/www/html/crm/ root@192.168.0.1:/var/www/html/crm/
    (mencopy seluruh dir crm kecuali file yang berextension jpg dan file init.php)
  4. Exclude file and directory
    rsync -avz –exclude ‘*.jpg’ –exclude ‘config’ /var/www/html/crm/ root@192.168.0.1:/var/www/html/crm/
    (mencopy seluruh dir crm kecuali file yang berextension jpg dan folder config )
  5. Jika file yang di exclude sangat banyak maka daftarkan pada satu file
    Contoh:

    foder atau file yang akan di copy ke server B kecuali:

    default.php

    init.php
    images

    maka list nama file or dir tersebut di daftarkan di satu file
    [root@serverA]# vim exclude-crm.txt -> masukkan list file diatas -> save
    rsync -avz –exclude-from =’exclude-crm.txt’ /var/www/html/cr/m root@192.168.0.1:/var/www/html/crm/yang perlu diperhatikan adalah option “–exclude-from”

  6. Jika file yang akan di copy hanya beberapa file maka disarankan menggunakan option “–files-from” yang merupakan kebalikan dari “–exclude-from”
    Contoh:
    admin.php
    default.php
    init.php
    a.jgp
    index.php
    lib

    adalah file2 yang akan dicopy ke server B, maka daftarkan name file tersebut satu file
    [root@serverA]# vim include-crm.txt
    rsync -ravz –files-from=include-crm.txt /var/www/html/crm/ root@192.168.0.1:/var/www/html/crm/

Terimakasih
Advertisements

ad


SANGOMA A200/Remora FXO/FXS Analog AFT card , Asterisk, Dahdi LibPRI on CENTOS 6.2 / 64 bit


Urutan instalasi
  1. dahdi-linux-2.4.1.2.tar.gz
  2. dahdi-tools-2.4.1.tar.gz
  3. asterisk-1.8-current.tar.gz
  4. openr2-1.3.1.tar.gz
  5. wanpipe-3.5.20.tgz

Require library

yum -y install kernel-devel-$(uname -r) kernel-devel libtool gcc patch perl bison ncurses ncurses-devel flex libtermcap-devel lksctp-tools-devel libmcrypt-devel mhash-devel libtidy-devel freetds-devel make gcc* gcc-c++ awk* patch libtermcap-devel bison autoconf automake openssl-devel kernel-smp-devel unixODBC-devel qt-devel unifdef libtiff libtiff-devel ghostscript enscript ImageMagick gd gd-devel jasper jasper-devel libjpeg libjpeg-devel libexif libmng zlib-devel openssl-devel krb5-devel libselinux-devel libsepol-devel keyutils-libs-devel e2fsprogs-devel libxml2-devel zlib-devel newt-devel slang-devel libstdc++-devel imake glibc-headers glibc-devel vim nmap doxygen dos2unix mysql mysql-devel mysql-server mysql-libs mysql-connector-odbc php-mysql php php-* php memcached ntp ntpdate ntsysv sox sox-devel lame* perl-* system-config-* newt-devel slang-devel

Libpri

[root@localhost asterisk]# tar -zxvf libpri-1.4-current.tar.gz -C /usr/src/
[root@localhost asterisk]# cd /usr/src/libpri-1.4.12/
[root@localhost asterisk]# make && make instal

Install dahdi-linux
Sebelum melakukan ini maka pastikan sudah ada drivernya di /usr/src/dahdi-linux-2.4.1.2/firmware/driver/
[root@localhost asterisk]# tar -zxvf dahdi-linux-2.4.1.2.tar.gz -C /usr/src/
[root@localhost asterisk]# cd /usr/src/dahdi-linux-2.4.1.2

dahdi-fw-hx8-2.06.tar.gz
dahdi-fwload-vpmadt032-1.20.0.tar.gz
dahdi-fwload-vpmadt032-1.25.0.tar.gz
dahdi-fw-oct6114-064-1.05.01.tar.gz
dahdi-fw-oct6114-128-1.05.01.tar.gz
dahdi-fw-tc400m-MR6.12.tar.gz
dahdi-fw-vpmadt032-1.07.tar.gz

[root@localhost asterisk]# cp /home/ecentrix/installer/asterisk/firmware/* /usr/src/dahdi-linux-2.4.1.2/linux/drivers/dahdi/firmware/
[root@localhost asterisk]#cd /usr/src/dahdi-linux-2.4.1.2/linux/drivers/dahdi/firmware/
[root@localhost asterisk]#ls -l | grep tar.gz | awk ‘{print $9}’  | xargs -i /bin/tar -zxvf {} -C .
[root@localhost asterisk]#lcd /usr/src/dahdi-linux-2.4.1.2
[root@localhost asterisk]# make
[root@localhost asterisk]# make install
Install DAHDI TOOLS
[root@localhost asterisk]# tar -zxvf /home/ecentrix/installer/dahdi-tools-2.4.1.tar.gz   -C /usr/src
[root@localhost asterisk]# ./configure && make && make install && make config
Install OPENR2
[root@localhost asterisk]# tar -zxvf /home/ecentrix/installer/openr2-1.3.1.tar.gz -C /usr/src
[root@localhost asterisk]# cd /usr/src/openr2-1.3.1.
[root@localhost asterisk]# ./configure –prefix=/usr && make && make install
Install Asterisk 1.8
Sebelum ini pastikan libxml2-* dan doxygen sudah terinstall 
[root@localhost asterisk]# tar -zxvf /home/ecentrix/installer/asterisk-1.8-current.tar.gz -C /usr/src/
[root@localhost asterisk]# ./configure && make && make install & make samples && make config
[root@localhost asterisk]#/etc/init.d/asterisk restart

[root@localhost asterisk]#chkconfig asterisk on

[root@localhost asterisk]# ldd channels/chan_dahdi.so | grep openr2
[root@localhost asterisk]# dahdi_cfg -vv
[root@localhost asterisk]# wanpipemon -i w1g1 -c Ta
Install Wanpipe
[root@localhost asterisk]# tar -zxvf /home/ecentrix/installer/wanpipe-3.5.20.tgz -C /usr/src
[root@localhost asterisk]# cd /usr/src/wanpipe-3.5.20
[root@localhost asterisk]# ./Setup dahdi
[root@localhost asterisk]# wanrouter hwprobe
[root@localhost asterisk]# wancfg_dahdi
[root@localhost asterisk]# wanrouter list
[root@localhost asterisk]# wanrouter status
Ini dilakukan untuk mengenerate signaling dan akan di tulis ke file
[root@localhost installer]# vim /etc/wanpipe/wanpipe1.conf
[root@localhost installer]# wancfg_dahdi
########################################################################
#                          Sangoma Wanpipe                             #
#        Dahdi/Zaptel/SMG/TDMAPI/BOOT Configuration Script             #
#                             v2.39                                  #
#                     Sangoma Technologies Inc.                        #
#                        Copyright(c) 2009.                            #
########################################################################Would you like to generate /etc/asterisk/chan_dahdi.conf
1. YES
2. NO
[1-2]:1———————————————
Configuring T1/E1 cards [A101/A102/A104/A108]
———————————————
A101 detected on slot:1 bus:1———————————————————–
Configuring port 1 on A101 slot:1 bus:1.
———————————————————–

Select media type for AFT-A101 on port 1 [slot:1 bus:1 span:1]
1. T1
2. E1
3. Unused
4. Exit
[1-4]:2

Configuring port 1 on 101 as E1, line coding:HDB3, framing:CRC4
1. YES – Keep these settings
2. NO  – Configure line coding and framing
[1-2, ENTER=’YES’]:1
Select clock for AFT-A101 on port 1 [slot:1 bus:1 span:1]
1. NORMAL
2. MASTER
[1-2]:1

Select signalling type for AFT-A101 on port 1 [slot:1 bus:1 span:1]
1. Zaptel/Dahdi – PRI CPE
2. Zaptel/Dahdi – PRI NET
3. Zaptel/Dahdi – E & M
4. Zaptel/Dahdi – E & M Wink
5. Zaptel/Dahdi – FXS – Loop Start
6. Zaptel/Dahdi – FXS – Ground Start
7. Zaptel/Dahdi – FXS – Kewl Start
8. Zaptel/Dahdi – FX0 – Loop Start
9. Zaptel/Dahdi – FX0 – Ground Start
10. Zaptel/Dahdi – FX0 – Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12]:1

Select switchtype for AFT-A101 on port 1
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7]:5
Would you like to enable hardware DTMF detection?
1. YES
2. NO
[1-2, ENTER=’YES’]:1
Would you like to enable hardware fax detection?
1. YES
2. NO
[1-2, ENTER=’NO’]:1
Configuring port 1 on AFT-A101 as a full E1
1. YES – Use all channels
2. NO  – Configure for fractional
[1-2, ENTER=’YES’]:1
Select dialplan context for AFT-A101 on port 1
1. from-pstn
2. from-internal
3. Custom
[1-3]:1

Port 1 on AFT-A101 configuration complete…
Press any key to continue:

T1/E1 card configuration complete.
Press any key to continue:

###################################################################
#                             SUMMARY                             #
###################################################################

1 T1/E1 port(s) detected, 1 configured
0 ISDN BRI port(s) detected, 0 configured
0 analog card(s) detected, 0 configured
0 usb device(s) detected, 0 configured

Configurator will create the following files:
1. Wanpipe config files in /etc/wanpipe
2. Dahdi config file /etc/dahdi/system.conf
3. Chan-Dahdi config file /etc/asterisk/chan_dahdi.conf

Your original configuration files will be saved to:
1. /etc/dahdi/system.conf.bak
2. /etc/asterisk/chan_dahdi.conf.bak

Your configuration has been saved in /etc/wanpipe/debug-2002-01-06.tgz.
When requesting support, email this file to techdesk@sangoma.com

###################################################################

Configuration Complete! Please select following:
1. YES – Continue
2. NO – Exit
[1-2]:1
Dahdi and Wanpipe configuration complete: choose action
1. Save cfg: Restart Asterisk & Wanpipe now
2. Save cfg: Restart Asterisk & Wanpipe when convenient
3. Save cfg: Stop Asterisk & Wanpipe now
4. Save cfg: Stop Asterisk & Wanpipe when convenient
5. Save cfg: Save cfg only (Not Recommanded!!!)
6. Do not save cfg: Exit
[1-6]:

Stopping Asterisk…

Stopping Wanpipe…

Shutting down wanpipe1 interface: w1g1
Shutting down device: wanpipe1
No devices running, Unloading Modules

Unloading Dahdi modules…

Removing old configuration files…

Copying new Wanpipe configuration files…

Copying new Dahdi configuration file (/etc/dahdi/system.conf)…

Copying new Chan-Dahdi configuration files (/etc/asterisk/chan_dahdi.conf)…

Starting Wanpipe…

Starting WAN Router…
Loading WAN drivers: wanpipe done.
Starting up device: wanpipe1
–> Loading ec image OCT6116-64S.ima..
Configuring interfaces: w1g1
done.
Waiting for Dahdi /dev/dahdi …
DAHDI Tools Version – 2.4.1

DAHDI Version: 2.4.1.2
Echo Canceller(s):
Configuration
======================

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

31 channels to configure.

Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
Setting echocan for channel 4 to mg2
Setting echocan for channel 5 to mg2
Setting echocan for channel 6 to mg2
Setting echocan for channel 7 to mg2
Setting echocan for channel 8 to mg2
Setting echocan for channel 9 to mg2
Setting echocan for channel 10 to mg2
Setting echocan for channel 11 to mg2
Setting echocan for channel 12 to mg2
Setting echocan for channel 13 to mg2
Setting echocan for channel 14 to mg2
Setting echocan for channel 15 to mg2
Setting echocan for channel 16 to none
Setting echocan for channel 17 to mg2
Setting echocan for channel 18 to mg2
Setting echocan for channel 19 to mg2
Setting echocan for channel 20 to mg2
Setting echocan for channel 21 to mg2
Setting echocan for channel 22 to mg2
Setting echocan for channel 23 to mg2
cSetting echocan for channel 24 to mg2
Setting echocan for channel 25 to mg2
Setting echocan for channel 26 to mg2
Setting echocan for channel 27 to mg2
Setting echocan for channel 28 to mg2
Setting echocan for channel 29 to mg2
Setting echocan for channel 30 to mg2
Setting echocan for channel 31 to mg2

Loading Dahdi…
DAHDI Tools Version – 2.4.1

DAHDI Version: 2.4.1.2
Echo Canceller(s): MG2
Configuration
======================

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

31 channels to configure.

Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
Setting echocan for channel 4 to mg2
Setting echocan for channel 5 to mg2
Setting echocan for channel 6 to mg2
Setting echocan for channel 7 to mg2
Setting echocan for channel 8 to mg2
Setting echocan for channel 9 to mg2
Setting echocan for channel 10 to mg2
Setting echocan for channel 11 to mg2
Setting echocan for channel 12 to mg2
Setting echocan for channel 13 to mg2
Setting echocan for channel 14 to mg2
Setting echocan for channel 15 to mg2
Setting echocan for channel 16 to none
Setting echocan for channel 17 to mg2
Setting echocan for channel 18 to mg2
Setting echocan for channel 19 to mg2
Setting echocan for channel 20 to mg2
Setting echocan for channel 21 to mg2
Setting echocan for channel 22 to mg2
Setting echocan for channel 23 to mg2
Setting echocan for channel 24 to mg2
Setting echocan for channel 25 to mg2
Setting echocan for channel 26 to mg2
Setting echocan for channel 27 to mg2
Setting echocan for channel 28 to mg2
Setting echocan for channel 29 to mg2
Setting echocan for channel 30 to mg2
Setting echocan for channel 31 to mg2

Starting Asterisk…

Listing Asterisk channels…

Chan Extension  Context         Language   MOH Interpret        Blocked    State
pseudo            default                    default                         In Service
1            from-pstn                  default                         In Service
2            from-pstn                  default                         In Service
3            from-pstn                  default                         In Service
4            from-pstn                  default                         In Service
5            from-pstn                  default                         In Service
6            from-pstn                  default                         In Service
7            from-pstn                  default                         In Service
8            from-pstn                  default                         In Service
9            from-pstn                  default                         In Service
10            from-pstn                  default                         In Service
11            from-pstn                  default                         In Service
12            from-pstn                  default                         In Service
13            from-pstn                  default                         In Service
14            from-pstn                  default                         In Service
15            from-pstn                  default                         In Service
17            from-pstn                  default                         In Service
18            from-pstn                  default                         In Service
19            from-pstn                  default                         In Service
20            from-pstn                  default                         In Service
21            from-pstn                  default                         In Service
22            from-pstn                  default                         In Service
23            from-pstn                  default                         In Service
24            from-pstn                  default                         In Service
25            from-pstn                  default                         In Service
26            from-pstn                  default                         In Service
27            from-pstn                  default                         In Service
28            from-pstn                  default                         In Service
29            from-pstn                  default                         In Service
30            from-pstn                  default                         In Service
31            from-pstn                  default                         In Service

Type “asterisk -r” to connect to Asterisk console

Wanrouter start complete…
Current boot level is 5

Wanrouter boot scripts configuration…

Removing existing wanrouter boot scripts…OK
Would you like wanrouter to start on system boot?
1. YES
2. NO
[1-2]:1
Verifying Dahdi boot scripts…
Verifying Dahdi boot scripts…Enabled (level:26)
Verifying Dahdi shutdown scripts…Enabled (level:74)
Enabling wanrouter boot scripts …(level:25)
Enabling wanrouter shutdown scripts …(level:73)

Would you like to execute ‘dahdi_cfg’ each time wanrouter starts?
1. YES
2. NO
[1-2]:1
Remvoing old smg_ctrl boot…..OK
Remvoing old smg_ctrl_safe boot…..OK
Sangoma cards configuration complete, exiting…

==============================================================================

Dan untuk membagi group masing-masing E1 dapat di edit file
[root@localhost asterisk]# vim /etc/asterisk/chan_dahdi.conf
Isi file chan_dahdi.conf sendiri ada setelah command wancfg_dahdi di jalankan
Untuk melihat versi dahdi yang digunakan :
[root@localhost asterisk]# dahdi_cfg -vv
DAHDI Tools Version – 2.4.1DAHDI Version: 2.4.1.2
Echo Canceller(s): MG2
Configuration
======================SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)Channel map:

[root@localhost asterisk]# vim /etc/dahdi/system.conf
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2012-10-01
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=us
defaultzone=us#Sangoma A101 port 1 [slot:1 bus:1 span:1] <wanpipe1>
span=1,1,0,ccs,hdb3
bchan=1-15,17-31
echocanceller=mg2,1-15,17-31
hardhdlc=16
Untuk Telkom biasaya terjadi perbedaan signaling :
FE_LCODE        = HDB3
FE_FRAME        = NCRC4

Ini ditemukan di file /etc/wanpipe/wanpipe1.conf

Untuk menulis ulang file tersebut, commandnya:
[root@localhost installer]# wancfg_dahdi

Check Signaling Error:

[root@localhost asterisk]# wanpipemon -i w1g1 -c Ta***** w1g1: E1 Rx Alarms (Framer) *****ALOS:   OFF     | LOS:  ON
RED:    ON      | AIS:  OFF
LOF:    ON      | RAI:  OFF***** w1g1: E1 Rx Alarms (LIU) *****

Short Circuit:  OFF
Open Circuit:   ON
Loss of Signal: ON

***** w1g1: E1 Tx Alarms *****

AIS:    OFF     | YEL:  ON

***** w1g1: E1 Performance Monitoring Counters *****

Line Code Violation     : 0
Far End Block Errors    : 0
CRC4 Errors             : 0
FAS Errors              : 0

Rx Level        : < -44db

===============================================================================
CONFIG ASTERISK
sip.conf

[general]
context=default ; Default context for incoming calls

allowoverlap=no ; Disable overlap dialing support. (Default is yes)
realm=10.7.60.204 ; Realm for digest authentication
bindport=5060
udpbindaddr=0.0.0.0 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
; Optionally add a port number, 192.168.1.1:5062 (default is port 5060
tcpenable=no ; Enable server for incoming TCP connections (default is no)
tcpbindaddr=0.0.0.0 ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces)
; Optionally add a port number, 192.168.1.1:5062 (default is port 5060)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls

callevents=yes ; generate manager events when sip ua
; performs events (e.g. hold)
nat=yes

[4001]
context=outbound

type=friend
username=4001
secret=moses
callerid=”4001″ <4001>
host=dynamic
disallow=all
allow=ulaw
allow=alaw
;qualify=yes
canreinvite=no
insecure=port,invite
dtmfmode=rfc2833
nat=no
call-limit=1
mailbox=4001

extensions.conf

static = yes
writeprotect = no
autofallthrough = yes
clearglobalvars = no
;==================================================================================
;Global Variable Definition
;==================================================================================
[globals]
TRUNK1 = DAHDI/g1

[ecentrix-agents]

exten => _8X.,1,Dial(DAHDI/g1/${EXTEN:1},${DIAL_TIMEOUT},tT${DIAL_OPTIONS})
exten => _8X.,n,NoOp(${HANGUPCASUSE} DAN ${DIALSTATUS})
exten => _8X.,n,Hangup()

save dan reload dialplan asterisk

Test call via xlite denga prefix 8

===============================================================================
DEFAULT VALUE JIKA E1 BELUM TERKONKEKSI
[root@localhost asterisk]# wanpipemon -i w1g1 -c Ta***** w1g1: E1 Rx Alarms (Framer) *****ALOS:   OFF     | LOS:  ON
RED:    ON      | AIS:  OFF ===========> setelah E1 ada dan JIKA AIS =0N maka kontak provider (telko)
LOF (Lost off framing signal):    ON      | RAI (Remote alarm indication) :  OFF    setelah E1 ada dan JIKA AIS =ON maka kontak provider (telko), Jika framing masih salah / signaling edit file /etc/wanpipe/wanpipe.cfg
***** w1g1: E1 Rx Alarms (LIU) *****Short Circuit:  OFF ===========>  Kemungkinan PIN OUT bermasalah urutannya / mungkin crippingannya salah
Open Circuit:   ON ============> Issue di cable.  .  You will also see the Rx Level either very low, or in a disconnected state: -36 -> -44. 
Loss of Signal: ON***** w1g1: E1 Tx Alarms *****AIS:    OFF     | YEL:  ON

***** w1g1: E1 Performance Monitoring Counters *****

Line Code Violation     : 0
Far End Block Errors    : 0
CRC4 Errors             : 0
FAS Errors              : 0

Rx Level        : < -44db

================

Below is a description of each Alarm:

RED
Indicates the device is in alarm 
LOF
(Loss of Framing).  Raised after four consecutive frames with FAS error.  If RAI and AIS alarms are not indicated, verify that you have selected the proper line framing (i.e T1: ESF, D4, E1:CRC4, NCRC4..etc)  

Kasus di Ochannel

Berikut update status Oshop;
1. untuk E1 Telkom (2922500) sudah ok setelah perubahan signaling NRCR4
LOS
(Loss Of frame Signal)
AIS
(Alarm Indication Signal): typicall know as a  BLUE Alarm. all-ones signal transmission to the receiving equipment (the Sangoma card) to indicate that an upstream repeater (telco equipment) is in alarm, due to upstream transmission fault, either from another repeater or from the telco itself. If the only alarms indicating in the wanpipemon output is AIS:ON, then contact your telco with this information (RAI:ON can also be a possibility in this case as well)
Example call diagram of the scenario: Sangoma card <—————repeater <————–Telco
RAI
(Remote Alarm Indication): Indicates that the Far end (typically the Telco) is in RED alarm state and sending that message over the line.  If the only alarm in your wanpipemon output is RAI:ON then contact your telco with this information.

You will also get this alarm, and only this alarm, if your framing is incorrect.This setting can be changed in the wanpipeX.conf file.


Short Circuit
 the wires in your cable connected to the port are crossed.  If you see this alarm, check the pinouts for the cable you are using. You may also be plugging in the wrong form of cable (straight-through, or cross-over) 
Open Circuit
 No line plugged into the port.  Make sure that your connector is plugged in and the wiring is making a good connection.  If this alarm is on, you will also Rx Level=’-36′->’-44′. 
Loss of Signal
 Cabling issue.  Check the health of the cable plugged into the port, as well as its connection to the port it is plugged into.  You will also see the Rx Level either very low, or in a disconnected state: -36 -> -44.  It is typical to have this alarm triggers in combination with ‘Open Circuit’ if there is an issue with the physical connection 
YEL
When the equipment enters a Red-Alarm state, it returns a Yellow-Alarm back up the line of the received OOF. A typical scenario would be mis-configuration during the Sangoma card configuration (i.e selected CRC4 vs NCRC4).  In this type of scenario also LOF and RED alarms will be triggered.
Line Code Violation
 This occurs upon a bipolar violation
Far End Block Errors
is reported by the upstream end of the PHY (the wire between you and the switch) on the out-of-band management channel. This means the other end of the line received bad data from you.  Possible reason are: line noise, corroded wires..etc.  Also, check line Framing (E1: CRC4 vs NCRC4)
CRC4 Errors
 This occurs when the CRC polynomial calculation performed before transmission does not match the CRC calculation done upon reception.
FAS Errors
 (Frame alignment signal error). One or more incorrect bits in the alignment word
Rx Level
 Signal strength of the connection between the Sangoma card and the other end.  Health connection will show -2.5db.  If you notice your connection lower (i.e. -10db–>-12db, or -36fb, -44 db) Then check the cable or possibly replace it.  If the Rx level is very low, it can trigger Loss of Signal Tx, or even Open Circuit tx.

Install Voip Monitor On Centos 6.2


Menggunakan protocol SIP trunk pada system VOIP sangat menghemat biaya. Namun masalah yang paling sering muncul pada sistem voip ini adalah  terletak pada releabitilas koneksi. Banyak tools monitoring voip call namun yang satu ini menurut saya lebih informative.

Voipmonitor ini meng-capture hampir semua informasi call inbound dan outbound. Semua log di simpan di database dan melakukan perhitungan seperti MOS.  Dari MOS ini kita dapat mengukur qulitas call dengan mensort. Jika MOS bernilai dibawah 4.0 mungkin memiliki JITTER atau LAG di audio.

Berikut adalah cara instalasinya
1. Instalasi library
yum install subversion libmysql++-dev libvorbis-devel mysql-devel libpcap-devel php5-mysql php5-gd
2. Download Installer
libpcap-1.1.1.tar
mysql++-3.0.9.tar
voipmonitor-3.0.1.tar
3. Tahap instalasi
tar xzf libpcap-1.1.1.tar.gz -C /usr/src/
cd /usr/src/libpcap*
./configure && make && make install

tar xzf mysql++-3.0.9.tar.gz –C /usr/src/
cd /usr/src/mysql++-3.0.9
make install && ldconfig
cp /usr/local/lib/libmysqlpp.so.3 /usr/lib/
cp /usr/local/lib/libmysqlpp.so.3 /usr/lib64/

tar zxf voipmonitor-2.0.tar.gz –C /usr/src/
cd /usr/src/voipmonitor-2.0
make && make install
cp /usr/local/lib/libpcap.* /usr/lib
cp /usr/local/lib/libpcap.* /usr/lib64
4. Instalasi database voipmonitor
mysql –udbusername–pdbpassword–e “create database voipmonitor”
mysql –udbusername–pdbpassword –database voipmonitor < cdrtable.sql

5. Testing
Jalan via command line
voipmonitor -i eth0 -SRG -h localhost -b voipmonitor -u dbuser -p dbpassword

Note : eth0 = interface (disesuaikan dengan interface yang aktif)

Lakukan pengecekan langsung ke database untuk melihat data yang direcord:)

Selamat mencoba

 

What is required
================

– C and C++ compiler (gcc,g++)
– libpcap-dev package >= 1.0
– zlib ibrary
– Libogg, Libvorbis
– unixODBC-devel

– Make sure mysql is installed when building CentOS
– Under the Web Server include the mysql-devel and php-mysql packages

Pre-Build
=========

yum groupinstall ‘Development Tools’
yum install subversion unixODBC-devel mysql-devel libogg libogg-devel vorbis-tools libvorbis libpcap-devel

(for older centos < 6.3)
————————
wget http://www.tcpdump.org/release/libpcap-1.3.0.tar.gz
tar xzf libpcap-1.1.1.tar.gz
cd libpcap*
./configure
make
make install

Build voipmonitor
=================
svn co https://voipmonitor.svn.sourceforge.net/svnroot/voipmonitor/trunk voipmonitor-svn
cd voipmonitor-svn
rm Makefile
./configure
make

make install
mkdir /var/spool/voipmonitor
chown apache /var/spool/voipmonitor

Post Build
==========

Start mysql
———–
yum install mysql-server
chkconfig mysqld on
service mysqld start
mysqladmin create voipmonitor
cat cdrtable.sql | mysql voipmonitor
cp config/voipmonitor.conf /etc/
#edit file /etc/voipmonitor.conf to your needs
cp config/init.d/voipmonitor /etc/init.d/
chkconfig –add voipmonitor
chkconfig voipmonitor on

Web Interface
=============

Enable Apache
————-
yum install httpd php php-gd php-mysql php-process
chkconfig httpd on
service httpd start

Install the voipmonitor Interface
———————————
go to voipmonitor.org/download and download manual and GUI

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: