More on: Now ENV works, but PLAY and RECORD doesn't...
"Thorbjoern List" (list@list.dk)
Sun, 4 Jul 1999 02:04:34 +0200
Hi Marc, Gert and others
I just found out that the default answering machine does this as well:
07/04 02:00:41 yS0 ZyXEL 2864: OK
07/04 02:00:41 yS0 playing voice file =
/var/spool/voice/messages/welcome.rmd
07/04 02:00:41 yS0 vgetty: cannot set effective GID to 60
07/04 02:00:41 yS0 vgetty: Could not play greeting message
07/04 02:00:41 yS0 vgetty: queued event RESET_WATCHDOG at position =
0003
07/04 02:00:41 yS0 voice command: 'AT+VTS=3D[933,0,100]' -> ''
07/04 02:00:42 yS0 vgetty: AT+VTS=3D[933,0,100]
07/04 02:00:42 yS0 vgetty: unqueued event RESET_WATCHDOG at position =
0003
07/04 02:00:42 yS0 vgetty: voice_handle_event got event =
RESET_WATCHDOG with data <NUL>
07/04 02:00:42 yS0 voice command: '' -> 'OK'
07/04 02:00:42 yS0 ZyXEL 2864: OK
07/04 02:00:43 yS0 recording voice file =
/var/spool/voice/incoming/vYVbLga.rmd
07/04 02:00:43 yS0 vgetty: cannot set effective GID to 60
07/04 02:00:43 yS0 vgetty: Could not record a message
--
07/04 02:00:43 yS0 vgetty: experimental test release 0.9.3 / 15Jun99
07/04 02:00:43 yS0 mgetty: experimental test release 1.1.20-Jan17 (M+)
07/04 02:00:43 yS0 reading generic configuration from config file =
//etc/mgetty+sendfax/voice.conf
So it's not my script...
Thorbjoern
My previous letter:
> > Is there any way for me to get to Caller and Called ID from the =
call_program???
>
> I am not exactly sure, but
>
> - either you apply the called ID patch (in the same directory as
> 31051999) on top of 31051999
>
> - or you apply the latest global patch instead
>
So, I applied the latest global patch 270699 and now I have the long =
sought IDs
in the ENV.
But now the modem won't play or record (but it beeps and hangs up):
Note especially the two:
07/03 23:12:24 yS0 playing voice file =
/var/spool/voice/messages/welcome.rmd
07/03 23:12:24 yS0 vgetty: cannot set effective GID to 60
07/03 23:12:24 yS0 vgetty(1): ERROR
07/03 23:12:24 yS0 vgetty(1): READY
and
07/03 23:12:25 yS0 recording voice file =
/var/spool/voice/incoming/19990703-231223.rmd
07/03 23:12:25 yS0 vgetty: cannot set effective GID to 60
07/03 23:12:25 yS0 vgetty(1): ERROR
07/03 23:12:25 yS0 vgetty(1): READY
The whole log:
07/03 23:12:22 yS0 vgetty: Executing shell script =
/usr/local/bin/answering_machine.pl with shell /usr/bin/perl
07/03 23:12:22 yS0 vgetty: opening pipes
07/03 23:12:22 yS0 vgetty: forking shell
07/03 23:12:22 yS0 vgetty(0): HELLO SHELL
07/03 23:12:23 yS0 vgetty: Got pipe signal
07/03 23:12:23 yS0 vgetty: queued event SIGNAL_SIGPIPE at position =
0003
07/03 23:12:23 yS0 vgetty: unqueued event SIGNAL_SIGPIPE at position =
0003
07/03 23:12:23 yS0 vgetty: voice_handle_event got event =
SIGNAL_SIGPIPE with data <NUL>
07/03 23:12:23 yS0 shell(1): HELLO VOICE PROGRAM
07/03 23:12:23 yS0 vgetty(1): READY
07/03 23:12:23 yS0 vgetty: initialized communication
07/03 23:12:24 yS0 vgetty: Got pipe signal
07/03 23:12:24 yS0 vgetty: queued event SIGNAL_SIGPIPE at position =
0004
07/03 23:12:24 yS0 vgetty: unqueued event SIGNAL_SIGPIPE at position =
0004
07/03 23:12:24 yS0 vgetty: voice_handle_event got event =
SIGNAL_SIGPIPE with data <NUL>
07/03 23:12:24 yS0 shell(1): ENABLE EVENTS
07/03 23:12:24 yS0 vgetty(1): READY
07/03 23:12:24 yS0 vgetty: Got pipe signal
07/03 23:12:24 yS0 vgetty: queued event SIGNAL_SIGPIPE at position =
0005
07/03 23:12:24 yS0 vgetty: unqueued event SIGNAL_SIGPIPE at position =
0005
07/03 23:12:24 yS0 vgetty: voice_handle_event got event =
SIGNAL_SIGPIPE with data <NUL>
07/03 23:12:24 yS0 shell(1): PLAY =
/var/spool/voice/messages/welcome.rmd
07/03 23:12:24 yS0 vgetty(1): PLAYING
07/03 23:12:24 yS0 playing voice file =
/var/spool/voice/messages/welcome.rmd
07/03 23:12:24 yS0 vgetty: cannot set effective GID to 60
07/03 23:12:24 yS0 vgetty(1): ERROR
07/03 23:12:24 yS0 vgetty(1): READY
07/03 23:12:24 yS0 vgetty: Got pipe signal
07/03 23:12:24 yS0 vgetty: queued event SIGNAL_SIGPIPE at position =
0006
07/03 23:12:24 yS0 vgetty: unqueued event SIGNAL_SIGPIPE at position =
0006
07/03 23:12:24 yS0 vgetty: voice_handle_event got event =
SIGNAL_SIGPIPE with data <NUL>
07/03 23:12:24 yS0 shell(1): BEEP 933 1000
07/03 23:12:24 yS0 vgetty(1): BEEPING
07/03 23:12:24 yS0 vgetty: queued event RESET_WATCHDOG at position =
0007
07/03 23:12:24 yS0 voice command: 'AT+VTS=3D[933,0,100]' -> ''
07/03 23:12:24 yS0 vgetty: AT+VTS=3D[933,0,100]
07/03 23:12:24 yS0 vgetty: unqueued event RESET_WATCHDOG at position =
0007
07/03 23:12:24 yS0 vgetty: voice_handle_event got event =
RESET_WATCHDOG with data <NUL>
07/03 23:12:24 yS0 voice command: '' -> 'OK'
07/03 23:12:24 yS0 ZyXEL 2864: OK
07/03 23:12:25 yS0 vgetty(1): READY
07/03 23:12:25 yS0 vgetty: Got pipe signal
07/03 23:12:25 yS0 vgetty: queued event SIGNAL_SIGPIPE at position =
0008
07/03 23:12:25 yS0 vgetty: unqueued event SIGNAL_SIGPIPE at position =
0008
07/03 23:12:25 yS0 vgetty: voice_handle_event got event =
SIGNAL_SIGPIPE with data <NUL>
07/03 23:12:25 yS0 shell(1): RECORD =
/var/spool/voice/incoming/19990703-231223.rmd
07/03 23:12:25 yS0 vgetty(1): RECORDING
07/03 23:12:25 yS0 recording voice file =
/var/spool/voice/incoming/19990703-231223.rmd
07/03 23:12:25 yS0 vgetty: cannot set effective GID to 60
07/03 23:12:25 yS0 vgetty(1): ERROR
07/03 23:12:25 yS0 vgetty(1): READY
07/03 23:12:26 yS0 vgetty: Got child changed status signal
07/03 23:12:26 yS0 vgetty: queued event SIGNAL_SIGCHLD at position =
0009
07/03 23:12:26 yS0 vgetty: shell exited normally with status 0x0000
What's wrong???
Thorbjoern