Questions about caller ID and init-chat

Gert Doering (gert@greenie.muc.de)
Thu, 30 Sep 1999 21:20:48 +0200


Hi,

On Wed, Sep 22, 1999 at 05:19:04PM +0200, Thomas Porter wrote:
> I am using megtty 1.1.19 (and whatever vgetty was packaged with it at that
> time.).  [I know, upgrade!] Since I got this as a RedHat RPM, I did not compile
> it, and so had no access to modifications of policy.h to activate Caller ID for
> my USR modem.

No need to.  Easy things like this should be fully run-time
configurable.

> I saw in the docs that I could add an 'init-chat' clause to the port specific
> section of mgetty.conf so I copied the entire init-string that mgetty/vgetty
> was creating out of my log and created an 'init-chat' clause which added
> '#CID=1' to my init string.  

Sounds OK.

> Since I run vgetty, and since voice.conf seemed to
> duplicate many mgetty.conf entries, I added an 'init-chat' clause to voice.conf
> as well.

No... - voice.conf is an addition to mgetty.config.  First, the stuff in
mgetty.config is used, then voice.conf for the voice-specific stuff.

> While vgetty works fine and records the caller id of inbound voice callers, I
> get nasty messages in vgetty.ttyS0 about the 'init-clause' in voice.conf like
> so:

So just drop it from there :-)

[..]
> Second question:  I have a script set up to mail incoming voice messages to me
> as a mine encoded WAV file using the 'message_program' option.  Is there a way
> to pass the caller ID name and number to this?  Are they set as environment
> variables or commandline arguments passed to the message_program, as the
> temporary rmd file name is?  

I'm not sure about 1.1.19, but 1.1.21 includes the caller ID in the
environment variable $CALLER_ID.    I can't find the change in my
ChangeLog (lazy me), and can't check the CVS from here.  Marc, any
recollections?

> I would love to have this information on the email
> subject line and avoid setting up a 'cnd-program' in mgetty.conf to send yet
> another separate email for this.  I suppose that since the message_program only
> kicks in for voice mail, while the cnd-program is activated for all connects
> (true?) I may want to do this anyway. 

Yep... - I use cnd-program to broadcast the phone number to all consoles
(so I can immediately see who's calling), and then use the other scripts
for more specific tasks.

gert
-- 
Gert Doering
Mobile communications ... right now writing from *Augsburg* :-)) 
... mobile phone: +49 177 2160221 ... or mail me:  gert@greenie.muc.de