Date: Sun, 25 Nov 2001 18:32:38 +0100 (CET) From: Leif Neland <leifn@neland.dk> To: Andrew Gordon <arg-bsd@arg1.demon.co.uk> Cc: <freebsd-isdn@FreeBSD.ORG> Subject: Re: bidirectional /dev/i4btel0 ? Message-ID: <20011125182631.U50532-100000@arnold.neland.dk> In-Reply-To: <20011125163647.E42138-100000@server.arg.sj.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 25 Nov 2001, Andrew Gordon wrote: > On Fri, 23 Nov 2001, Gary Jennejohn wrote: > > > On Friday 23 November 2001 13:04, Leif Neland wrote: > > > 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 > > Doing this with two independent processes is never going to work usefully, > due to the need to synchronize the transmit with the receive (eg. you want > the outgoing message to stop and switch to the next action immediately on > decoding a DTMF key, not some seconds later). My idea was sampling the input in say 0.5 secs, then run dtfmdecode to see if a key was pressed. If so, then kill the backgrounded process. If not, loop back and sample again. But as the simple test above didn't work, there was no reason to develop further. 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?20011125182631.U50532-100000>