-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 http://asterisk-java.org 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
http://asterisk-java.org/development/mail-lists.html.
 
Cheers,

Martin Smith, Systems Developer
[EMAIL PROTECTED]
Bureau of Economic and Business Research
University of Florida
(352) 392-0171 Ext. 221 

 


________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Santiago
Panchi
        Sent: Tuesday, September 30, 2008 10:14 AM
        To: asterisk-users@lists.digium.com
        Subject: [asterisk-users] Question about Asterisk and Java
        
        
        Hello there.
        
                 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.
        Please help me to solve this issue.
        
        Greetings
        Santiago
        

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to