My CND program does not work - with log file
"Thorbjoern List" (list@list.dk)
Sun, 6 Jun 1999 23:09:52 +0200
Hi there,
I have installed mgetty/vgetty version 1.1.20 and upgraded this with the =
latest patch from 310599.
I have a working system, which answers the phone with a message and =
which receives a message from
the caller.
I now want to just log the call using the CND program entry in the =
mgetty.config. It looks like this:
# Called before answering the phone at all - return 0 accept, 1 =
reject
cnd-program /usr/local/bin/check.cnd
but the vgetty never seems to call the program. I am using very simple =
perl:
#!/usr/bin/perl
$filename =3D "/usr/local/bin/cnd.log";
open(FILE,">>$filename") || exit 0;
@t =3D gmtime( time());
$out =3D "$t[3]-$t[4]-$t[5] $t[2]:$t[1]:$t[0]\t";
foreach $ag (@ARGV) {
$out .=3D "'$ag' ";
}
print FILE "$out\n";
close(FILE);
exit 0;
I have also tested this with a shell script as my perl program might be =
the problem,=20
but vgetty does not care what I do - it just waits for 3 rings and =
answers the phone with the greeting...
I have even tried removing the dialin.config file...
What am I doing wrong?
AND:
I was planning to move the control over the calls to perl - is this then =
the
call_program
parameter in the voice.conf or is this also the above cnd-program?
Thanks!
Thorbjoern
And here is the log file:
06/06 20:19:05 yS0 reading program vgetty configuration from config =
file /etc/mgetty+sendfax/voice.conf
06/06 20:19:05 yS0 reading port ttyS0 configuration from config file =
/etc/mgetty+sendfax/voice.conf
06/06 20:19:05 yS0 check for lockfiles
06/06 20:19:05 yS0 locking the line
06/06 20:19:05 yS0 lowering DTR to reset Modem
06/06 20:19:06 yS0 send: \d\d\d+++\d\d\dAT&FS2=3D255[0d]
06/06 20:19:09 yS0 waiting for ``OK'' ** found **
06/06 20:19:09 yS0 send: ATN3S0=3D0S13.2=3D1M0N0[0d]
06/06 20:19:09 yS0 waiting for ``OK'' ** found **
06/06 20:19:09 yS0 send: AT[0d]
06/06 20:19:09 yS0 do_stat: expect 'OK' ** found **
06/06 20:19:09 yS0 send: ATI2[0d]
06/06 20:19:09 yS0 do_stat: expect 'OK' ** found **
06/06 20:19:10 yS0 mdm_send: 'AT+FCLASS=3D2' -> OK
06/06 20:19:10 yS0 mdm_send: 'AT+FCLASS=3D0' -> OK
06/06 20:19:10 yS0 mdm_send: 'AT+FAA=3D1;+FCR=3D1' -> OK
06/06 20:19:10 yS0 mdm_send: 'AT+FBOR=3D0' -> OK
06/06 20:19:10 yS0 mdm_send: 'AT+FLID=3D"+45 32 96 11 49"' -> OK
06/06 20:19:10 yS0 mdm_send: 'AT+FDCC=3D1,5,0,2,0,0,0,0' -> OK
06/06 20:19:10 yS0 detecting voice modem type
06/06 20:19:10 yS0 ZyXEL 2864 detected
06/06 20:19:11 yS0 initializing ZyXEL 2864 voice modem
06/06 20:19:12 yS0 waiting...
06/06 20:19:37 yS0 waiting for ``RING_'' ** found **
06/06 20:19:37 yS0 waiting for ``RING_'' ** found **
06/06 20:19:44 yS0 waiting for ``RING_'' ** found **
06/06 20:19:50 yS0 reading ring_type ring configuration from config =
file /etc/mgetty+sendfax/voice.conf
06/06 20:19:51 yS0 playing voice file =
/var/spool/voice/messages/welcome.rmd
06/06 20:19:52 yS0 vgetty: Buffer underrun
06/06 20:20:06 yS0 recording voice file =
/var/spool/voice/incoming/vwSJPYk.rmd
06/06 20:20:17 yS0 vgetty: Unknown code <DLE> <l>
06/06 20:20:17 yS0 vgetty: Modem returned ERROR
06/06 20:20:17 yS0 closing voice modem device
06/06 20:20:17 ##### message keep, length=3D00:00:11, name=3D'', =
caller=3Dnone, dev=3DttyS0, pid=3D5498
06/06 20:20:17 yS0 vgetty: Executing shell script =
/usr/local/bin/new_voice with shell /bin/sh
--
06/06 20:20:17 yS0 vgetty: experimental test release 0.8.1 / 25Mar98
06/06 20:20:17 yS0 mgetty: experimental test release 1.1.14-Apr02
06/06 20:20:17 yS0 something foul in config line: 'cnd-program =
/usr/local/bin/check.cnd'
06/06 20:20:17 yS0 (keyword 'cnd-program' not found)
06/06 20:20:17 yS0 reading generic configuration from config file =
/etc/mgetty+sendfax/voice.conf
06/06 20:20:17 yS0 reading /etc/mgetty+sendfax/voice.conf...
06/06 20:20:17 yS0 conf lib: read: 'part generic'
06/06 20:20:17 yS0 section: part generic, **found**
06/06 20:20:17 yS0 conf lib: read: 'voice_log_level 4'
06/06 20:20:17 yS0 conf lib: read: 'voice_dir /var/spool/voice'