[Asterisk-java-users] Re: Problem with ReplyBuilderImpl.java and
Brought to you by:
srt
From: Steve D. <Ste...@Su...> - 2005-03-30 00:22:50
|
I've looked at it a little bit more and I now understand that "result" is the part of the string after "result=" in the reply, so the code as it stands is correct. The problem I'm facing is there is no way to get the raw reply string out of AGIReply, and that is what I need to duplicate the functionality of fastagi-test. I see two solutions to this: (1) save the raw reply first line in a new attribute in AGIReply, or (2) change the toString method to produce a canonical raw first line, or some combination of both. On Mar 29, 2005, at 3:31 PM, Steve Drach wrote: > Hi, > > As my first AGIScript, I thought I'd duplicate the agi/fastagi-test > perl script included with the > asterisk souce code. In doing so, I think I found a problem with > ReplyBuilderImpl.java. > > At line 75, it says "reply.setResult(matcher.group(1));" > > I don't think that's what you want, or I don't understand the > attributes of AGIReply. I think > in the above line you want to setResultCode, and before any matches > are done, you > want to setResult(firstLine). Otherwise, there is no way to get the > entire result back. > |