Mgetty & Caller ID

"Christian Taylor" (029759t@dragon.acadiau.ca)
Tue, 21 Sep 1999 13:13:20 -0300


Hi everyone,

I'm developing a custome caller ID application which informs me of phone
calls by sending network messages (ie. windows messaging, done through
samba), takes special action based on who the caller is, can interface to
ICQ for notification, etc.  I'd like to be able to use mgetty at the same
time as my program is running, and have it answer after a large number of
rings (7 or 8 maybe).  My application basically listens for RINGs to come
from the modem, and grabs the caller id info between the first and second
ring, and processes it.  I'd like to be able to hold mgetty up until after
the second ring, and then have it take over.  I thought about use a lock
file, which would work, but the my app wouldn't know when the phone stops
ringing (right now it sets an alarm() each time it receives a RING from the
modem, with a time greater than the time between rings... so the alarm
signal only actually gets sent once the phone stops ringing, since each call
to alarm() resets the timer).

I'd rather not modify the mgetty sources, although that's not out of the
question if necessary.  I'm willing to adapt my app in whatever way
necessary for this to work (and other things like sendfax and minicom should
be able to work with this setup as well).

Does anyone have any suggestions as to how I could make this work properly?
Should I try to explain in more detail what I want to do?

Thanks in advance,

 -Christian