ISDN, MSN, and mgetty

Gert Doering (gert@greenie.muc.de)
Wed, 19 May 1999 19:31:49 +0200


Hi,

On Tue, May 18, 1999 at 06:27:42PM +0300, Eli Marmor wrote:
> Is MSN (Multiple Subscriber Number) supported by mgetty?

Well, yes and no.

> I want to replace my analog line by an ISDN, and to order 8 numbers
> (all for the same line). I want to recognize/identify incoming fax
> messages according to the dialed number, and to forward them to
> different "fax boxes". Is it possible?

Yes.  You can do that without any patches (Marc, please!) using the
cnd-program approach.

Just before picking up the call, mgetty can call an external program,
configured with the "cnd-program" statement in mgetty.config, to decide
whether to pick up the call or not.  The cnd-program receives the
caller ID AND the destination MSN (and distinguished RING number, in 
case of an analogue modem with dist RING enabled).

Now, in your case, what you want to do is just *save* the called MSN
from the cnd-program, return "yes, pick up the call" to mgetty (always),
and from the "new_fax" program, you read the called MSN number from
where cnd-program saved it to, and decide upon that data where to
forward the fax to.

A future mgetty version will most likely set some environment variables
before any invocation of external programs (like new_fax or the voice
shell stuff), passing caller ID, called MSN, dist. RING number, CONNECT
message etc. to those programs, but that's not there, unless you use
vgetty with Marc's oh-so-beloved called ID patch (sorry Marc, couldn't
resist).

[..]
> I have RedHat, and before moving to ISDN I plan to upgrade to RH6.0.

IIRC, RedHat 6.0 comes with mgetty 1.1.19 or 1.1.20, and both of them
have cnd-program.  I implemented that last June already :-)

gert

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