Run sample_c on A104DE on Wanpipe-7.0.34

Hi,

I tried to use the code in sample_c (in wanpipe-7.0.34\api\libsangoma\sample_c)on Wanpipe-7.0.34 package for A104DE as hardware diagnostic external loopback test ( with a T1/E1 plug).

Wanpipe-7.0.34 was installed on Ubutun 20.4 with Dahdi, Libpri, Asterisk as on the wikipage with name: [Telephony Cards for Asterisk] suggested. Ran hdlc_test (in wanpipe-7.0.34\api\libsangoma\examples\hdlc_test) and it was normal with expected output.

But ran sample_c, it got Timeout issue as screenshot (with rx_over_errors,rx_fifo_errors and tx_fifo_errors). I use below command to configure.
“wancfg_tdmapi --fe_media=E1 --fe_clock=MASTER --fe_frame=CRC4 --fe_te_sig=CCS --silent”

Ran sample_c command: “./sample_c -span 1 -chan 1 -rx2tx -verbose”

Was the configuration in the right way? How to make this sample_c works well?

Thank you,
Gansheng

wanpipe1.conf as below:


#================================================

WANPIPE1 Configuration File

#================================================

Date: Wed Dec 6 20:29:03 UTC 2006

Note: This file was generated automatically

by /usr/local/sbin/setup-sangoma program.

If you want to edit this file, it is

recommended that you use wancfg program

to do so.

#================================================

Sangoma Technologies Inc.

#================================================

[devices]
wanpipe1 = WAN_AFT_TE1, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE_API, Comment

[wanpipe1]
CARD_TYPE = AFT
S514CPU = A
CommPort = PRI
AUTO_PCISLOT = NO
PCISLOT = 4
PCIBUS = 7
FE_MEDIA = E1
FE_LCODE = HDB3
FE_FRAME = CRC4
FE_LINE = 1
TE_CLOCK = MASTER
TE_REF_CLOCK = 0
TE_SIG_MODE = CCS
TE_HIGHIMPEDANCE = NO
TE_RX_SLEVEL = 430
HW_RJ45_PORT_MAP = DEFAULT
LBO = 120OH
FE_TXTRISTATE = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 1
TDMV_DCHAN = 16
TE_AIS_MAINTENANCE = NO #NO: defualt YES: Start port in AIS Blue Alarm and keep line down
#wanpipemon -i w1g1 -c Ttx_ais_off to disable AIS maintenance mode
#wanpipemon -i w1g1 -c Ttx_ais_on to enable AIS maintenance mode
TDMV_HW_DTMF = YES # YES: receive dtmf events from hardware
TDMV_HW_FAX_DETECT = NO # YES: receive fax 1100hz events from hardware
HWEC_OPERATION_MODE = OCT_NORMAL # OCT_NORMAL: echo cancelation enabled with nlp (default)
# OCT_SPEECH: improves software tone detection by disabling NLP (echo possible)
# OCT_NO_ECHO:disables echo cancelation but allows VQE/tone functions.
HWEC_DTMF_REMOVAL = NO # NO: default YES: remove dtmf out of incoming media (must have hwdtmf enabled)
HWEC_NOISE_REDUCTION = NO # NO: default YES: reduces noise on the line - could break fax
HWEC_ACUSTIC_ECHO = NO # NO: default YES: enables acustic echo cancelation
HWEC_NLP_DISABLE = NO # NO: default YES: guarantees software tone detection (possible echo)
HWEC_TX_AUTO_GAIN = 0 # 0: disable -40-0: default tx audio level to be maintained (-20 default)
HWEC_RX_AUTO_GAIN = 0 # 0: disable -40-0: default tx audio level to be maintained (-20 default)
HWEC_TX_GAIN = 0 # 0: disable -24-24: db values to be applied to tx signal
HWEC_RX_GAIN = 0 # 0: disable -24-24: db values to be applied to tx signal

[w1g1]
ACTIVE_CH = ALL
TDMV_HWEC = YES
MTU = 80


Ran sample_c command: “./sample_c -span 1 -chan 1 -rx2tx -verbose” output:

Ran sample_c command in D-Chan: “./sample_c -span 1 -chan 16 -rx2tx -verbose” output:

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.