epretlac
11-06-09, 05:29 PM
Here is how you can use gptest to take outgoing calls and incoming calls on a digital T1/E1 HMP card.
To test outgoing calls:
1. Launch the gpconfig utility using the following command:
Windows: Start > Programs > PIKA GrandPrix SDK > gpconfig
Linux: # gpconfig
2. Launch the gptest utility using the following command:
Windows: Start > Programs > PIKA GrandPrix SDK > gptest
Linux: # gptest
3. Wait for PKX_EVENT_CHANNEL_READY events on all channels.
- this indicates that L1 and L2 are up
4. At the gptest command line enter the following command:
> call 0 make to=<phone number>
To test incoming calls:
By default, gptest is configured to auto-answer incoming calls. So all you have to do is follow steps 1-3 above, and then make an incoming call. You should see PKX_EVENT_GROUP_INCOMING_CALL, PKX_EVENT_CALL_ANSWERED and PKX_EVENT_CALL_CONNECTED events.
If you have any problems, please enable pikalogs re-run the test and send us the logs.
------------------------------------------
How to enable pikalogs:
In the following files, under [logs] set level=debug
Windows:
C:\Program Files\PIKA\GrandPrix\conf\pikagp.cfg
C:\Program Files\PIKA\GrandPrix\conf\pikagp_aoh.cfg
Linux:
/etc/pika/pikagp.cfg
/etc/pika/pikagp_aoh.cfg
Re-run the test. Logs will be generated in the following locations:
Windows:
C:\Program Files\PIKA\GrandPrix\logs\gp_<latest-date-and-time>
C:\Program Files\PIKA\AoH\logs\aoh_<latest-date-and-time>
Linux:
/var/log/pika/gp_<latest-date-and-time>
/var/log/pika/aoh_<latest-date-and-time>
To test outgoing calls:
1. Launch the gpconfig utility using the following command:
Windows: Start > Programs > PIKA GrandPrix SDK > gpconfig
Linux: # gpconfig
2. Launch the gptest utility using the following command:
Windows: Start > Programs > PIKA GrandPrix SDK > gptest
Linux: # gptest
3. Wait for PKX_EVENT_CHANNEL_READY events on all channels.
- this indicates that L1 and L2 are up
4. At the gptest command line enter the following command:
> call 0 make to=<phone number>
To test incoming calls:
By default, gptest is configured to auto-answer incoming calls. So all you have to do is follow steps 1-3 above, and then make an incoming call. You should see PKX_EVENT_GROUP_INCOMING_CALL, PKX_EVENT_CALL_ANSWERED and PKX_EVENT_CALL_CONNECTED events.
If you have any problems, please enable pikalogs re-run the test and send us the logs.
------------------------------------------
How to enable pikalogs:
In the following files, under [logs] set level=debug
Windows:
C:\Program Files\PIKA\GrandPrix\conf\pikagp.cfg
C:\Program Files\PIKA\GrandPrix\conf\pikagp_aoh.cfg
Linux:
/etc/pika/pikagp.cfg
/etc/pika/pikagp_aoh.cfg
Re-run the test. Logs will be generated in the following locations:
Windows:
C:\Program Files\PIKA\GrandPrix\logs\gp_<latest-date-and-time>
C:\Program Files\PIKA\AoH\logs\aoh_<latest-date-and-time>
Linux:
/var/log/pika/gp_<latest-date-and-time>
/var/log/pika/aoh_<latest-date-and-time>