[Asterisk-java-devel] org.asteriskjava.fastagi.internal.AgiReaderImpl doesn't haven't multiline re
Brought to you by:
srt
From: Steve P. <sp...@ge...> - 2006-12-24 22:03:46
|
I've been playing with the Lumenvox integration with Asterisk with asterisk-java and for a start I've been trying to port over the Lumenvox Pizza demo to Java. I've made decent progress and like how asterisk-java is working out as a programming environment for speech apps, but I've run into a problem. String text = this.getFullVariable("${SPEECH_TEXT(0)}"); Is used to retrieve the spoken words recognized by the Lumenvox engine. In the case of the individual pizza ingredients prompt, this value isn't filled in with a single word (which works fine in asterisk-java), but rather returns a multi-line XML structure which contains a list of each ingredient recognized. Unfortunately it seems that getFullVariable() returns null when it is given a multi-line value from Asterisk. I traced this down to AsiReaderImpl.readReply() which only seems to read multiple lines of response when the response starts with AgiReply.SC_INVALID_COMMAND_SYNTAX. So it seems that there are cases when readReply() should be reading additional lines of response before the line: reply = new AgiReplyImpl(lines); The big thing stopping me from fixing this right now is that I don't know exactly what the format for a multi-line response to getFullVariable is defined to be. Anyone know what this is? Steve |