From owner-freebsd-isdn Tue Sep 1 05:38:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA07091 for freebsd-isdn-outgoing; Tue, 1 Sep 1998 05:38:11 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from mailhost.ah.nl (ahns.mis.ah.nl [141.93.32.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA07086 for ; Tue, 1 Sep 1998 05:38:10 -0700 (PDT) (envelope-from leo@x1c19e02.wau.mis.ah.nl) Received: from leobsd.wau.mis.ah.nl(x1c19e02.wau.mis.ah.nl[141.93.34.7]) (2195 bytes) by mailhost.ah.nl via sendmail with P:esmtp/R:inet_bind/T:smtp (sender: ) id for ; Tue, 1 Sep 1998 14:41:24 +0200 (MZT) (Smail-3.2.0.99 1997-Dec-4 #5 built 1998-Jul-18) Received: (from leo@localhost) by leobsd.wau.mis.ah.nl (8.8.8/8.6.12) id OAA20639; Tue, 1 Sep 1998 14:36:26 +0200 (CEST) Message-ID: <19980901143626.40046@wau.mis.ah.nl> Date: Tue, 1 Sep 1998 14:36:26 +0200 From: Leo Weppelman To: freebsd-isdn@FreeBSD.ORG Subject: called-back, rejects and auto hangup Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have had trouble with an ISDN connection to my work for a while now. Sometimes it worked, sometimes it did not. At work, there is an x86/pc running Linux. It has an ISDN connection so we are able to dialin from home. It is configured for callback. When things work, what happens is: My machine (NetBSD/Atari i4b-0.63) dials out -> Machine at work recognises the incoming call, rejects it and starts dialing to me My machine, hangs up (rejected) and recognizes incoming call When things are not working as they should, the actions in the log indicate that the reject never arrives at my machine at home. This means that at my end, the incoming call is not recognized because the connection entry is still active (still dialing....). As fix (stop-gap) I modified i4b to just hangup the line after 2 seconds when dialing out on a calledback connection (see diff below). My question is, is this a reasonable/sensible thing to do? If it is, I think my patch should be expanded a bit with a tunable hangup time (0 == no hangup). Thoughts? Leo. PS: When will the next i4b alpha be released? I'm losing track of the changes a bit ;-) diff -rc i4b/isdnd/fsm.c i4b.org/isdnd/fsm.c *** i4b/isdnd/fsm.c Wed Aug 26 10:45:55 1998 --- i4b.org/isdnd/fsm.c Thu Jun 18 16:46:38 1998 *************** *** 195,205 **** select_first_dialno(cep); sendm_connect_req(cep); - - if (cep->dialouttype == DIALOUT_CALLEDBACK) { - sleep(2); - sendm_disconnect_req(cep, (CAUSET_I4B << 8) | CAUSE_I4B_NORMAL); - } } /*---------------------------------------------------------------------------* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message