PDA

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



epretlac
02-16-09, 12:15 PM
Here are the aohtest commands to make a back-to-back call with the Digital Gateway card. This test assumes that span 0 and 1 are connected together with a loopback cable.

> board 0 open
> span 0 open
> span 1 open
> isdn 0 open 0
> isdn 1 open 1
> isdn 0 set config node=network
> isdn 1 set config node=client
> span 0 start
> span 1 start

> set behavior 0-47 autoanswer

> isdn 0-1 start

> make 0

The output should look like this:

[root@pikatech]# aohtest

++++++++++++++++++++++++++++++++++++++++++++++++++ +++++
aohtest 2.1.0.232d
Compile date: Mar 29 2007 12:40:20
Copyright (c) 2006 Pika Technologies Inc.

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


> board 0 open

> span 0 open

> span 1 open

> isdn 0 open 0

> isdn 1 open 1

> isdn 0 set config node=network

> isdn 1 set config node=client

> span 0 start

SPAN 0: received PKH_EVENT_SPAN_ALARM_T1_RED (p0 = 0x1, p1 = 0x0, p2 = 0x0)


> span 1 start

SPAN 1: received PKH_EVENT_SPAN_ALARM_T1_RED (p0 = 0x1, p1 = 0x0, p2 = 0x0)
SPAN 1: received PKH_EVENT_SPAN_ALARM_T1_RED_CLEAR (p0 = 0x2, p1 = 0x0, p2 = 0x0)
SPAN 1: received PKH_EVENT_SPAN_IN_SYNC (p0 = 0x0, p1 = 0x0, p2 = 0x0)
SPAN 1: received PKH_EVENT_SPAN_ALARM_T1_YELLOW (p0 = 0x2, p1 = 0x0, p2 = 0x0)
SPAN 0: received PKH_EVENT_SPAN_ALARM_T1_RED_CLEAR (p0 = 0x0, p1 = 0x0, p2 = 0x0)
SPAN 1: received PKH_EVENT_SPAN_ALARM_T1_YELLOW_CLEAR (p0 = 0x0, p1 = 0x0, p2 = 0x0)


> set behavior 0-47 autoanswer

> isdn 0-1 start

ISDN 0: received PKH_EVENT_ISDN_LINK_UP (p0 = 0x0, p1 = 0x0, p2 = 0x0)
ISDN 1: received PKH_EVENT_ISDN_LINK_UP (p0 = 0x0, p1 = 0x0, p2 = 0x0)


> make 0

CHANNEL 0: [ISDN 0, CRN 0x0001] ---> SETUP
CHANNEL 24: [ISDN 1, CRN 0x8001] <--- SETUP
CHANNEL 24: [ISDN 1, CRN 0x8001] ---> ALERT
CHANNEL 24: [ISDN 1, CRN 0x8001] ---> CONNECT
CHANNEL 0: [ISDN 0, CRN 0x0001] <--- ALERT
CHANNEL 0: [ISDN 0, CRN 0x0001] <--- CONNECT
CHANNEL 0: [ISDN 0, CRN 0x0001] ---> CONNECT ACKNOWLEDGE
CHANNEL 24: [ISDN 1, CRN 0x8001] <--- CONNECT ACKNOWLEDGE