From smp@ilsa.systemsix.com  Mon Dec 25 15:36:15 1995
Received: from ilsa.systemsix.com (ilsa.systemsix.com [198.99.86.129])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA07102
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Dec 1995 15:35:59 -0800 (PST)
Received: (from smp@localhost) by ilsa.systemsix.com (8.6.12/8.6.12) id QAA02069; Mon, 25 Dec 1995 16:35:40 -0700
Message-Id: <199512252335.QAA02069@ilsa.systemsix.com>
Date: Mon, 25 Dec 1995 16:35:40 -0700
From: smp@csn.net
Reply-To: smp@csn.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: bug in tip: hayes dialer
X-Send-Pr-Version: 3.2

>Number:         914
>Category:       bin
>Synopsis:       hayes dialer for tip fails 1st attempt to dial
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 25 15:40:01 PST 1995
>Closed-Date:    Mon Nov 4 06:50:12 PST 1996
>Last-Modified:  Mon Nov  4 06:50:45 PST 1996
>Originator:     Steve Passe
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
New Ideas
>Environment:

	Supra Fax v32.bis modem on 16550 UART

>Description:

	The hayes dialer stalls waiting for a 'connect' code from the modem.
	It usually recovers after the 1st timeout.

>How-To-Repeat:

	re-build tip with the hayes dialer defined in tipconf.h.
	attempt to dial a site defined in /etc/remote.

>Fix:
	
	The second 'gobble("\r");' appears to be the problem, removing it
	causes the dial sequence to work properly.

/usr/src/usr.bin/tip/libacu/hayes.c, line 96:

	write(FD, "ATv0\r", 5);	/* tell modem to use short status codes */
	gobble("\r");
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: scrappy 
State-Changed-When: Mon Oct 21 23:15:45 PDT 1996 
State-Changed-Why:  

Dust off the cobwebs - Confirm Status 
State-Changed-From-To: feedback->closed 
State-Changed-By: scrappy 
State-Changed-When: Mon Nov 4 06:50:12 PST 1996 
State-Changed-Why:  

Originator Confirmed Closure 
>Unformatted:
 >>>	gobble("\r");
 	write(FD, "ATTD", 4);	/* send dial command */
