Buffer underrun with voice on ZyXEL I2864

"Thorbjoern List" (list@list.dk)
Wed, 21 Apr 1999 20:29:49 +0200


Hi mgetties

I am running version 1.1.20 + the patches "to-current-plus-called-id" and
"pnp-fix"
(thanks for the help, Marc!). The hardware is the ZyXEL I2864.

I get a very poor quality out when playing the outgoing message and in the
log
file an enormous amount of

	04/21 21:08:53 yS0    ZyXEL 2864: <DLE> <u>
	04/21 21:08:53 yS0  vgetty: Buffer underrun

Otherwise, everything seems normal. It plays (poorly!), beeps and records a
file,
which is also not perfect...

The port speed is 38400 - I tried both 115200, 57600 and 19200 and then it
couldn't
even read the 'RING' right...

Also:
	raw_data false
	rec_compression 4
	rec_speed 0

I am playing a 4 bit 9600 sample:

	04/21 21:08:51 yS0  playing voice file
/var/spool/voice/messages/welcome.rmd
	04/21 21:08:51 yS0   vgetty: raw modem data header found
	04/21 21:08:51 yS0   vgetty: modem type ZyXEL 2864 found
	04/21 21:08:51 yS0   vgetty: compression method 0x0004, speed 9600, bits 4
	04/21 21:08:51 yS0    vgetty: queued event RESET_WATCHDOG at position 0003
	04/21 21:08:51 yS0   voice command: 'AT+VSM=4,9600' -> 'OK'
	04/21 21:08:51 yS0    vgetty: AT+VSM=4,9600
	04/21 21:08:51 yS0    vgetty: unqueued event RESET_WATCHDOG at position
0003
	04/21 21:08:51 yS0    vgetty: voice_handle_event got event RESET_WATCHDOG
with data <d>
	04/21 21:08:51 yS0    ZyXEL 2864: OK
	04/21 21:08:51 yS0    vgetty: queued event RESET_WATCHDOG at position 0004
	04/21 21:08:51 yS0    vgetty: unqueued event RESET_WATCHDOG at position
0004
	04/21 21:08:51 yS0    vgetty: voice_handle_event got event RESET_WATCHDOG
with data <d>
	04/21 21:08:51 yS0   voice command: 'AT+FLO=2' -> 'OK'
	04/21 21:08:51 yS0    vgetty: AT+FLO=2
	04/21 21:08:51 yS0    ZyXEL 2864: OK
	04/21 21:08:52 yS0   tio_set_flow_control( HARD XON_OUT )
	04/21 21:08:52 yS0   voice command: 'AT+VTX' -> 'CONNECT'
	04/21 21:08:52 yS0    vgetty: AT+VTX
	04/21 21:08:52 yS0    ZyXEL 2864: CONNECT
	04/21 21:08:53 yS0    ZyXEL 2864: <DLE> <u>
	04/21 21:08:53 yS0  vgetty: Buffer underrun

After the 1.000 buffer underruns

	04/21 21:08:56 yS0    ZyXEL 2864: <DLE> <u>
	04/21 21:08:56 yS0  vgetty: Buffer underrun
	04/21 21:08:56 yS0    ZyXEL 2864: <DLE> <b>
	04/21 21:08:56 yS0    vgetty: queued event BUSY_TONE at position 0005
	04/21 21:08:56 yS0    ZyXEL 2864: <DLE> <l>
	04/21 21:08:56 yS0    vgetty: queued event LOOP_BREAK at position 0006
	04/21 21:08:56 yS0  vgetty: unexpected byte _ from voice modem
	04/21 21:08:56 yS0  vgetty: unexpected byte _ from voice modem
	04/21 21:08:56 yS0  vgetty: unexpected byte O from voice modem
	04/21 21:08:56 yS0  vgetty: unexpected byte K from voice modem
	04/21 21:08:56 yS0  vgetty: unexpected byte _ from voice modem
	04/21 21:08:56 yS0  vgetty: unexpected byte _ from voice modem
	04/21 21:08:56 yS0    vgetty: unqueued event BUSY_TONE at position 0005
	04/21 21:08:56 yS0    vgetty: voice_handle_event got event BUSY_TONE with
data <d>
	04/21 21:08:56 yS0    vgetty: unqueued event LOOP_BREAK at position 0006
	04/21 21:08:56 yS0    vgetty: voice_handle_event got event LOOP_BREAK with
data <o>
	04/21 21:08:56 yS0    vgetty: voice_handle_event got unknown event
LOOP_BREAK with data <o>
	04/21 21:08:56 yS0    vgetty: <VOICE DATA 17280 bytes>
	04/21 21:08:56 yS0    vgetty: queued event RESET_WATCHDOG at position 0007
	04/21 21:08:56 yS0    vgetty: unqueued event RESET_WATCHDOG at position
0007
	04/21 21:08:56 yS0    vgetty: voice_handle_event got event RESET_WATCHDOG
with data <_>
	04/21 21:08:56 yS0    vgetty: <INTERRUPT PLAY>
	04/21 21:08:56 yS0   voice command: '' -> 'OK'
	04/21 21:08:56 yS0    ZyXEL 2864:
	04/21 21:09:07 yS0  vgetty: timeout while reading character from voice
modem
	04/21 21:09:07 yS0  vgetty: stop_play_file command failed
	04/21 21:09:07 yS0  vgetty: Could not play greeting message
	04/21 21:09:07 ##### hangup requested, name='', caller=none, dev=ttyS0,
pid=4420

	04/21 21:09:07 yS0    vgetty: queued event RESET_WATCHDOG at position 0008
	04/21 21:09:07 yS0   voice command: 'AT+VLS=0' -> 'OK'
	04/21 21:09:07 yS0    vgetty: AT+VLS=0
	04/21 21:09:07 yS0    vgetty: unqueued event RESET_WATCHDOG at position
0008
	04/21 21:09:07 yS0    vgetty: voice_handle_event got event RESET_WATCHDOG
with data <_>
	04/21 21:09:07 yS0    ZyXEL 2864: ERROR
	04/21 21:09:07 yS0  vgetty: Modem returned ERROR
	04/21 21:09:07 yS0   vgetty: leaving voice mode
	04/21 21:09:07 yS0   voice command: 'AT+FCLASS=0' -> 'OK'
	04/21 21:09:07 yS0    vgetty: AT+FCLASS=0
	04/21 21:09:07 yS0    ZyXEL 2864: OK
	04/21 21:09:07 yS0   voice command: 'AT' -> 'OK'
	04/21 21:09:07 yS0    vgetty: AT
	04/21 21:09:07 yS0    ZyXEL 2864: OK
	04/21 21:09:07 yS0   vgetty: Restoring signal handlers
	04/21 21:09:07 yS0  closing voice modem device
	04/21 21:09:07 yS0   removing lock file
	--

What is wrong?

Thorbjoern