My CND program does not work properly...

"Thorbjoern List" (list@list.dk)
Mon, 7 Jun 1999 19:57:32 +0200


Hi Gert

> > I have installed mgetty/vgetty version 1.1.20 and upgraded this with =
the latest
> > patch from 310599.
>
> No, you haven't:

I missed the fact that the old ones still were in /sbin/...

OK, now I installed it:

        06/07 19:53:34 yS0  vgetty: experimental test release 0.9.2 / =
01Mar99
        06/07 19:53:34 yS0  mgetty: experimental test release =
1.1.20-Jan17 (M+)


I now have the CND working and producing a nice output for each ring:

        7-5-99 13:18:24 'ttyS0' '35265318' '' '0' ''
        7-5-99 13:29:9  'ttyS0' '40731313' '' '0' ''
        7-5-99 15:11:46 'ttyS0' '44641765' '' '0' ''
        7-5-99 17:48:27 'ttyS0' '40731313' '' '0' ''

But why does it not log the MSN number? It finds it according to the =
logfile:

        06/07 19:53:43 yS0   vgetty: Restoring signal handlers
        06/07 19:53:43 yS0   waiting for line to clear (VTIME), read:
        06/07 19:53:43 yS0   removing lock file
        06/07 19:53:43 yS0  waiting...
        06/07 19:55:13 yS0    select returned 1
        06/07 19:55:13 yS0   checking lockfiles, locking the line
        06/07 19:55:13 yS0   makelock(ttyS0) called
        06/07 19:55:13 yS0   do_makelock: lock=3D'/var/lock/LCK..ttyS0'
        06/07 19:55:13 yS0   lock made
        06/07 19:55:13 yS0    vgetty: number of rings (5) was set =
directly
        06/07 19:55:13 yS0    vgetty: decremented number of rings (5) by =
0
        06/07 19:55:13 yS0  wfr: waiting for ``RING''
        06/07 19:55:13 yS0   got: [0a][0d][0a]RING[0d]
        06/07 19:55:13 yS0    CND: RING
        06/07 19:55:13 yS0   wfr: rc=3D0, drn=3D0
        06/07 19:55:13 yS0  wfr: waiting for ``RING''
        06/07 19:55:13 yS0   got: [0a]FM:40731313 TO:32961169[0d]
        06/07 19:55:13 yS0    CND: FM:40731313 TO:32961169
        06/07 19:55:13 yS0    CND: found: 40731313 TO:32961169
        06/07 19:55:13 yS0  ZyXEL: 'FM:40731313 TO:32961169'
        06/07 19:55:13 yS0   MSN: '32961169'
        06/07 19:55:13 yS0   wfr: rc=3D0, drn=3D0
        06/07 19:55:13 yS0  wfr: waiting for ``RING''
        06/07 19:55:13 yS0   got: [0a][0d][0a]RING[0d]
        06/07 19:55:20 yS0    CND: RING
        06/07 19:55:20 yS0   wfr: rc=3D0, drn=3D0
        06/07 19:55:20 yS0  wfr: waiting for ``RING''
        06/07 19:55:20 yS0   got: [0a][0d][0a]RING[0d]
        06/07 19:55:27 yS0    CND: RING
        06/07 19:55:27 yS0   wfr: rc=3D0, drn=3D0
        06/07 19:55:27 yS0  wfr: waiting for ``RING''
        06/07 19:55:27 yS0   got: [0a][0d][0a]RING[0d]
        06/07 19:55:33 yS0    CND: RING
        06/07 19:55:33 yS0   wfr: rc=3D0, drn=3D0
        06/07 19:55:33 yS0   CND: program "/usr/local/bin/check.cnd =
ttyS0 '40731313' '' 0 '' >/dev/console 2>&1 </dev/null"
        06/07 19:55:33 yS0   CND: rc=3D0x0
        06/07 19:55:33 yS0  reading ring_type ring configuration from =
config file /etc/mgetty+sendfax/voice.conf
        06/07 19:55:33 yS0   reading /etc/mgetty+sendfax/voice.conf...

As I see it, it finds the MSN as well as the CallerID, but the CND =
program is only given the CallerID.

Is this the way it should to it? How can I log the MSN then?


By the way: Are the same params given to the call_program (both the =
CallerID and the MSN)?


Thanks!

Thorbjoern