Even more on: Now ENV works, but PLAY and RECORD doesn't...

"Thorbjoern List" (list@list.dk)
Sun, 4 Jul 1999 02:23:08 +0200


Hi there

I have now tried changing the group ID in voice.conf and mgetty.conf to =
something
else, namely group

	voice

which has GID 59. And now the program states:

07/04 02:12:43 yS0    ZyXEL 2864: OK
07/04 02:12:43 yS0  playing voice file =
/var/spool/voice/messages/welcome.rmd
07/04 02:12:43 yS0  vgetty: cannot set effective GID to 59
07/04 02:12:43 yS0  vgetty: Could not play greeting message
07/04 02:12:43 yS0    vgetty: queued event RESET_WATCHDOG at position =
0003
07/04 02:12:43 yS0   voice command: 'AT+VTS=3D[933,0,100]' -> ''
07/04 02:12:43 yS0    vgetty: AT+VTS=3D[933,0,100]

Of course I tried changing the outgoing file's credentials to

-rw-rw-rw-   1 voice    voice          12 Apr  8 11:40 Index
-rw-r--r--   1 voice    voice       29510 Jun  8 23:57 welcome.rmd

and actually the whole directory /var/spool/voice as well so everything =
should
belong to voice:voice (GID 59).

My conf file says:

07/04 02:12:44 yS0   conf lib: read: 'phone_owner voice'
07/04 02:12:44 yS0   conf lib: read: 'phone_group voice'
07/04 02:12:44 yS0   conf lib: read: 'phone_mode 0660'

So what is wrong???

Thorbjoern



> > 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