<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=749262014-30092008><FONT face=Arial
size=2>-1 means Asterisk thinks the command failed. I've seen that if you hangup
on the script, thought it might also happen if the file you specified doesn't
exist. I encourage you to get the latest 1.0 snapshot from <A
href="http://asterisk-java.org">http://asterisk-java.org</A> as we had one
parsing bug due to spacing in the response upon a timeout with no digits
pressed. I'd also encourage you to check out the Asterisk-Java mailing list via
<A
href="http://asterisk-java.org/development/mail-lists.html">http://asterisk-java.org/development/mail-lists.html</A>.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=749262014-30092008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=749262014-30092008><FONT face=Arial
size=2>Cheers,</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P align=left><FONT size=2>Martin Smith, Systems
Developer<BR>martins@bebr.ufl.edu<BR>Bureau of Economic and Business
Research<BR>University of Florida<BR>(352) 392-0171 Ext. 221</FONT> </P>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Santiago
Panchi<BR><B>Sent:</B> Tuesday, September 30, 2008 10:14 AM<BR><B>To:</B>
asterisk-users@lists.digium.com<BR><B>Subject:</B> [asterisk-users] Question
about Asterisk and Java<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>Hello
there.<BR><BR> I have a
problem that I can't solve. I am developing an application with Java and
Asterisk. In addition, I am using Windows Vista, AsteriskWin32 PBX,
asterisk-java-0.3.jar and XLite. I startup the DefaultAgiServer without
problems and I have a java application running for the extension
1300(extensions.conf). When I use X-lite and make a call to extension 1300 the
application is ok and I can listen to the messages that I put on the java
code. Next, I tried to use the function getData to print the pressed keys from
the softphone. I can listen to the sound that I set for the function but the
answer for the pressed keys is always -1. I can't figure out the answer to
this problem.<BR>Please help me to solve this
issue.<BR><BR>Greetings<BR>Santiago<BR></DIV></BLOCKQUOTE></BODY></HTML>