discrepancy in ringback doc/code

Paul Fox (pgf@foxharp.boston.ma.us)
Sun, 14 Sep 1997 00:00:31 +0200


i'm running 1.1.9.

the mgetty man page says:
  -R <t> Tells mgetty to go into "ringback" (aka "ring-
   twice") mode. That means: the first call is never
   answered, instead the caller has to hang up after
   the phone RINGs, wait 30 seconds, and then call
   again in the next <t> seconds for mgetty to pick
   up. If no call comes, mgetty will exit.

the code in mgetty.c says:
	 if ( c_bool(ringback) )	/* don't pick up on first call */
	 {
		int n = 0;
		
		while ( do_chat( STDIN, ring_chat_seq, ring_chat_actions,
				 &what_action, 17, TRUE ) == SUCCESS &&
		  ! virtual_ring )
		{ n++; }
		
		if ( what_action != A_TIMOUT ) goto Ring_got_action;

		lprintf( L_MESG, "ringback: phone stopped after %d RINGs, waiting for re-ring", n );
	 }

either the 30 should be 17, or the 17 should be 30.

btw, the man page also says:
   "I do not really recommend using this, better get a
   second phone line for the modem."

i would amend this to say:
	 "...unless you live alone, or unless you only call your
	 computer when you're sure no one else is home."

(for my part, i have a full-time network connection via other means, and
only want the modem access as an emergency backup.)

paul

---------------------
 paul fox, pgf@foxharp.boston.ma.us (arlington, ma)


.