voice_set_device problems
Eric Plaster (plaster@imageman.com)
Fri, 04 Jun 1999 14:16:58 -0500
--------------3B816A37CC848775840CBD33
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Marc SCHAEFER wrote:
> Eric Plaster <plaster@imageman.com> wrote:
> > How do I set the EXTERNAL_MICROPHONE so that I can record from the mic?
>
> I fixed an error about this in vgetty code recently. Please use
> 1.1.20 and the global patch at the usual place.
>
> If it doesn't fix the problem, increase debugging and send me the
> log of the error.
>
> > Is there any documentation on the libvoice out there?
>
> Not to my knowledge. The voice shell interface, however, IS documented.
Sorry if this is a long message, I tried to keep this log to a minimum, but
I also didn't want to leave anything out that might be inportant.
Here is the problem:
I initialize the libvoice, play a .rmd file and then try and record and
the modem returns an error.
Here is the code:
// voice_device == INTERNAL_SPEAKER to start with
void
init_voicelib(int voice_device)
{
int result = OK;
int tries = 0;
check_system();
voice_config("vm", "");
voice_register_event_handler(vm_voice_events);
if (getenv("VOICE_PID") == NULL)
{
int tries = 0;
while (((result = voice_open_device()) != OK) && ((++tries) <
cvd.max_tries.d.i))
{
sleep(cvd.retry_delay.d.i);
}
if (result != OK)
{
printf("vmail: could not open a voice modem device\n");
exit(FAIL);
};
voice_mode_on();
if (voice_set_device(voice_device) != OK)
{
printf("%s: could not set voice device\n",
program_name);
exit(FAIL);
};
}
}
void
release_voicelib()
{
if (getenv("VOICE_PID") == NULL)
{
voice_set_device(NO_DEVICE);
voice_mode_off();
voice_close_device();
};
voice_unregister_event_handler();
}
void
vm_voice_play(char *file)
{
if (voice_set_device(INTERNAL_SPEAKER) != OK)
{
printf("%s: could not set voice device\n",
program_name);
exit(FAIL);
};
fprintf(stderr, "vmail: playing voice file %s\n", file);
voice_play_file(file);
}
void
vm_voice_record(char *file)
{
if (voice_set_device(EXTERNAL_MICROPHONE) != OK)
{
printf("%s: could not set voice device\n",
program_name);
exit(FAIL);
};
fprintf(stderr, "vmail: recording voice file %s\n", file);
voice_record_file(file);
}
Finally, here is the log with log level 6:
06/04 11:24:56 vgetty: experimental test release 0.9.1 / 17Nov98
06/04 11:24:56 reading program vm configuration from config file
/usr/local/etc/mgetty+sendfax/voice.conf
06/04 11:24:56 reading /usr/local/etc/mgetty+sendfax/voice.conf...
06/04 11:24:56 conf lib: read: 'part generic'
06/04 11:24:56 found CT_KEYWORD part generic
06/04 11:24:56 conf lib: read: 'voice_log_level 6'
06/04 11:24:56 conf lib: read: 'voice_dir /usr/utc/vmail'
06/04 11:24:56 conf lib: read: 'phone_owner root'
06/04 11:24:56 conf lib: read: 'phone_group ims'
06/04 11:24:56 conf lib: read: 'phone_mode 0660'
06/04 11:24:56 conf lib: read: 'message_flag_file .flag'
06/04 11:24:56 conf lib: read: 'receive_dir incoming'
06/04 11:24:56 conf lib: read: 'message_dir messages'
06/04 11:24:56 conf lib: read: 'message_list Index'
06/04 11:24:56 conf lib: read: 'backup_message greeting.rmd'
06/04 11:24:56 conf lib: read: 'port_speed 57600'
06/04 11:24:56 conf lib: read: 'voice_shell /bin/sh'
06/04 11:24:56 conf lib: read: 'port_timeout 10'
06/04 11:24:56 conf lib: read: 'dial_timeout 90'
06/04 11:24:56 conf lib: read: 'command_delay 100'
06/04 11:24:56 conf lib: read: 'dtmf_len 30'
06/04 11:24:56 conf lib: read: 'dtmf_threshold 40'
06/04 11:24:56 conf lib: read: 'dtmf_wait 7'
06/04 11:24:56 conf lib: read: 'ignore_fax_dle false'
06/04 11:24:56 conf lib: read: 'raw_data false'
06/04 11:24:56 conf lib: read: 'rec_compression 0'
06/04 11:24:56 conf lib: read: 'rec_speed 0'
06/04 11:24:56 conf lib: read: 'rec_silence_len 70'
06/04 11:24:56 conf lib: read: 'rec_silence_threshold 40'
06/04 11:24:56 conf lib: read: 'rec_remove_silence false'
06/04 11:24:56 conf lib: read: 'rec_max_len 300'
06/04 11:24:56 conf lib: read: 'rec_min_len 0'
06/04 11:24:56 conf lib: read: 'do_hard_flow true'
06/04 11:24:56 conf lib: read: 'beep_frequency 500'
06/04 11:24:56 conf lib: read: 'beep_length 500'
06/04 11:24:56 conf lib: read: 'max_tries 3'
06/04 11:24:56 conf lib: read: 'retry_delay 5'
06/04 11:24:56 conf lib: read: 'watchdog_timeout 60'
06/04 11:24:56 conf lib: read: 'receive_gain -1'
06/04 11:24:56 conf lib: read: 'transmit_gain -1'
06/04 11:24:56 conf lib: read: 'enable_command_echo false'
06/04 11:24:56 conf lib: read: 'poll_interval 10'
06/04 11:24:56 conf lib: read: 'program vgetty'
06/04 11:24:56 section: program vgetty, ignore
06/04 11:24:56 conf lib: read: 'rings 3'
06/04 11:24:56 conf lib: read: 'answer_mode voice'
06/04 11:24:56 conf lib: read: 'force_autodetect false'
06/04 11:24:56 conf lib: read: 'toll_saver_rings 0'
06/04 11:24:56 conf lib: read: 'rec_always_keep true'
06/04 11:24:56 conf lib: read: 'button_program '
06/04 11:24:56 conf lib: read: 'call_program '
06/04 11:24:56 conf lib: read: 'dtmf_program dtmf.sh'
06/04 11:24:56 conf lib: read: 'message_program '
06/04 11:24:56 conf lib: read: 'do_message_light false'
06/04 11:24:56 conf lib: read: 'program vm'
06/04 11:24:56 section: program vm, **found**
06/04 11:24:56 conf lib: read: 'voice_devices ttyS1'
06/04 11:24:56 conf lib: read: 'dialout_timeout 90'
06/04 11:24:56 conf lib: read: 'program pvf'
06/04 11:24:56 section: program pvf, ignore
06/04 11:24:56 conf lib: read: 'port ttyS1'
06/04 11:24:56 conf lib: read: 'ring_type ring'
06/04 11:24:56 conf lib: read: 'ring_type ring1'
06/04 11:24:56 key: 'part', type=6, flags=4, data=(ignored)
06/04 11:24:56 key: 'program', type=6, flags=4, data=(ignored)
06/04 11:24:56 key: 'port', type=6, flags=4, data=(ignored)
06/04 11:24:56 key: 'ring_type', type=6, flags=4, data=(ignored)
06/04 11:24:56 key: 'voice_log_level', type=0, flags=3, data=6
06/04 11:24:56 key: 'voice_shell', type=1, flags=3, data=/bin/sh
06/04 11:24:56 key: 'port_speed', type=0, flags=3, data=57600
06/04 11:24:56 key: 'port_timeout', type=0, flags=3, data=10
06/04 11:24:56 key: 'dial_timeout', type=0, flags=3, data=90
06/04 11:24:56 key: 'command_delay', type=0, flags=3, data=100
06/04 11:24:56 key: 'dtmf_len', type=0, flags=3, data=30
06/04 11:24:56 key: 'dtmf_threshold', type=0, flags=3, data=40
06/04 11:24:56 key: 'dtmf_wait', type=0, flags=3, data=7
06/04 11:24:56 key: 'ignore_fax_dle', type=3, flags=3, data=FALSE
06/04 11:24:56 key: 'raw_data', type=3, flags=3, data=FALSE
06/04 11:24:56 key: 'rec_compression', type=0, flags=3, data=0
06/04 11:24:56 key: 'rec_speed', type=0, flags=3, data=0
06/04 11:24:56 key: 'rec_silence_len', type=0, flags=3, data=70
06/04 11:24:56 key: 'rec_silence_threshold', type=0, flags=3, data=40
06/04 11:24:56 key: 'rec_remove_silence', type=3, flags=3, data=FALSE
06/04 11:24:56 key: 'rec_max_len', type=0, flags=3, data=300
06/04 11:24:56 key: 'rec_min_len', type=0, flags=3, data=0
06/04 11:24:56 key: 'do_hard_flow', type=3, flags=3, data=TRUE
06/04 11:24:56 key: 'force_autodetect', type=3, flags=1, data=FALSE
06/04 11:24:56 key: 'watchdog_timeout', type=0, flags=3, data=60
06/04 11:24:56 key: 'receive_gain', type=0, flags=3, data=-1
06/04 11:24:56 key: 'transmit_gain', type=0, flags=3, data=-1
06/04 11:24:56 key: 'enable_command_echo', type=3, flags=3, data=FALSE
06/04 11:24:56 key: 'poll_interval', type=0, flags=3, data=10
06/04 11:24:56 key: 'rings', type=1, flags=1, data=3
06/04 11:24:56 key: 'answer_mode', type=1, flags=1, data=voice:fax:data
06/04 11:24:56 key: 'toll_saver_rings', type=0, flags=1, data=0
06/04 11:24:56 key: 'rec_always_keep', type=3, flags=1, data=TRUE
06/04 11:24:56 key: 'voice_dir', type=1, flags=3, data=/usr/utc/vmail
06/04 11:24:56 key: 'phone_owner', type=1, flags=3, data=root
06/04 11:24:56 key: 'phone_group', type=1, flags=3, data=ims
06/04 11:24:56 key: 'phone_mode', type=0, flags=3, data=432
06/04 11:24:56 key: 'message_flag_file', type=1, flags=3, data=.flag
06/04 11:24:56 key: 'receive_dir', type=1, flags=3, data=incoming
06/04 11:24:56 key: 'message_dir', type=1, flags=3, data=messages
06/04 11:24:56 key: 'message_list', type=1, flags=3, data=Index
06/04 11:24:56 key: 'backup_message', type=1, flags=3, data=greeting.rmd
06/04 11:24:56 key: 'button_program', type=1, flags=1, data=
06/04 11:24:56 key: 'call_program', type=1, flags=1, data=
06/04 11:24:56 key: 'dtmf_program', type=1, flags=1, data=dtmf.sh
06/04 11:24:56 key: 'message_program', type=1, flags=1, data=
06/04 11:24:56 key: 'do_message_light', type=3, flags=1, data=FALSE
06/04 11:24:56 key: 'beep_frequency', type=0, flags=3, data=500
06/04 11:24:56 key: 'beep_length', type=0, flags=3, data=500
06/04 11:24:56 key: 'max_tries', type=0, flags=3, data=3
06/04 11:24:56 key: 'retry_delay', type=0, flags=3, data=5
06/04 11:24:56 key: 'dialout_timeout', type=0, flags=3, data=90
06/04 11:24:56 key: 'voice_devices', type=1, flags=3, data=ttyS1
06/04 11:24:56 opening voice modem device
06/04 11:24:56 voice open 'ttyS1'
06/04 11:24:56 trying device '/dev/ttyS1'
06/04 11:24:56 makelock(ttyS1) called
06/04 11:24:56 do_makelock: lock='/var/lock/LCK..ttyS1'
06/04 11:24:56 lock made
06/04 11:24:56 opened voice modem device /dev/ttyS1
06/04 11:24:56 reading port ttyS1 configuration from config file
/usr/local/etc/mgetty+sendfax/voice.conf
06/04 11:24:56 reading /usr/local/etc/mgetty+sendfax/voice.conf...
06/04 11:24:56 conf lib: read: 'part generic'
06/04 11:24:56 found CT_KEYWORD part generic
06/04 11:24:56 conf lib: read: 'voice_log_level 6'
06/04 11:24:56 conf lib: read: 'voice_dir /usr/utc/vmail'
06/04 11:24:56 conf lib: read: 'phone_owner root'
06/04 11:24:56 conf lib: read: 'phone_group ims'
06/04 11:24:56 conf lib: read: 'phone_mode 0660'
06/04 11:24:56 conf lib: read: 'message_flag_file .flag'
06/04 11:24:56 conf lib: read: 'receive_dir incoming'
06/04 11:24:56 conf lib: read: 'message_dir messages'
06/04 11:24:56 conf lib: read: 'message_list Index'
06/04 11:24:56 conf lib: read: 'backup_message greeting.rmd'
06/04 11:24:56 conf lib: read: 'port_speed 57600'
06/04 11:24:56 conf lib: read: 'voice_shell /bin/sh'
06/04 11:24:56 conf lib: read: 'port_timeout 10'
06/04 11:24:56 conf lib: read: 'dial_timeout 90'
06/04 11:24:56 conf lib: read: 'command_delay 100'
06/04 11:24:56 conf lib: read: 'dtmf_len 30'
06/04 11:24:56 conf lib: read: 'dtmf_threshold 40'
06/04 11:24:56 conf lib: read: 'dtmf_wait 7'
06/04 11:24:56 conf lib: read: 'ignore_fax_dle false'
06/04 11:24:56 conf lib: read: 'raw_data false'
06/04 11:24:56 conf lib: read: 'rec_compression 0'
06/04 11:24:56 conf lib: read: 'rec_speed 0'
06/04 11:24:56 conf lib: read: 'rec_silence_len 70'
06/04 11:24:56 conf lib: read: 'rec_silence_threshold 40'
06/04 11:24:56 conf lib: read: 'rec_remove_silence false'
06/04 11:24:56 conf lib: read: 'rec_max_len 300'
06/04 11:24:56 conf lib: read: 'rec_min_len 0'
06/04 11:24:56 conf lib: read: 'do_hard_flow true'
06/04 11:24:56 conf lib: read: 'beep_frequency 500'
06/04 11:24:56 conf lib: read: 'beep_length 500'
06/04 11:24:56 conf lib: read: 'max_tries 3'
06/04 11:24:56 conf lib: read: 'retry_delay 5'
06/04 11:24:56 conf lib: read: 'watchdog_timeout 60'
06/04 11:24:56 conf lib: read: 'receive_gain -1'
06/04 11:24:56 conf lib: read: 'transmit_gain -1'
06/04 11:24:56 conf lib: read: 'enable_command_echo false'
06/04 11:24:56 conf lib: read: 'poll_interval 10'
06/04 11:24:56 conf lib: read: 'program vgetty'
06/04 11:24:56 conf lib: read: 'rings 3'
06/04 11:24:56 conf lib: read: 'answer_mode voice'
06/04 11:24:56 conf lib: read: 'force_autodetect false'
06/04 11:24:56 conf lib: read: 'toll_saver_rings 0'
06/04 11:24:56 conf lib: read: 'rec_always_keep true'
06/04 11:24:56 conf lib: read: 'button_program '
06/04 11:24:56 conf lib: read: 'call_program '
06/04 11:24:56 conf lib: read: 'dtmf_program dtmf.sh'
06/04 11:24:56 conf lib: read: 'message_program '
06/04 11:24:56 conf lib: read: 'do_message_light false'
06/04 11:24:56 conf lib: read: 'program vm'
06/04 11:24:56 conf lib: read: 'voice_devices ttyS1'
06/04 11:24:56 conf lib: read: 'dialout_timeout 90'
06/04 11:24:56 conf lib: read: 'program pvf'
06/04 11:24:56 conf lib: read: 'port ttyS1'
06/04 11:24:56 section: port ttyS1, **found**
06/04 11:24:56 conf lib: read: 'ring_type ring'
06/04 11:24:56 found CT_KEYWORD ring_type ring
06/04 11:24:56 conf lib: read: 'ring_type ring1'
06/04 11:24:56 key: 'part', type=6, flags=4, data=(ignored)
06/04 11:24:56 key: 'program', type=6, flags=4, data=(ignored)
06/04 11:24:56 key: 'port', type=6, flags=4, data=(ignored)
06/04 11:24:56 key: 'ring_type', type=6, flags=4, data=(ignored)
06/04 11:24:56 key: 'voice_log_level', type=0, flags=3, data=6
06/04 11:24:56 key: 'voice_shell', type=1, flags=3, data=/bin/sh
06/04 11:24:56 key: 'port_speed', type=0, flags=3, data=57600
06/04 11:24:56 key: 'port_timeout', type=0, flags=3, data=10
06/04 11:24:56 key: 'dial_timeout', type=0, flags=3, data=90
06/04 11:24:56 key: 'command_delay', type=0, flags=3, data=100
06/04 11:24:56 key: 'dtmf_len', type=0, flags=3, data=30
06/04 11:24:56 key: 'dtmf_threshold', type=0, flags=3, data=40
06/04 11:24:56 key: 'dtmf_wait', type=0, flags=3, data=7
06/04 11:24:56 key: 'ignore_fax_dle', type=3, flags=3, data=FALSE
06/04 11:24:56 key: 'raw_data', type=3, flags=3, data=FALSE
06/04 11:24:56 key: 'rec_compression', type=0, flags=3, data=0
06/04 11:24:56 key: 'rec_speed', type=0, flags=3, data=0
06/04 11:24:56 key: 'rec_silence_len', type=0, flags=3, data=70
06/04 11:24:56 key: 'rec_silence_threshold', type=0, flags=3, data=40
06/04 11:24:56 key: 'rec_remove_silence', type=3, flags=3, data=FALSE
06/04 11:24:56 key: 'rec_max_len', type=0, flags=3, data=300
06/04 11:24:56 key: 'rec_min_len', type=0, flags=3, data=0
06/04 11:24:56 key: 'do_hard_flow', type=3, flags=3, data=TRUE
06/04 11:24:56 key: 'force_autodetect', type=3, flags=1, data=FALSE
06/04 11:24:56 key: 'watchdog_timeout', type=0, flags=3, data=60
06/04 11:24:56 key: 'receive_gain', type=0, flags=3, data=-1
06/04 11:24:56 key: 'transmit_gain', type=0, flags=3, data=-1
06/04 11:24:56 key: 'enable_command_echo', type=3, flags=3, data=FALSE
06/04 11:24:56 key: 'poll_interval', type=0, flags=3, data=10
06/04 11:24:56 key: 'rings', type=1, flags=1, data=3
06/04 11:24:56 key: 'answer_mode', type=1, flags=1, data=voice:fax:data
06/04 11:24:56 key: 'toll_saver_rings', type=0, flags=1, data=0
06/04 11:24:56 key: 'rec_always_keep', type=3, flags=1, data=TRUE
06/04 11:24:56 key: 'voice_dir', type=1, flags=3, data=/usr/utc/vmail
06/04 11:24:56 key: 'phone_owner', type=1, flags=3, data=root
06/04 11:24:56 key: 'phone_group', type=1, flags=3, data=ims
06/04 11:24:56 key: 'phone_mode', type=0, flags=3, data=432
06/04 11:24:56 key: 'message_flag_file', type=1, flags=3, data=.flag
06/04 11:24:56 key: 'receive_dir', type=1, flags=3, data=incoming
06/04 11:24:56 key: 'message_dir', type=1, flags=3, data=messages
06/04 11:24:56 key: 'message_list', type=1, flags=3, data=Index
06/04 11:24:56 key: 'backup_message', type=1, flags=3, data=greeting.rmd
06/04 11:24:56 key: 'button_program', type=1, flags=1, data=
06/04 11:24:56 key: 'call_program', type=1, flags=1, data=
06/04 11:24:56 key: 'dtmf_program', type=1, flags=1, data=dtmf.sh
06/04 11:24:56 key: 'message_program', type=1, flags=1, data=
06/04 11:24:56 key: 'do_message_light', type=3, flags=1, data=FALSE
06/04 11:24:56 key: 'beep_frequency', type=0, flags=3, data=500
06/04 11:24:56 key: 'beep_length', type=0, flags=3, data=500
06/04 11:24:56 key: 'max_tries', type=0, flags=3, data=3
06/04 11:24:56 key: 'retry_delay', type=0, flags=3, data=5
06/04 11:24:56 key: 'dialout_timeout', type=0, flags=3, data=90
06/04 11:24:56 key: 'voice_devices', type=1, flags=3, data=ttyS1
06/04 11:24:56 tss: set speed to 57600 (10001)
06/04 11:24:56 tio_set_flow_control( HARD )
06/04 11:24:56 detecting voice modem type
06/04 11:24:56 vm: ATE0
06/04 11:24:56 serial port: OK
06/04 11:24:56 voice command: 'ATI' -> ''
06/04 11:24:56 vm: ATI
06/04 11:24:56 serial port: 56000
06/04 11:24:56 Rockwell: OK
06/04 11:24:56 Rockwell detected
06/04 11:24:56 vm: entering voice mode
06/04 11:24:56 vm: Installing signal handlers
06/04 11:24:56 voice command: 'AT#CLS?' -> ''
06/04 11:24:57 vm: AT#CLS?
06/04 11:24:57 Rockwell: 0
06/04 11:24:57 voice command: '' -> 'OK'
06/04 11:24:57 Rockwell: OK
06/04 11:24:57 voice command: 'AT#CLS=8' -> 'OK'
06/04 11:24:57 vm: AT#CLS=8
06/04 11:24:57 Rockwell: OK
06/04 11:24:57 voice command: 'AT' -> 'OK'
06/04 11:24:57 vm: AT
06/04 11:24:57 Rockwell: <DLE> <h>
06/04 11:24:57 vm: queued event HANDSET_ON_HOOK at position 0000
06/04 11:24:57 Rockwell:
06/04 11:24:57 Rockwell: OK
06/04 11:24:57 vm: queued event RESET_WATCHDOG at position 0001
06/04 11:24:57 initializing ROCKWELL voice modem
06/04 11:24:57 voice command: 'AT#VSP=70' -> 'OK'
06/04 11:24:57 vm: AT#VSP=70
06/04 11:24:57 vm: unqueued event HANDSET_ON_HOOK at position 0000
06/04 11:24:57 vm: voice_handle_event got event HANDSET_ON_HOOK with data
<_>
06/04 11:24:57 vm: unqueued event RESET_WATCHDOG at position 0001
06/04 11:24:57 vm: voice_handle_event got event RESET_WATCHDOG with data
<_>
06/04 11:24:57 Rockwell: OK
06/04 11:24:57 voice command: 'AT#VSD=0' -> 'OK'
06/04 11:24:58 vm: AT#VSD=0
06/04 11:24:58 Rockwell: OK
06/04 11:24:58 voice command: 'AT#VTD=3F,3F,3F' -> 'OK'
06/04 11:24:58 vm: AT#VTD=3F,3F,3F
06/04 11:24:58 Rockwell: OK
06/04 11:24:58 voice command: 'AT#VSS=1' -> 'OK'
06/04 11:24:58 vm: AT#VSS=1
06/04 11:24:58 Rockwell: OK
06/04 11:24:58 voice command: 'AT&K3' -> 'OK'
06/04 11:24:58 vm: AT&K3
06/04 11:24:58 Rockwell: OK
06/04 11:24:58 tio_set_flow_control( HARD )
06/04 11:24:58 vm: leaving voice mode
06/04 11:24:58 voice command: 'AT#CLS=0' -> 'OK'
06/04 11:24:58 vm: AT#CLS=0
06/04 11:24:58 Rockwell: OK
06/04 11:24:58 voice command: 'AT' -> 'OK'
06/04 11:24:58 vm: AT
06/04 11:24:58 Rockwell: OK
06/04 11:24:58 vm: Restoring signal handlers
06/04 11:24:58 vm: entering voice mode
06/04 11:24:58 vm: Installing signal handlers
06/04 11:24:58 voice command: 'AT#CLS?' -> ''
06/04 11:24:59 vm: AT#CLS?
06/04 11:24:59 Rockwell: 0
06/04 11:24:59 voice command: '' -> 'OK'
06/04 11:24:59 Rockwell: OK
06/04 11:24:59 voice command: 'AT#CLS=8' -> 'OK'
06/04 11:24:59 vm: AT#CLS=8
06/04 11:24:59 Rockwell: OK
06/04 11:24:59 voice command: 'AT' -> 'OK'
06/04 11:24:59 vm: AT
06/04 11:24:59 Rockwell: <DLE> <h>
06/04 11:24:59 vm: queued event HANDSET_ON_HOOK at position 0002
06/04 11:24:59 Rockwell:
06/04 11:24:59 Rockwell: OK
06/04 11:24:59 vm: queued event RESET_WATCHDOG at position 0003
06/04 11:24:59 voice command: 'AT#VLS=2' -> 'VCON'
06/04 11:24:59 vm: AT#VLS=2
06/04 11:24:59 vm: unqueued event HANDSET_ON_HOOK at position 0002
06/04 11:24:59 vm: voice_handle_event got event HANDSET_ON_HOOK with data
<_>
06/04 11:24:59 vm: unqueued event RESET_WATCHDOG at position 0003
06/04 11:24:59 vm: voice_handle_event got event RESET_WATCHDOG with data
<_>
06/04 11:24:59 Rockwell: VCON
06/04 11:25:02 vm: queued event RESET_WATCHDOG at position 0004
06/04 11:25:02 voice command: 'AT#VLS=2' -> 'VCON'
06/04 11:25:03 vm: AT#VLS=2
06/04 11:25:03 vm: unqueued event RESET_WATCHDOG at position 0004
06/04 11:25:03 vm: voice_handle_event got event RESET_WATCHDOG with data
<`>
06/04 11:25:03 Rockwell: VCON
06/04 11:25:03 playing voice file /usr/utc/vmail/messages/greeting.rmd
06/04 11:25:03 vm: raw modem data header found
06/04 11:25:03 vm: modem type Rockwell found
06/04 11:25:03 vm: compression method 0x0002, speed 7200, bits 2
06/04 11:25:03 vm: queued event RESET_WATCHDOG at position 0005
06/04 11:25:03 voice command: 'AT#VBS=2' -> 'OK'
06/04 11:25:03 vm: AT#VBS=2
06/04 11:25:03 vm: unqueued event RESET_WATCHDOG at position 0005
06/04 11:25:03 vm: voice_handle_event got event RESET_WATCHDOG with data
<`>
06/04 11:25:03 Rockwell: OK
06/04 11:25:03 vm: queued event RESET_WATCHDOG at position 0006
06/04 11:25:03 vm: unqueued event RESET_WATCHDOG at position 0006
06/04 11:25:03 vm: voice_handle_event got event RESET_WATCHDOG with data
<`>
06/04 11:25:03 voice command: 'AT&K3' -> 'OK'
06/04 11:25:03 vm: AT&K3
06/04 11:25:03 Rockwell: OK
06/04 11:25:03 tio_set_flow_control( HARD XON_OUT )
06/04 11:25:03 voice command: 'AT#VTX' -> 'CONNECT'
06/04 11:25:03 vm: AT#VTX
06/04 11:25:03 Rockwell: CONNECT
06/04 11:25:04 vm: <VOICE DATA 9211 bytes>
06/04 11:25:04 vm: queued event RESET_WATCHDOG at position 0007
06/04 11:25:04 vm: unqueued event RESET_WATCHDOG at position 0007
06/04 11:25:04 vm: voice_handle_event got event RESET_WATCHDOG with data
<`>
06/04 11:25:04 vm: <STOP PLAY>
06/04 11:25:04 voice command: '' -> 'OK|VCON'
06/04 11:25:04 Rockwell: VCON
06/04 11:25:13 vm: queued event RESET_WATCHDOG at position 0008
06/04 11:25:13 voice command: 'ATH0' -> 'VCON|OK'
06/04 11:25:13 vm: ATH0
06/04 11:25:13 vm: unqueued event RESET_WATCHDOG at position 0008
06/04 11:25:13 vm: voice_handle_event got event RESET_WATCHDOG with data
<`>
06/04 11:25:13 Rockwell: OK
06/04 11:25:13 voice command: 'AT#VLS=3' -> 'VCON'
06/04 11:25:13 vm: AT#VLS=3
06/04 11:25:13 Rockwell: ERROR
06/04 11:25:13 vm: Modem returned ERROR
06/04 11:25:14 recording voice file /root/test.rmd
06/04 11:25:14 vm: queued event RESET_WATCHDOG at position 0009
06/04 11:25:14 voice command: 'AT#VBS=2' -> 'OK'
06/04 11:25:14 vm: AT#VBS=2
06/04 11:25:14 vm: unqueued event RESET_WATCHDOG at position 0009
06/04 11:25:14 vm: voice_handle_event got event RESET_WATCHDOG with data
<`>
06/04 11:25:14 Rockwell: OK
06/04 11:25:14 vm: queued event RESET_WATCHDOG at position 0010
06/04 11:25:14 vm: unqueued event RESET_WATCHDOG at position 0010
06/04 11:25:14 vm: voice_handle_event got event RESET_WATCHDOG with data
<`>
06/04 11:25:14 voice command: 'AT&K3' -> 'OK'
06/04 11:25:14 vm: AT&K3
06/04 11:25:14 Rockwell: OK
06/04 11:25:14 tio_set_flow_control( HARD XON_IN )
06/04 11:25:14 voice command: 'AT#VRX' -> 'CONNECT'
06/04 11:25:14 vm: AT#VRX
06/04 11:25:14 Rockwell: ERROR
06/04 11:25:14 vm: Modem returned ERROR
06/04 11:25:26 vm: queued event RESET_WATCHDOG at position 0011
06/04 11:25:26 voice command: 'ATH0' -> 'VCON|OK'
06/04 11:25:26 vm: ATH0
06/04 11:25:26 vm: unqueued event RESET_WATCHDOG at position 0011
06/04 11:25:26 vm: voice_handle_event got event RESET_WATCHDOG with data
<`>
06/04 11:25:26 Rockwell: OK
06/04 11:25:26 voice command: 'AT#VLS=0' -> 'OK'
06/04 11:25:26 vm: AT#VLS=0
06/04 11:25:26 Rockwell: OK
06/04 11:25:26 vm: leaving voice mode
06/04 11:25:26 voice command: 'AT#CLS=0' -> 'OK'
06/04 11:25:26 vm: AT#CLS=0
06/04 11:25:26 Rockwell: OK
06/04 11:25:26 voice command: 'AT' -> 'OK'
06/04 11:25:26 vm: AT
06/04 11:25:26 Rockwell: OK
06/04 11:25:26 vm: Restoring signal handlers
06/04 11:25:26 closing voice modem device
06/04 11:25:26 removing lock file
--
Eric Plaster Image Manipulation Systems
Software Engineer (612)753-5602 x117
plaster@imageman.com www.imageman.com
--------------3B816A37CC848775840CBD33
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Marc SCHAEFER wrote:
<BLOCKQUOTE TYPE=CITE>Eric Plaster <plaster@imageman.com> wrote:
<BR>> How do I set the EXTERNAL_MICROPHONE so that I can record from the
mic?
<P>I fixed an error about this in vgetty code recently. Please use
<BR>1.1.20 and the global patch at the usual place.
<P>If it doesn't fix the problem, increase debugging and send me the
<BR>log of the error.
<P>> Is there any documentation on the libvoice out there?
<P>Not to my knowledge. The voice shell interface, however, IS documented.</BLOCKQUOTE>
Sorry if this is a long message, I tried to keep this log to a minimum,
but I also didn't want to leave anything out that might be inportant.
<P>Here is the problem:
<BR> I initialize the libvoice, play a .rmd file and
then try and record and the modem returns an error.
<P>Here is the code:
<P>// voice_device == INTERNAL_SPEAKER to start with
<BR>void
<BR>init_voicelib(int voice_device)
<BR>{
<BR> int result = OK;
<BR> int tries = 0;
<BR>
<BR> check_system();
<BR> voice_config("vm", "");
<BR> voice_register_event_handler(vm_voice_events);
<BR> if (getenv("VOICE_PID") == NULL)
<BR> {
<BR> int tries = 0;
<P> while (((result = voice_open_device()) != OK) && ((++tries)
<
<BR> cvd.max_tries.d.i))
<BR> {
<BR> sleep(cvd.retry_delay.d.i);
<BR> }
<P> if (result != OK)
<BR> {
<BR> printf("vmail: could not open a voice modem device\n");
<BR> exit(FAIL);
<BR> };
<P> voice_mode_on();
<P> if (voice_set_device(voice_device) != OK)
<BR> {
<BR> printf("%s: could not set voice device\n",
<BR> program_name);
<BR> exit(FAIL);
<BR> };
<BR> }
<BR>}
<BR>
<P>void
<BR>release_voicelib()
<BR>{
<BR> if (getenv("VOICE_PID") == NULL)
<BR> {
<BR> voice_set_device(NO_DEVICE);
<BR> voice_mode_off();
<BR> voice_close_device();
<BR> };
<P> voice_unregister_event_handler();
<BR>}
<P>void
<BR>vm_voice_play(char *file)
<BR>{
<BR> if (voice_set_device(INTERNAL_SPEAKER) != OK)
<BR> {
<BR> printf("%s: could not set voice device\n",
<BR> program_name);
<BR> exit(FAIL);
<BR> };
<BR> fprintf(stderr, "vmail: playing voice file %s\n", file);
<BR> voice_play_file(file);
<BR>}
<P>void
<BR>vm_voice_record(char *file)
<BR>{
<BR> if (voice_set_device(EXTERNAL_MICROPHONE) != OK)
<BR> {
<BR> printf("%s: could not set voice device\n",
<BR> program_name);
<BR> exit(FAIL);
<BR> };
<BR> fprintf(stderr, "vmail: recording voice file %s\n", file);
<BR> voice_record_file(file);
<BR>}
<BR>
<BR>
<P>Finally, here is the log with log level 6:
<P>06/04 11:24:56 vgetty: experimental test release 0.9.1 / 17Nov98
<BR>06/04 11:24:56 reading program vm configuration from config file
/usr/local/etc/mgetty+sendfax/voice.conf
<BR>06/04 11:24:56 reading /usr/local/etc/mgetty+sendfax/voice.conf...
<BR>06/04 11:24:56 conf lib: read: 'part generic'
<BR>06/04 11:24:56 found CT_KEYWORD part generic
<BR>06/04 11:24:56 conf lib: read: 'voice_log_level 6'
<BR>06/04 11:24:56 conf lib: read: 'voice_dir /usr/utc/vmail'
<BR>06/04 11:24:56 conf lib: read: 'phone_owner root'
<BR>06/04 11:24:56 conf lib: read: 'phone_group ims'
<BR>06/04 11:24:56 conf lib: read: 'phone_mode 0660'
<BR>06/04 11:24:56 conf lib: read: 'message_flag_file .flag'
<BR>06/04 11:24:56 conf lib: read: 'receive_dir incoming'
<BR>06/04 11:24:56 conf lib: read: 'message_dir messages'
<BR>06/04 11:24:56 conf lib: read: 'message_list Index'
<BR>06/04 11:24:56 conf lib: read: 'backup_message greeting.rmd'
<BR>06/04 11:24:56 conf lib: read: 'port_speed 57600'
<BR>06/04 11:24:56 conf lib: read: 'voice_shell /bin/sh'
<BR>06/04 11:24:56 conf lib: read: 'port_timeout 10'
<BR>06/04 11:24:56 conf lib: read: 'dial_timeout 90'
<BR>06/04 11:24:56 conf lib: read: 'command_delay 100'
<BR>06/04 11:24:56 conf lib: read: 'dtmf_len 30'
<BR>06/04 11:24:56 conf lib: read: 'dtmf_threshold 40'
<BR>06/04 11:24:56 conf lib: read: 'dtmf_wait 7'
<BR>06/04 11:24:56 conf lib: read: 'ignore_fax_dle false'
<BR>06/04 11:24:56 conf lib: read: 'raw_data false'
<BR>06/04 11:24:56 conf lib: read: 'rec_compression 0'
<BR>06/04 11:24:56 conf lib: read: 'rec_speed 0'
<BR>06/04 11:24:56 conf lib: read: 'rec_silence_len 70'
<BR>06/04 11:24:56 conf lib: read: 'rec_silence_threshold 40'
<BR>06/04 11:24:56 conf lib: read: 'rec_remove_silence false'
<BR>06/04 11:24:56 conf lib: read: 'rec_max_len 300'
<BR>06/04 11:24:56 conf lib: read: 'rec_min_len 0'
<BR>06/04 11:24:56 conf lib: read: 'do_hard_flow true'
<BR>06/04 11:24:56 conf lib: read: 'beep_frequency 500'
<BR>06/04 11:24:56 conf lib: read: 'beep_length 500'
<BR>06/04 11:24:56 conf lib: read: 'max_tries 3'
<BR>06/04 11:24:56 conf lib: read: 'retry_delay 5'
<BR>06/04 11:24:56 conf lib: read: 'watchdog_timeout 60'
<BR>06/04 11:24:56 conf lib: read: 'receive_gain -1'
<BR>06/04 11:24:56 conf lib: read: 'transmit_gain -1'
<BR>06/04 11:24:56 conf lib: read: 'enable_command_echo false'
<BR>06/04 11:24:56 conf lib: read: 'poll_interval 10'
<BR>06/04 11:24:56 conf lib: read: 'program vgetty'
<BR>06/04 11:24:56 section: program vgetty, ignore
<BR>06/04 11:24:56 conf lib: read: 'rings 3'
<BR>06/04 11:24:56 conf lib: read: 'answer_mode voice'
<BR>06/04 11:24:56 conf lib: read: 'force_autodetect false'
<BR>06/04 11:24:56 conf lib: read: 'toll_saver_rings 0'
<BR>06/04 11:24:56 conf lib: read: 'rec_always_keep true'
<BR>06/04 11:24:56 conf lib: read: 'button_program '
<BR>06/04 11:24:56 conf lib: read: 'call_program '
<BR>06/04 11:24:56 conf lib: read: 'dtmf_program dtmf.sh'
<BR>06/04 11:24:56 conf lib: read: 'message_program '
<BR>06/04 11:24:56 conf lib: read: 'do_message_light false'
<BR>06/04 11:24:56 conf lib: read: 'program vm'
<BR>06/04 11:24:56 section: program vm, **found**
<BR>06/04 11:24:56 conf lib: read: 'voice_devices ttyS1'
<BR>06/04 11:24:56 conf lib: read: 'dialout_timeout 90'
<BR>06/04 11:24:56 conf lib: read: 'program pvf'
<BR>06/04 11:24:56 section: program pvf, ignore
<BR>06/04 11:24:56 conf lib: read: 'port ttyS1'
<BR>06/04 11:24:56 conf lib: read: 'ring_type ring'
<BR>06/04 11:24:56 conf lib: read: 'ring_type ring1'
<BR>06/04 11:24:56 key: 'part', type=6, flags=4, data=(ignored)
<BR>06/04 11:24:56 key: 'program', type=6, flags=4, data=(ignored)
<BR>06/04 11:24:56 key: 'port', type=6, flags=4, data=(ignored)
<BR>06/04 11:24:56 key: 'ring_type', type=6, flags=4, data=(ignored)
<BR>06/04 11:24:56 key: 'voice_log_level', type=0, flags=3,
data=6
<BR>06/04 11:24:56 key: 'voice_shell', type=1, flags=3, data=/bin/sh
<BR>06/04 11:24:56 key: 'port_speed', type=0, flags=3, data=57600
<BR>06/04 11:24:56 key: 'port_timeout', type=0, flags=3, data=10
<BR>06/04 11:24:56 key: 'dial_timeout', type=0, flags=3, data=90
<BR>06/04 11:24:56 key: 'command_delay', type=0, flags=3, data=100
<BR>06/04 11:24:56 key: 'dtmf_len', type=0, flags=3, data=30
<BR>06/04 11:24:56 key: 'dtmf_threshold', type=0, flags=3,
data=40
<BR>06/04 11:24:56 key: 'dtmf_wait', type=0, flags=3, data=7
<BR>06/04 11:24:56 key: 'ignore_fax_dle', type=3, flags=3,
data=FALSE
<BR>06/04 11:24:56 key: 'raw_data', type=3, flags=3, data=FALSE
<BR>06/04 11:24:56 key: 'rec_compression', type=0, flags=3,
data=0
<BR>06/04 11:24:56 key: 'rec_speed', type=0, flags=3, data=0
<BR>06/04 11:24:56 key: 'rec_silence_len', type=0, flags=3,
data=70
<BR>06/04 11:24:56 key: 'rec_silence_threshold', type=0, flags=3,
data=40
<BR>06/04 11:24:56 key: 'rec_remove_silence', type=3, flags=3,
data=FALSE
<BR>06/04 11:24:56 key: 'rec_max_len', type=0, flags=3, data=300
<BR>06/04 11:24:56 key: 'rec_min_len', type=0, flags=3, data=0
<BR>06/04 11:24:56 key: 'do_hard_flow', type=3, flags=3, data=TRUE
<BR>06/04 11:24:56 key: 'force_autodetect', type=3, flags=1,
data=FALSE
<BR>06/04 11:24:56 key: 'watchdog_timeout', type=0, flags=3,
data=60
<BR>06/04 11:24:56 key: 'receive_gain', type=0, flags=3, data=-1
<BR>06/04 11:24:56 key: 'transmit_gain', type=0, flags=3, data=-1
<BR>06/04 11:24:56 key: 'enable_command_echo', type=3, flags=3,
data=FALSE
<BR>06/04 11:24:56 key: 'poll_interval', type=0, flags=3, data=10
<BR>06/04 11:24:56 key: 'rings', type=1, flags=1, data=3
<BR>06/04 11:24:56 key: 'answer_mode', type=1, flags=1, data=voice:fax:data
<BR>06/04 11:24:56 key: 'toll_saver_rings', type=0, flags=1,
data=0
<BR>06/04 11:24:56 key: 'rec_always_keep', type=3, flags=1,
data=TRUE
<BR>06/04 11:24:56 key: 'voice_dir', type=1, flags=3, data=/usr/utc/vmail
<BR>06/04 11:24:56 key: 'phone_owner', type=1, flags=3, data=root
<BR>06/04 11:24:56 key: 'phone_group', type=1, flags=3, data=ims
<BR>06/04 11:24:56 key: 'phone_mode', type=0, flags=3, data=432
<BR>06/04 11:24:56 key: 'message_flag_file', type=1, flags=3,
data=.flag
<BR>06/04 11:24:56 key: 'receive_dir', type=1, flags=3, data=incoming
<BR>06/04 11:24:56 key: 'message_dir', type=1, flags=3, data=messages
<BR>06/04 11:24:56 key: 'message_list', type=1, flags=3, data=Index
<BR>06/04 11:24:56 key: 'backup_message', type=1, flags=3,
data=greeting.rmd
<BR>06/04 11:24:56 key: 'button_program', type=1, flags=1,
data=
<BR>06/04 11:24:56 key: 'call_program', type=1, flags=1, data=
<BR>06/04 11:24:56 key: 'dtmf_program', type=1, flags=1, data=dtmf.sh
<BR>06/04 11:24:56 key: 'message_program', type=1, flags=1,
data=
<BR>06/04 11:24:56 key: 'do_message_light', type=3, flags=1,
data=FALSE
<BR>06/04 11:24:56 key: 'beep_frequency', type=0, flags=3,
data=500
<BR>06/04 11:24:56 key: 'beep_length', type=0, flags=3, data=500
<BR>06/04 11:24:56 key: 'max_tries', type=0, flags=3, data=3
<BR>06/04 11:24:56 key: 'retry_delay', type=0, flags=3, data=5
<BR>06/04 11:24:56 key: 'dialout_timeout', type=0, flags=3,
data=90
<BR>06/04 11:24:56 key: 'voice_devices', type=1, flags=3, data=ttyS1
<BR>06/04 11:24:56 opening voice modem device
<BR>06/04 11:24:56 voice open 'ttyS1'
<BR>06/04 11:24:56 trying device '/dev/ttyS1'
<BR>06/04 11:24:56 makelock(ttyS1) called
<BR>06/04 11:24:56 do_makelock: lock='/var/lock/LCK..ttyS1'
<BR>06/04 11:24:56 lock made
<BR>06/04 11:24:56 opened voice modem device /dev/ttyS1
<BR>06/04 11:24:56 reading port ttyS1 configuration from config file
/usr/local/etc/mgetty+sendfax/voice.conf
<BR>06/04 11:24:56 reading /usr/local/etc/mgetty+sendfax/voice.conf...
<BR>06/04 11:24:56 conf lib: read: 'part generic'
<BR>06/04 11:24:56 found CT_KEYWORD part generic
<BR>06/04 11:24:56 conf lib: read: 'voice_log_level 6'
<BR>06/04 11:24:56 conf lib: read: 'voice_dir /usr/utc/vmail'
<BR>06/04 11:24:56 conf lib: read: 'phone_owner root'
<BR>06/04 11:24:56 conf lib: read: 'phone_group ims'
<BR>06/04 11:24:56 conf lib: read: 'phone_mode 0660'
<BR>06/04 11:24:56 conf lib: read: 'message_flag_file .flag'
<BR>06/04 11:24:56 conf lib: read: 'receive_dir incoming'
<BR>06/04 11:24:56 conf lib: read: 'message_dir messages'
<BR>06/04 11:24:56 conf lib: read: 'message_list Index'
<BR>06/04 11:24:56 conf lib: read: 'backup_message greeting.rmd'
<BR>06/04 11:24:56 conf lib: read: 'port_speed 57600'
<BR>06/04 11:24:56 conf lib: read: 'voice_shell /bin/sh'
<BR>06/04 11:24:56 conf lib: read: 'port_timeout 10'
<BR>06/04 11:24:56 conf lib: read: 'dial_timeout 90'
<BR>06/04 11:24:56 conf lib: read: 'command_delay 100'
<BR>06/04 11:24:56 conf lib: read: 'dtmf_len 30'
<BR>06/04 11:24:56 conf lib: read: 'dtmf_threshold 40'
<BR>06/04 11:24:56 conf lib: read: 'dtmf_wait 7'
<BR>06/04 11:24:56 conf lib: read: 'ignore_fax_dle false'
<BR>06/04 11:24:56 conf lib: read: 'raw_data false'
<BR>06/04 11:24:56 conf lib: read: 'rec_compression 0'
<BR>06/04 11:24:56 conf lib: read: 'rec_speed 0'
<BR>06/04 11:24:56 conf lib: read: 'rec_silence_len 70'
<BR>06/04 11:24:56 conf lib: read: 'rec_silence_threshold 40'
<BR>06/04 11:24:56 conf lib: read: 'rec_remove_silence false'
<BR>06/04 11:24:56 conf lib: read: 'rec_max_len 300'
<BR>06/04 11:24:56 conf lib: read: 'rec_min_len 0'
<BR>06/04 11:24:56 conf lib: read: 'do_hard_flow true'
<BR>06/04 11:24:56 conf lib: read: 'beep_frequency 500'
<BR>06/04 11:24:56 conf lib: read: 'beep_length 500'
<BR>06/04 11:24:56 conf lib: read: 'max_tries 3'
<BR>06/04 11:24:56 conf lib: read: 'retry_delay 5'
<BR>06/04 11:24:56 conf lib: read: 'watchdog_timeout 60'
<BR>06/04 11:24:56 conf lib: read: 'receive_gain -1'
<BR>06/04 11:24:56 conf lib: read: 'transmit_gain -1'
<BR>06/04 11:24:56 conf lib: read: 'enable_command_echo false'
<BR>06/04 11:24:56 conf lib: read: 'poll_interval 10'
<BR>06/04 11:24:56 conf lib: read: 'program vgetty'
<BR>06/04 11:24:56 conf lib: read: 'rings 3'
<BR>06/04 11:24:56 conf lib: read: 'answer_mode voice'
<BR>06/04 11:24:56 conf lib: read: 'force_autodetect false'
<BR>06/04 11:24:56 conf lib: read: 'toll_saver_rings 0'
<BR>06/04 11:24:56 conf lib: read: 'rec_always_keep true'
<BR>06/04 11:24:56 conf lib: read: 'button_program '
<BR>06/04 11:24:56 conf lib: read: 'call_program '
<BR>06/04 11:24:56 conf lib: read: 'dtmf_program dtmf.sh'
<BR>06/04 11:24:56 conf lib: read: 'message_program '
<BR>06/04 11:24:56 conf lib: read: 'do_message_light false'
<BR>06/04 11:24:56 conf lib: read: 'program vm'
<BR>06/04 11:24:56 conf lib: read: 'voice_devices ttyS1'
<BR>06/04 11:24:56 conf lib: read: 'dialout_timeout 90'
<BR>06/04 11:24:56 conf lib: read: 'program pvf'
<BR>06/04 11:24:56 conf lib: read: 'port ttyS1'
<BR>06/04 11:24:56 section: port ttyS1, **found**
<BR>06/04 11:24:56 conf lib: read: 'ring_type ring'
<BR>06/04 11:24:56 found CT_KEYWORD ring_type ring
<BR>06/04 11:24:56 conf lib: read: 'ring_type ring1'
<BR>06/04 11:24:56 key: 'part', type=6, flags=4, data=(ignored)
<BR>06/04 11:24:56 key: 'program', type=6, flags=4, data=(ignored)
<BR>06/04 11:24:56 key: 'port', type=6, flags=4, data=(ignored)
<BR>06/04 11:24:56 key: 'ring_type', type=6, flags=4, data=(ignored)
<BR>06/04 11:24:56 key: 'voice_log_level', type=0, flags=3,
data=6
<BR>06/04 11:24:56 key: 'voice_shell', type=1, flags=3, data=/bin/sh
<BR>06/04 11:24:56 key: 'port_speed', type=0, flags=3, data=57600
<BR>06/04 11:24:56 key: 'port_timeout', type=0, flags=3, data=10
<BR>06/04 11:24:56 key: 'dial_timeout', type=0, flags=3, data=90
<BR>06/04 11:24:56 key: 'command_delay', type=0, flags=3, data=100
<BR>06/04 11:24:56 key: 'dtmf_len', type=0, flags=3, data=30
<BR>06/04 11:24:56 key: 'dtmf_threshold', type=0, flags=3,
data=40
<BR>06/04 11:24:56 key: 'dtmf_wait', type=0, flags=3, data=7
<BR>06/04 11:24:56 key: 'ignore_fax_dle', type=3, flags=3,
data=FALSE
<BR>06/04 11:24:56 key: 'raw_data', type=3, flags=3, data=FALSE
<BR>06/04 11:24:56 key: 'rec_compression', type=0, flags=3,
data=0
<BR>06/04 11:24:56 key: 'rec_speed', type=0, flags=3, data=0
<BR>06/04 11:24:56 key: 'rec_silence_len', type=0, flags=3,
data=70
<BR>06/04 11:24:56 key: 'rec_silence_threshold', type=0, flags=3,
data=40
<BR>06/04 11:24:56 key: 'rec_remove_silence', type=3, flags=3,
data=FALSE
<BR>06/04 11:24:56 key: 'rec_max_len', type=0, flags=3, data=300
<BR>06/04 11:24:56 key: 'rec_min_len', type=0, flags=3, data=0
<BR>06/04 11:24:56 key: 'do_hard_flow', type=3, flags=3, data=TRUE
<BR>06/04 11:24:56 key: 'force_autodetect', type=3, flags=1,
data=FALSE
<BR>06/04 11:24:56 key: 'watchdog_timeout', type=0, flags=3,
data=60
<BR>06/04 11:24:56 key: 'receive_gain', type=0, flags=3, data=-1
<BR>06/04 11:24:56 key: 'transmit_gain', type=0, flags=3, data=-1
<BR>06/04 11:24:56 key: 'enable_command_echo', type=3, flags=3,
data=FALSE
<BR>06/04 11:24:56 key: 'poll_interval', type=0, flags=3, data=10
<BR>06/04 11:24:56 key: 'rings', type=1, flags=1, data=3
<BR>06/04 11:24:56 key: 'answer_mode', type=1, flags=1, data=voice:fax:data
<BR>06/04 11:24:56 key: 'toll_saver_rings', type=0, flags=1,
data=0
<BR>06/04 11:24:56 key: 'rec_always_keep', type=3, flags=1,
data=TRUE
<BR>06/04 11:24:56 key: 'voice_dir', type=1, flags=3, data=/usr/utc/vmail
<BR>06/04 11:24:56 key: 'phone_owner', type=1, flags=3, data=root
<BR>06/04 11:24:56 key: 'phone_group', type=1, flags=3, data=ims
<BR>06/04 11:24:56 key: 'phone_mode', type=0, flags=3, data=432
<BR>06/04 11:24:56 key: 'message_flag_file', type=1, flags=3,
data=.flag
<BR>06/04 11:24:56 key: 'receive_dir', type=1, flags=3, data=incoming
<BR>06/04 11:24:56 key: 'message_dir', type=1, flags=3, data=messages
<BR>06/04 11:24:56 key: 'message_list', type=1, flags=3, data=Index
<BR>06/04 11:24:56 key: 'backup_message', type=1, flags=3,
data=greeting.rmd
<BR>06/04 11:24:56 key: 'button_program', type=1, flags=1,
data=
<BR>06/04 11:24:56 key: 'call_program', type=1, flags=1, data=
<BR>06/04 11:24:56 key: 'dtmf_program', type=1, flags=1, data=dtmf.sh
<BR>06/04 11:24:56 key: 'message_program', type=1, flags=1,
data=
<BR>06/04 11:24:56 key: 'do_message_light', type=3, flags=1,
data=FALSE
<BR>06/04 11:24:56 key: 'beep_frequency', type=0, flags=3,
data=500
<BR>06/04 11:24:56 key: 'beep_length', type=0, flags=3, data=500
<BR>06/04 11:24:56 key: 'max_tries', type=0, flags=3, data=3
<BR>06/04 11:24:56 key: 'retry_delay', type=0, flags=3, data=5
<BR>06/04 11:24:56 key: 'dialout_timeout', type=0, flags=3,
data=90
<BR>06/04 11:24:56 key: 'voice_devices', type=1, flags=3, data=ttyS1
<BR>06/04 11:24:56 tss: set speed to 57600 (10001)
<BR>06/04 11:24:56 tio_set_flow_control( HARD )
<BR>06/04 11:24:56 detecting voice modem type
<BR>06/04 11:24:56 vm: ATE0
<BR>06/04 11:24:56 serial port: OK
<BR>06/04 11:24:56 voice command: 'ATI' -> ''
<BR>06/04 11:24:56 vm: ATI
<BR>06/04 11:24:56 serial port: 56000
<BR>06/04 11:24:56 Rockwell: OK
<BR>06/04 11:24:56 Rockwell detected
<BR>06/04 11:24:56 vm: entering voice mode
<BR>06/04 11:24:56 vm: Installing signal handlers
<BR>06/04 11:24:56 voice command: 'AT#CLS?' -> ''
<BR>06/04 11:24:57 vm: AT#CLS?
<BR>06/04 11:24:57 Rockwell: 0
<BR>06/04 11:24:57 voice command: '' -> 'OK'
<BR>06/04 11:24:57 Rockwell: OK
<BR>06/04 11:24:57 voice command: 'AT#CLS=8' -> 'OK'
<BR>06/04 11:24:57 vm: AT#CLS=8
<BR>06/04 11:24:57 Rockwell: OK
<BR>06/04 11:24:57 voice command: 'AT' -> 'OK'
<BR>06/04 11:24:57 vm: AT
<BR>06/04 11:24:57 Rockwell: <DLE> <h>
<BR>06/04 11:24:57 vm: queued event HANDSET_ON_HOOK at
position 0000
<BR>06/04 11:24:57 Rockwell:
<BR>06/04 11:24:57 Rockwell: OK
<BR>06/04 11:24:57 vm: queued event RESET_WATCHDOG at
position 0001
<BR>06/04 11:24:57 initializing ROCKWELL voice modem
<BR>06/04 11:24:57 voice command: 'AT#VSP=70' -> 'OK'
<BR>06/04 11:24:57 vm: AT#VSP=70
<BR>06/04 11:24:57 vm: unqueued event HANDSET_ON_HOOK
at position 0000
<BR>06/04 11:24:57 vm: voice_handle_event got event HANDSET_ON_HOOK
with data <_>
<BR>06/04 11:24:57 vm: unqueued event RESET_WATCHDOG
at position 0001
<BR>06/04 11:24:57 vm: voice_handle_event got event RESET_WATCHDOG
with data <_>
<BR>06/04 11:24:57 Rockwell: OK
<BR>06/04 11:24:57 voice command: 'AT#VSD=0' -> 'OK'
<BR>06/04 11:24:58 vm: AT#VSD=0
<BR>06/04 11:24:58 Rockwell: OK
<BR>06/04 11:24:58 voice command: 'AT#VTD=3F,3F,3F' -> 'OK'
<BR>06/04 11:24:58 vm: AT#VTD=3F,3F,3F
<BR>06/04 11:24:58 Rockwell: OK
<BR>06/04 11:24:58 voice command: 'AT#VSS=1' -> 'OK'
<BR>06/04 11:24:58 vm: AT#VSS=1
<BR>06/04 11:24:58 Rockwell: OK
<BR>06/04 11:24:58 voice command: 'AT&K3' -> 'OK'
<BR>06/04 11:24:58 vm: AT&K3
<BR>06/04 11:24:58 Rockwell: OK
<BR>06/04 11:24:58 tio_set_flow_control( HARD )
<BR>06/04 11:24:58 vm: leaving voice mode
<BR>06/04 11:24:58 voice command: 'AT#CLS=0' -> 'OK'
<BR>06/04 11:24:58 vm: AT#CLS=0
<BR>06/04 11:24:58 Rockwell: OK
<BR>06/04 11:24:58 voice command: 'AT' -> 'OK'
<BR>06/04 11:24:58 vm: AT
<BR>06/04 11:24:58 Rockwell: OK
<BR>06/04 11:24:58 vm: Restoring signal handlers
<BR>06/04 11:24:58 vm: entering voice mode
<BR>06/04 11:24:58 vm: Installing signal handlers
<BR>06/04 11:24:58 voice command: 'AT#CLS?' -> ''
<BR>06/04 11:24:59 vm: AT#CLS?
<BR>06/04 11:24:59 Rockwell: 0
<BR>06/04 11:24:59 voice command: '' -> 'OK'
<BR>06/04 11:24:59 Rockwell: OK
<BR>06/04 11:24:59 voice command: 'AT#CLS=8' -> 'OK'
<BR>06/04 11:24:59 vm: AT#CLS=8
<BR>06/04 11:24:59 Rockwell: OK
<BR>06/04 11:24:59 voice command: 'AT' -> 'OK'
<BR>06/04 11:24:59 vm: AT
<BR>06/04 11:24:59 Rockwell: <DLE> <h>
<BR>06/04 11:24:59 vm: queued event HANDSET_ON_HOOK at
position 0002
<BR>06/04 11:24:59 Rockwell:
<BR>06/04 11:24:59 Rockwell: OK
<BR>06/04 11:24:59 vm: queued event RESET_WATCHDOG at
position 0003
<BR>06/04 11:24:59 voice command: 'AT#VLS=2' -> 'VCON'
<BR>06/04 11:24:59 vm: AT#VLS=2
<BR>06/04 11:24:59 vm: unqueued event HANDSET_ON_HOOK
at position 0002
<BR>06/04 11:24:59 vm: voice_handle_event got event HANDSET_ON_HOOK
with data <_>
<BR>06/04 11:24:59 vm: unqueued event RESET_WATCHDOG
at position 0003
<BR>06/04 11:24:59 vm: voice_handle_event got event RESET_WATCHDOG
with data <_>
<BR>06/04 11:24:59 Rockwell: VCON
<BR>06/04 11:25:02 vm: queued event RESET_WATCHDOG at
position 0004
<BR>06/04 11:25:02 voice command: 'AT#VLS=2' -> 'VCON'
<BR>06/04 11:25:03 vm: AT#VLS=2
<BR>06/04 11:25:03 vm: unqueued event RESET_WATCHDOG
at position 0004
<BR>06/04 11:25:03 vm: voice_handle_event got event RESET_WATCHDOG
with data <`>
<BR>06/04 11:25:03 Rockwell: VCON
<BR>06/04 11:25:03 playing voice file /usr/utc/vmail/messages/greeting.rmd
<BR>06/04 11:25:03 vm: raw modem data header found
<BR>06/04 11:25:03 vm: modem type Rockwell found
<BR>06/04 11:25:03 vm: compression method 0x0002, speed 7200,
bits 2
<BR>06/04 11:25:03 vm: queued event RESET_WATCHDOG at
position 0005
<BR>06/04 11:25:03 voice command: 'AT#VBS=2' -> 'OK'
<BR>06/04 11:25:03 vm: AT#VBS=2
<BR>06/04 11:25:03 vm: unqueued event RESET_WATCHDOG
at position 0005
<BR>06/04 11:25:03 vm: voice_handle_event got event RESET_WATCHDOG
with data <`>
<BR>06/04 11:25:03 Rockwell: OK
<BR>06/04 11:25:03 vm: queued event RESET_WATCHDOG at
position 0006
<BR>06/04 11:25:03 vm: unqueued event RESET_WATCHDOG
at position 0006
<BR>06/04 11:25:03 vm: voice_handle_event got event RESET_WATCHDOG
with data <`>
<BR>06/04 11:25:03 voice command: 'AT&K3' -> 'OK'
<BR>06/04 11:25:03 vm: AT&K3
<BR>06/04 11:25:03 Rockwell: OK
<BR>06/04 11:25:03 tio_set_flow_control( HARD XON_OUT )
<BR>06/04 11:25:03 voice command: 'AT#VTX' -> 'CONNECT'
<BR>06/04 11:25:03 vm: AT#VTX
<BR>06/04 11:25:03 Rockwell: CONNECT
<BR>06/04 11:25:04 vm: <VOICE DATA 9211 bytes>
<BR>06/04 11:25:04 vm: queued event RESET_WATCHDOG at
position 0007
<BR>06/04 11:25:04 vm: unqueued event RESET_WATCHDOG
at position 0007
<BR>06/04 11:25:04 vm: voice_handle_event got event RESET_WATCHDOG
with data <`>
<BR>06/04 11:25:04 vm: <STOP PLAY>
<BR>06/04 11:25:04 voice command: '' -> 'OK|VCON'
<BR>06/04 11:25:04 Rockwell: VCON
<BR>06/04 11:25:13 vm: queued event RESET_WATCHDOG at
position 0008
<BR>06/04 11:25:13 voice command: 'ATH0' -> 'VCON|OK'
<BR>06/04 11:25:13 vm: ATH0
<BR>06/04 11:25:13 vm: unqueued event RESET_WATCHDOG
at position 0008
<BR>06/04 11:25:13 vm: voice_handle_event got event RESET_WATCHDOG
with data <`>
<BR>06/04 11:25:13 Rockwell: OK
<BR>06/04 11:25:13 voice command: 'AT#VLS=3' -> 'VCON'
<BR>06/04 11:25:13 vm: AT#VLS=3
<BR>06/04 11:25:13 Rockwell: ERROR
<BR>06/04 11:25:13 vm: Modem returned ERROR
<BR>06/04 11:25:14 recording voice file /root/test.rmd
<BR>06/04 11:25:14 vm: queued event RESET_WATCHDOG at
position 0009
<BR>06/04 11:25:14 voice command: 'AT#VBS=2' -> 'OK'
<BR>06/04 11:25:14 vm: AT#VBS=2
<BR>06/04 11:25:14 vm: unqueued event RESET_WATCHDOG
at position 0009
<BR>06/04 11:25:14 vm: voice_handle_event got event RESET_WATCHDOG
with data <`>
<BR>06/04 11:25:14 Rockwell: OK
<BR>06/04 11:25:14 vm: queued event RESET_WATCHDOG at
position 0010
<BR>06/04 11:25:14 vm: unqueued event RESET_WATCHDOG
at position 0010
<BR>06/04 11:25:14 vm: voice_handle_event got event RESET_WATCHDOG
with data <`>
<BR>06/04 11:25:14 voice command: 'AT&K3' -> 'OK'
<BR>06/04 11:25:14 vm: AT&K3
<BR>06/04 11:25:14 Rockwell: OK
<BR>06/04 11:25:14 tio_set_flow_control( HARD XON_IN )
<BR>06/04 11:25:14 voice command: 'AT#VRX' -> 'CONNECT'
<BR>06/04 11:25:14 vm: AT#VRX
<BR>06/04 11:25:14 Rockwell: ERROR
<BR>06/04 11:25:14 vm: Modem returned ERROR
<BR>06/04 11:25:26 vm: queued event RESET_WATCHDOG at
position 0011
<BR>06/04 11:25:26 voice command: 'ATH0' -> 'VCON|OK'
<BR>06/04 11:25:26 vm: ATH0
<BR>06/04 11:25:26 vm: unqueued event RESET_WATCHDOG
at position 0011
<BR>06/04 11:25:26 vm: voice_handle_event got event RESET_WATCHDOG
with data <`>
<BR>06/04 11:25:26 Rockwell: OK
<BR>06/04 11:25:26 voice command: 'AT#VLS=0' -> 'OK'
<BR>06/04 11:25:26 vm: AT#VLS=0
<BR>06/04 11:25:26 Rockwell: OK
<BR>06/04 11:25:26 vm: leaving voice mode
<BR>06/04 11:25:26 voice command: 'AT#CLS=0' -> 'OK'
<BR>06/04 11:25:26 vm: AT#CLS=0
<BR>06/04 11:25:26 Rockwell: OK
<BR>06/04 11:25:26 voice command: 'AT' -> 'OK'
<BR>06/04 11:25:26 vm: AT
<BR>06/04 11:25:26 Rockwell: OK
<BR>06/04 11:25:26 vm: Restoring signal handlers
<BR>06/04 11:25:26 closing voice modem device
<BR>06/04 11:25:26 removing lock file
<BR>
<PRE>--
Eric Plaster Image Manipulation Systems
Software Engineer (612)753-5602 x117
plaster@imageman.com www.imageman.com</PRE>
</HTML>
--------------3B816A37CC848775840CBD33--