input processing issues

Alexandre BOULANGER <[email protected]>
Newsgroups gmane.comp.gnu.bayonne.devel
Message-ID <[email protected]>
Hi,

I have a working IVR application based on Bayonne2 (0.8.8) with SIP
support. Nice work, congratulations

One annoying thing in my script is input processing. I have a 

	string.8 %tel_dtmf
        input %tel_dtmf count=8 format="????????"

statement that retrieves a 8 numbers value; after the 8e value has been
entered, there's a 3-4s blank time before the script continues.
If I use # as a terminating digit, there's no blank, but I don't want to
use such a digit.

I tried
	string.8 %tel_dtmf
	read  %tel_dtmf count=8 format="????????"
	slog "your input: %tel_dtmf"

but read() does not seem to get any input

---- snip ----
sip/0: state=play, event=400, seq=12   <--- my prompt ends
sip/0: state=run, event=100, seq=12
sip/0: state=sleep, event=100, seq=12
sip/0: state=sleep, event=708, seq=13
sip/0: state=run, event=100, seq=13
sip/0: state=read, event=100, seq=13    <-- read begins
sip/0: state=read, event=400, seq=17
sip/0: state=run, event=100, seq=17
sip/0: your input: 
sip/0: state=wait, event=100, seq=17    <-- :(
---- snip ----


I had a quick look at the source code but I didn't manage to get what's
wrong. Is this a DTMF in/out band issue or a coding one? I know read()
differs from input() by the terminating digit abstraction, that's what I
want to use.

And, by the way, what does 'interdigits' refer to?


TIA

-- 
Alexandre BOULANGER <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.