Re: [Asterisk-java-users] RE: Asterisk-java-users digest, Vol 1#52 - 2 msgs
Brought to you by:
srt
|
From: Dov B. <do...@te...> - 2005-07-18 15:19:18
|
Yeah.. that was it.
But the problem I had under AsteriskWin32 still happens here under Linux =
red
hat + asterisk 1.0.9...
After printing "cc1", my application fails with the following:
aa123#
bb123#
cc0
cc1
18/07/2005 12:15:20 net.sf.asterisk.util.impl.JavaLoggingLog error
SEVERE: AGIException while handling request: Channel was hang up.
Thank you
Dov
answer(channel);
String result =3D getNumber(channel);
SayDigitsCommand sc =3D new SayDigitsCommand(result);
System.out.println("aa" + result);
AGIReply rep =3D channel.sendCommand(sc);
System.out.println("bb" + result);
if (result.substring(0, result.length() - 1).equals("123"))
{
System.out.println("cc0");
SayNumberCommand cmd =3D new SayNumberCommand(new
Integer("123").toString());
System.out.println("cc1");
channel.sendCommand(cmd);
System.out.println("cc2");
}
----- Original Message -----=20
From: "Stefan Reuter" <sr...@re...>
To: <ast...@li...>
Sent: Monday, July 18, 2005 12:00 PM
Subject: Re: [Asterisk-java-users] RE: Asterisk-java-users digest, Vol
1#52 - 2 msgs
Hi,
> WARNING: Uncaught exception in Thread AGIServer-TaskThread-0
> java.lang.IncompatibleClassChangeError
> at com.dov.TrataAGI.getNumber(TrataAGI.java:72)
> at com.dov.TrataAGI.service(TrataAGI.java:22)
> at
>
net.sf.asterisk.fastagi.AGIConnectionHandler.run(AGIConnectionHandler.jav=
a:1
> 02)
> at
> net.sf.asterisk.util.ThreadPool$TaskThread.run(ThreadPool.java:164)
without having a look at this in detail a IncompatibleClassChangeError
sounds like you didn't compile your classes against the version of
Asterisk-Java that you are now running.
Compile your .java files again using the same asterisk-java.jar you will
later use when running the application.
=3DStefan
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=3Dick
_______________________________________________
Asterisk-java-users mailing list
Ast...@li...
https://lists.sourceforge.net/lists/listinfo/asterisk-java-users
|