PDA

View Full Version : Testing analog HMP (FXO) lines using gptest



epretlac
09-29-09, 04:07 PM
Before you begin:

1. In order to use gptest, you must first stop any other applications that may be using the PIKA drivers.

2. Make sure you have configured your product according to the instructions in the PIKA GrandPrix Configuration Guide found here. This guide describes how to use the GP Config tool, how configuration files are set up, and how to modify the configuration files:
http://outgoingftp.pikatech.com/base...ide/index.html (http://outgoingftp.pikatech.com/base_sdk/gp_2.7.8/docs/html/configuration_guide/index.html)


----------------------------------------------------------------------------------------------------------------------------

I. To test INCOMING calls.

This test should tell us whether GrandPrix is configured correctly and whether the FXO hardware is able to recognize incoming calls.

- launch gptest
# gptest

- wait for CHANNEL_READY events on fxo channels
- make an inbound call
- play an audio file using the following gptest command

> channel 0 play <filename>

Your output should look similar to the output below.


/persistent2/root # gptest

++++++++++++++++++++++++++++++++++++++++++++++++++ +++++
gptest 2.7.9.4
Comment: Standard Build
Compile date: Jul 23 2009 14:38:59
Copyright (c) 2009 PIKA Technologies Inc.

type 'help' for the list of supported functions
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++

Loading configuration file ...

GROUP 0: "TRUNK_GROUP" created
GROUP 1: "PHONE_GROUP" created
GROUP 2: "VIRTUAL_GROUP" created
CHANNEL 4: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CHANNEL 5: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CHANNEL 6: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CHANNEL 7: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CHANNEL 8: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CHANNEL 0: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)

> CHANNEL 0: received PKX_EVENT_CHANNEL_IN_USE (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CALL 0: received PKX_EVENT_GROUP_INCOMING_CALL (p0 = 0x1000002, p1 = 0x100000d, p2 = 0x0)
CALL 0: Incoming call info updated (from '9157752700', to '', forwardedFrom '', display 'THOMSON EL PASO', callingNumberRestricted no, custom '', interworkingPresent = 'no')
CALL 0: received PKX_EVENT_CALL_ANSWERED (p0 = 0x1000002, p1 = 0x0, p2 = 0x0)


> channel 0 play /usr/bin/jingle.wav

> CHANNEL 0: received PKX_EVENT_CHANNEL_DATAREADY_PLAY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CHANNEL 0: received PKX_EVENT_CHANNEL_DONE_PLAY (p0 = 0x0, p1 = 0x0, p2 = 0x0)


> CALL 0: received PKX_EVENT_CALL_DISCONNECTED (p0 = 0x1000002, p1 = 0x0, p2 = 0x0)
CALL 0: Drop cause = normal
CHANNEL 0: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)


> exit

----------------------------------------------------------------------------------------------------------------------------

II. To test OUTGOING calls.

This test should tell us whether GrandPrix is configured correctly and whether the hardware can make outbound calls.

Try making outbound calls using gptest.

- launch gptest
# gptest

- wait for CHANNEL_READY events on fxo channels
- then make an outbound call using the following command:

> call 0 make to=<number>


Your output should look similar to the output below.


++++++++++++++++++++++++++++++++++++++++++++++++++ +++++
gptest 2.7.9.4
Comment: Standard Build
Compile date: Jul 23 2009 14:38:59
Copyright (c) 2009 PIKA Technologies Inc.

type 'help' for the list of supported functions
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++

Loading configuration file ...

GROUP 0: "TRUNK_GROUP" created
GROUP 1: "PHONE_GROUP" created
GROUP 2: "VIRTUAL_GROUP" created
CHANNEL 4: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CHANNEL 5: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CHANNEL 6: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CHANNEL 7: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CHANNEL 8: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CHANNEL 0: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)

> call 0 make to=101
CHANNEL 0: received PKX_EVENT_CHANNEL_IN_USE (p0 = 0x0, p1 = 0x0, p2 = 0x0)

> CALL 0: received PKX_EVENT_CALL_DIALING (p0 = 0x1000002, p1 = 0x0, p2 = 0x0)
CALL 0: received PKX_EVENT_CALL_PROCEEDING (p0 = 0x1000002, p1 = 0x0, p2 = 0x0)
CALL 0: received PKX_EVENT_CALL_CONNECTED (p0 = 0x1000002, p1 = 0x1, p2 = 0x0)


> channel 0 play /usr/bin/jingle.wav

> CHANNEL 0: received PKX_EVENT_CHANNEL_DATAREADY_PLAY (p0 = 0x0, p1 = 0x0, p2 = 0x0)
CHANNEL 0: received PKX_EVENT_CHANNEL_DONE_PLAY (p0 = 0x0, p1 = 0x0, p2 = 0x0)


> call 0 drop

> CALL 0: received PKX_EVENT_CALL_DROPPED (p0 = 0x1000002, p1 = 0x0, p2 = 0x0)
CALL 0: Drop cause = normal
CHANNEL 0: received PKX_EVENT_CHANNEL_READY (p0 = 0x0, p1 = 0x0, p2 = 0x0)


> exit

----------------------------------------------------------------------------------------------------------------------------

If you need assistance from PIKA Technical Support, please run the commands above and send the following to support@pikatech.com
- your gptest output
- your /etc/pika/pikagp.cfg and pikagp_aoh.cfg


When contacting PIKA Technical Support, it is always helpful for you to send the serial number of your product. With that information, we can verify the model number of PIKA card you have, the date of manufacture, firmware revisions installed, and other valuable information.

Finding the serial number of your PIKA product
http://forum.pikatechnologies.com/showthread.php?t=239