From owner-cvs-all Mon Dec 10 2:28:31 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AF54F37B417; Mon, 10 Dec 2001 02:28:25 -0800 (PST) Received: (from hm@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBAASPc87514; Mon, 10 Dec 2001 02:28:25 -0800 (PST) (envelope-from hm) Message-Id: <200112101028.fBAASPc87514@freefall.freebsd.org> From: Hellmuth Michaelis Date: Mon, 10 Dec 2001 02:28:25 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i4b/capi capi_msgs.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hm 2001/12/10 02:28:25 PST Modified files: (Branch: RELENG_4) sys/i4b/capi capi_msgs.c Log: MFC: It seems that I slipped a nasty bug into the CAPI support. The message lengths for CONNECT_REQ and CONNECT_IND are incorrect, which causes dialouts to fail after certain error situations (an invalid -- not wrong! -- number has been dialed). Since these messages are tagged as too short, the device reads trailing garbage as the B protocol parameters; this is OK as long as the garbage consists of zero bytes, which it usually does, except after the said error. Another change we have taken into use is to send an explicit Q.850 "normal call clearing" code when a call is ignored using PRI equipment (specifically AVM T1); the CAPI pseudo-code for ignore, 1, translates into something at least Ericsson exchanges interpret oddly (message "this area is not reachable from your number"). NCCLR makes the exchange give a busy signal, which is the behaviour at least we prefer (conceivably, the ignore code could be made a sysctl variable). The attached patch corrects the message length issue. It also includes a somewhat unpretty solution for the PRI ignore code (if device's number of channels equals 30, assume PRI and send NCCLR, otherwise send CAPI ignore). Tested using AVM B1 PCI and T1 PCI. Submitted by: Juha-Matti Liukkonen Reviewed by: hm Revision Changes Path 1.1.2.2 +9 -4 src/sys/i4b/capi/capi_msgs.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message