mgetty/vgetty cnd_program

Don Carroll (dcarroll@austin.rr.com)
Thu, 15 Jul 1999 20:12:11 +0000


added more info to this copy

Gert Doering wrote:

> Hi,
>
> On Wed, Jul 14, 1999 at 08:48:51PM +0000, Don Carroll wrote:
> > I have the cnd_program working , but it takes about 4-5 rings for it to
> > run
> > the system intel celr. 300mhz with 128megs ram,  uw scsi drives and a
> > modem blaster flash56
>
> What does the log file say?  What ring count did you mgetty give?

see below , and ring count = 5

>
> The cnd_program, as it is implemented in 1.1.20, is always called after
> enough RINGs have been collected - so if you have set mgetty to "-n 5", it
> will be called after the 5th RING...

here lies my problem , I what to know who it is before it picks up for
voice mail
are you looking at ring counts and then run when you get to numbers of
defined

if so where is this code at ( I will look for it myself also ) 
>
> > I use it to play a wav file based on CID from the modem.
> >
> > I have been doing this for at least 2 years even before you added
> > cnd_program by hacking cnd.c
>
> :-)
>i
> > which always runs my bash script before the third ring
>
> That will be possible with 1.1.21 or 1.1.22.
>
> > 07/14 15:44:04 dem  reading port modem configuration from config file
>
> Ah, there *is* a log file ... but unfortunately it doesn't show the
> incoming call, but only the modem init phase, which is pretty useless
> here...
>
> gert
> --
> USENET is *not* the non-clickable part of WWW!
>                                                            //www.muc.de/~gert/
> Gert Doering - Munich, Germany                             gert@greenie.muc.de
> fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de

sorry , I did the other part of the log so you would know what kind of
modem I
have
the following is what you are looking for

07/15 09:20:05 dem  waiting...
07/15 09:37:42 dem   checking lockfiles, locking the line
07/15 09:37:42 dem   makelock(modem) called
07/15 09:37:42 dem   do_makelock: lock='/var/lock/LCK..modem'
07/15 09:37:42 dem   lock made
07/15 09:37:42 dem  wfr: waiting for ``RING''
07/15 09:37:42 dem   got: [0a][0d][0a]RING[0d]
07/15 09:37:42 dem   wfr: rc=0, drn=0
07/15 09:37:42 dem  wfr: waiting for ``RING''
07/15 09:37:42 dem   got: [0a][0d][0a]DATE = 0715[0d]
07/15 09:37:43 dem   got: [0a]TIME = 0937[0d]
07/15 09:37:43 dem   got: [0a]NMBR = 512xxxxxxx[0d]   - of course I
changed the
phone # to xxxxx's
07/15 09:37:43 dem   got: [0a]NAME = WALSH RUBIO DOR[0d]
07/15 09:37:43 dem   got: [0a][0d][0a]RING[0d]
07/15 09:37:48 dem   wfr: rc=0, drn=0
07/15 09:37:48 dem  wfr: waiting for ``RING''
07/15 09:37:48 dem   got: [0a][0d][0a]RING[0d]
07/15 09:37:54 dem   wfr: rc=0, drn=0
07/15 09:37:54 dem  wfr: waiting for ``RING''
07/15 09:37:54 dem   got: [0a][0d][0a]RING[0d]
07/15 09:38:00 dem   wfr: rc=0, drn=0
07/15 09:38:00 dem  wfr: waiting for ``RING''
07/15 09:38:00 dem   got: [0a][0d][0a]RING[0d]
07/15 09:38:06 dem   wfr: rc=0, drn=0
07/15 09:38:06 dem   CND: program "/etc/mgetty+sendfax/sayid modem
'512xxxxxxx'
'WALSH RUBIO DOR' 0 '' >/dev/console 2>&1 </dev/null"
07/15 09:38:06 dem   CND: rc=0x0
07/15 09:38:06 dem  reading ring_type ring configuration from config
file //etc
07/15 09:38:06 dem   reading //etc/mgetty+sendfax/voice.conf...
07/15 09:38:06 dem   conf lib: read: 'part generic'
07/15 09:38:06 dem   found CT_KEYWORD part generic
07/15 09:38:06 dem   conf lib: read: 'voice_log_level 5'
07/15 09:38:06 dem   conf lib: read: 'voice_dir /var/spool/voice'
07/15 09:38:06 dem   conf lib: read: 'phone_owner root'
07/15 09:38:06 dem   conf lib: read: 'phone_group phone'
07/15 09:38:06 dem   conf lib: read: 'phone_mode 0660'
07/15 09:38:06 dem   conf lib: read: 'message_flag_file .flag'
07/15 09:38:06 dem   conf lib: read: 'receive_dir incoming'
07/15 09:38:06 dem   conf lib: read: 'message_dir messages'
07/15 09:38:06 dem   conf lib: read: 'message_list Index'
07/15 09:38:06 dem   conf lib: read: 'backup_message standard.rmd'