PDA

View Full Version : gptest - How to make a back-to-back test call with the PIKA Digital Gateway card



epretlac
05-21-09, 10:25 AM
Problem: How do I make a back-to-back test call with the PIKA Digital Gateway card?

Solution: Also known as a loopback test, this procedure assumes that span 0 and 1 are connected together with a loopback cable.

1. Launch the gpconfig utility using the following command:
# gpconfig

2. Edit the file /etc/pika/pikagp_aoh.cfg so that one span is set to node=client and the other span is set to node=network

3. Launch the gptest utility using the following command:
# gptest

4. Wait for PKX_EVENT_CHANNEL_READY events
- this indicates that L1 and L2 are up

5. At the gptest command line enter the following command:

> call 0 make

- you should see something similar to the output below


May 21 10:20:30.659:
May 21 10:20:30.659: ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++
May 21 10:20:30.659: gptest 2.7.1.6
May 21 10:20:30.659: Comment: Standard Build
May 21 10:20:30.659: Compile date: Apr 30 2009 13:54:11
May 21 10:20:30.659: Copyright (c) 2009 PIKA Technologies Inc.
May 21 10:20:30.659:
May 21 10:20:30.659: type 'help' for the list of supported functions
May 21 10:20:30.659: ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++

May 21 10:20:30.659: Loading configuration file ...

May 21 10:20:30.706: GROUP 0: "ISDN_GROUP" created
May 21 10:20:30.706: GROUP 1: "VIRTUAL_GROUP" created
May 21 10:20:46.067: CHANNEL 0: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.067: CHANNEL 1: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 2: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 3: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 4: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 5: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 6: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 7: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 8: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 9: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 10: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 11: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 12: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 13: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 14: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 15: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 16: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 17: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 18: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 19: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 20: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 21: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 22: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 23: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 24: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 25: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 26: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 27: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 28: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 29: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.068: CHANNEL 30: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 31: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 32: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 33: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 34: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 35: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 36: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 37: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 38: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 39: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 40: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 41: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 42: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 43: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 44: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:20:46.069: CHANNEL 45: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:22:16.611: > call 0 make
May 21 10:22:16.612: CHANNEL 0: received PKX_EVENT_CHANNEL_IN_USE (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:22:16.612: CALL 0: received PKX_EVENT_CALL_PROCEEDING (p0 = 0x1000002, p1 = 0x0, p2 = 0x0)
May 21 10:22:16.615: CHANNEL 23: received PKX_EVENT_CHANNEL_IN_USE (p0 = 0x0, p1 = 0x0, p2 = 0x0)
May 21 10:22:16.615: CALL 23: received PKX_EVENT_GROUP_INCOMING_CALL (p0 = 0x1000019, p1 = 0x1000032, p2 = 0x0)
May 21 10:22:16.615: CALL 23: Incoming call info (from '', to '', forwardedFrom '', display '', category '0', tollCategory '0', callingNumberRestricted no, custom '')
May 21 10:22:16.616: CALL 23: received PKX_EVENT_CALL_ANSWERED (p0 = 0x1000019, p1 = 0x0, p2 = 0x0)
May 21 10:22:16.621: CALL 0: received PKX_EVENT_CALL_CONNECTED (p0 = 0x1000002, p1 = 0x0, p2 = 0x0)
May 21 10:22:26.344: > exit
May 21 10:22:26.445: Bye

May 21 10:22:26.456: GROUP 0: "ISDN_GROUP" destroyed
May 21 10:22:26.457: GROUP 1: "VIRTUAL_GROUP" destroyed

Eric Pretlac
Technical Support Specialist
PIKA Technologies

gwouite
08-13-09, 03:17 AM
Hello,

I do this kind of test to test the load of my app during a long time (around 3 or 4 days).
I make around 300 calls per minute on all channels and launch all kind of service that i could need (conference, playback, record, ...).

The crossover cable (or loopback cable) is done when you link 2 RJ48 jacks:
pin 1 to pin 4
pin 2 to pin 5
pin 4 to pin 1
pin 5 to pin 2

Image here : http://tinyurl.com/crossover-jpg
Other link for crossover : http://en.wikipedia.org/wiki/RJ48

Best Regards, Guillaume.