From nobody@FreeBSD.org  Tue Nov 16 02:44:03 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 19D5916A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Nov 2004 02:44:03 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0939543D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Nov 2004 02:44:03 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id iAG2i2Lt057318
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Nov 2004 02:44:02 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id iAG2i2Kw057317;
	Tue, 16 Nov 2004 02:44:02 GMT
	(envelope-from nobody)
Message-Id: <200411160244.iAG2i2Kw057317@www.freebsd.org>
Date: Tue, 16 Nov 2004 02:44:02 GMT
From: "Josef M." <jm.bsd@aon.at>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ISDN - first dial attempt fails
X-Send-Pr-Version: www-2.3

>Number:         73988
>Category:       bin
>Synopsis:       ISDN - first dial attempt fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-isdn
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 16 02:50:23 GMT 2004
>Closed-Date:    Sat May 13 15:22:16 CEST 2006
>Last-Modified:  Sat May 13 15:22:16 CEST 2006
>Originator:     Josef M.
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
5.3-RELEASE FreeBSD 5.3-RELEASE #0: Sat Nov 13 08:20:00 CET 2004
>Description:
The *first* dial attempt to my ISP fails with error message: 
"cause 100: Invalid information element contents (Q.850)"
I'm using synchronous PPP with the isp driver.

isndtrace(8) shows that only the first dial attempt includes
a "calling party subaddress" and a "called party subaddress"
field in the message-setup. This indicates that these
fields are causing the problem.
>How-To-Repeat:
      Restart isdnd(8). Trigger an automatic dial attempt.
e.g. ping www.freebsd.org
>Fix:
I came up with the following workaround:
Add the following key/value pairs to isdnd.rc(5)

usesubaddr = on    
local-subaddr-dialout = ""
remote-subaddr-dialout = ""

This workaround will suppress the subaddress fields already
the first time.

After a quick look into /usr/src/usr.sbin/i4b/isdnd/msghdl.c
I could imagine, that the variables holding the subaddresses
do not get initialized.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-isdn 
Responsible-Changed-By: arved 
Responsible-Changed-When: Tue Jun 7 18:03:48 GMT 2005 
Responsible-Changed-Why:  
Over to ISDN Mailinglist 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73988 
State-Changed-From-To: open->closed 
State-Changed-By: hm 
State-Changed-When: Sat May 13 15:17:45 CEST 2006 
State-Changed-Why:  
The fix mentioned in the PR seems to be already the right one 
for this problem. Further evaluation of this problem is not 
possible since ISDN subaddressing is not available here. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73988 
>Unformatted:
