Date: Fri, 23 Nov 2001 13:04:06 +0100 (CET) From: Leif Neland <leifn@neland.dk> To: <freebsd-isdn@freebsd.org> Subject: bidirectional /dev/i4btel0 ? Message-ID: <20011123124125.V38153-100000@arnold.neland.dk>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011123124125.V38153-100000>