From owner-freebsd-isdn Fri Nov 23 4: 4: 0 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from fepZ.post.tele.dk (fepz.post.tele.dk [195.41.46.133]) by hub.freebsd.org (Postfix) with ESMTP id A175537B419 for ; Fri, 23 Nov 2001 04:03:50 -0800 (PST) Received: from arnold.neland.dk ([62.243.77.140]) by fepZ.post.tele.dk (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20011123120349.ULSQ395.fepZ.post.tele.dk@arnold.neland.dk> for ; Fri, 23 Nov 2001 13:03:49 +0100 Received: from localhost (localhost [127.0.0.1]) by arnold.neland.dk (8.11.6/8.11.6) with ESMTP id fANC46q43930 for ; Fri, 23 Nov 2001 13:04:06 +0100 (CET) (envelope-from leifn@neland.dk) Date: Fri, 23 Nov 2001 13:04:06 +0100 (CET) From: Leif Neland To: Subject: bidirectional /dev/i4btel0 ? Message-ID: <20011123124125.V38153-100000@arnold.neland.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Is it somehow possible to both be sending and recieving from /dev/i4btel0? I would like to send voice to the caller, while also recieving data, eventually decoding with dtmfdecode to make a voice-response system. dd of=${DEVICE} if=${LIBDIR}/leifans.al bs=2k >/tmp/out.log 2>&1 & sleep 2 dd if=${DEVICE} of=/tmp/answers.al bs=2k count=100 >/tmp/in.log 2>&1 Without "sleep" the last dd reports "device busy" With "sleep" the first dd reports "device busy" Would it be possible for a single program to open the device for reading and writing simultaneously? Wish mode on: A program, which sends an audiofile to the device, while listening for DFTM tones. Exit, when X tones are decoded, or a member of string S, or Y seconds after the audiofile is finished. usage: string=`playndecode enteryourcode.au -n4 -e#* -t30` Play the file, wait for 4 digits, or exit on #/*, timeout 30 seconds. Leif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message