My CND program does not work

"Thorbjoern List" (list@list.dk)
Sun, 6 Jun 1999 21:27:56 +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, 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