SANGOMA

Wanpipe Asterisk Patlooptest

Patlooptest

The patlooptest can be used with T1/E1 cards to confirm that a specific port is not defective. It sends data through the zap channel and checks if data sent = data received.

To perform the patlooptest, you will need a loopback cable in the port under test.

Pin-outs for the loopback cable:
1<->4
2<->5


Step 1:

Wanpipe Configuration

TDM Voice Protocol

           Configure the port on the Sangoma card for Master clock

vi /etc/wanpipe/wanpipe*.conf

            TE_CLOCK = MASTER

            No Hardware HDLC and hardware echo canceller

vi /etc/wanpipe/wanpipe*.conf

            TDMV_DCHAN = 0
            TDMV_HWEC = NO

 

 

                        Step 2:

                        Zaptel Configuration (/etc/zaptel.conf)

                        Example :

For T1:

(24 Channels )

 

span = 1,1,0,esf,b8zs
    clear = 1   
    clear = 2
    clear = 3   
    :
    :
    :
    clear = 24

For E1:

(31 Channels)

 

span=1,1,0,ccs,hdb3,crc4

    clear = 1   
    clear = 2
    clear = 3   
    :
    :
    :
    clear = 31

 

Step 3:

Execute Patlooptest

Go to your zaptel source directory (/usr/src/zaptel)
            #> cd   /usr/src/zaptel

ii)        Compile patlooptest

            #> make patlooptest

Start wanrouter

#> wanrouter start

Configure zaptel

#> ztcfg –vvvvvv

Start Patlooptest

#>nice -n -11 ./patlooptest /dev/zap/N
where N is your channel number.


The output should say:

Going for it...  

And the patlooptest program will start transmitting/receiving. If the received frame is different from the transmitted frame, error messages will be printed on the screen. If you do not see any error messages, then the card is not defective.

You should also check your wanpipe interface for incrementing rx and tx counters, and confirm that you are not getting any overruns.

To check rx and tx counters :

#>ifconfig

Note: If your rx and tx counters are not incrementing,   your loopback connecter is bad and/or something wrong with configuration files (/etc/wanpipe/wanpipe*.conf, /etc/zaptel.conf)

If you see that the port is failing this test, please send following information to techdesk@sangoma.com

Send us the output of following commands:

1)wanrouter hwprobe
2)wanrouter version
3)wanrouter status
4)ifconfig (run this command atleast three times with one second delay and send us all the outputs)

5) nice -n -11 ./patlooptest /dev/zap/N
    where N is your channel number.

Send us the following configuration files:

1)/etc/zaptel.conf,
2)/etc/wanpipe/wanpipe*.conf
3)/var/log/messages
(Right after wanrouter start to end)



 

Site

Changes
Index
Search

 

User

 

Log In
Register

 
 

Last Modified 12/5/07 5:04 PM