Thread: [Asterisk-java-users] HangupAction throwing TimeoutException
Brought to you by:
srt
From: Edu <ast...@ba...> - 2006-01-10 18:30:10
|
Hi folks! I have some problems with HangupAction. If I send this Action it throws me a TimeoutException. Asterisk hangs up correctly and I've tried different and very long timeout values with no luck. It doesn't happen in all the code, for example, if I do a simple program with managerConnection.sendAction(new HangupAction("fakeChannel",90000); it returns a response with "No such channel" message. I'm using Asterisk-java 0.2 and Asterisk Bussines Edition ABE-A.1 |
From: Stefan R. <sr...@re...> - 2006-01-10 20:23:47
|
Hi, the problem results from sending actions being sent from the event handler thread which is not allowed and causes a lock up finally resulting in the timeout. Search the archives for details and have a look at the solution proposed by Brett Sutton: http://sourceforge.net/mailarchive/message.php?msg_id=3D14224869 Hope that helps, Stefan On Tue, 2006-01-10 at 19:32 +0100, Edu wrote: > Hi folks! >=20 > I have some problems with HangupAction. If I send this Action it throws m= e a=20 > TimeoutException. Asterisk hangs up correctly and I've tried different an= d=20 > very long timeout values with no luck. > It doesn't happen in all the code, for example, if I do a simple program = with=20 >=20 > managerConnection.sendAction(new HangupAction("fakeChannel",90000); >=20 > it returns a response with "No such channel" message. >=20 > I'm using Asterisk-java 0.2 and Asterisk Bussines Edition ABE-A.1 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Jesse L. <je...@jg...> - 2006-01-10 22:02:55
|
If you need to send an action from an event, create a thread to do it. Let me know if you need an example. Thanks. J Stefan Reuter wrote: >Hi, > >the problem results from sending actions being sent from the event >handler thread which is not allowed and causes a lock up finally >resulting in the timeout. >Search the archives for details and have a look at the solution proposed >by Brett Sutton: >http://sourceforge.net/mailarchive/message.php?msg_id=14224869 > >Hope that helps, >Stefan > >On Tue, 2006-01-10 at 19:32 +0100, Edu wrote: > > >>Hi folks! >> >>I have some problems with HangupAction. If I send this Action it throws me a >>TimeoutException. Asterisk hangs up correctly and I've tried different and >>very long timeout values with no luck. >>It doesn't happen in all the code, for example, if I do a simple program with >> >>managerConnection.sendAction(new HangupAction("fakeChannel",90000); >> >>it returns a response with "No such channel" message. >> >>I'm using Asterisk-java 0.2 and Asterisk Bussines Edition ABE-A.1 >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >>_______________________________________________ >>Asterisk-java-users mailing list >>Ast...@li... >>https://lists.sourceforge.net/lists/listinfo/asterisk-java-user >> >s > > |
From: Eduard M. <ed...@ba...> - 2006-01-11 11:42:22
|
Thank you Stefan and Jesse, I will try with different threads. And thanks f= or=20 this API, great job! :) El Martes, 10 de Enero de 2006 21:17, Stefan Reuter escribi=F3: > Hi, > > the problem results from sending actions being sent from the event > handler thread which is not allowed and causes a lock up finally > resulting in the timeout. > Search the archives for details and have a look at the solution proposed > by Brett Sutton: > http://sourceforge.net/mailarchive/message.php?msg_id=3D14224869 > > Hope that helps, > Stefan > > On Tue, 2006-01-10 at 19:32 +0100, Edu wrote: > > Hi folks! > > > > I have some problems with HangupAction. If I send this Action it throws > > me a TimeoutException. Asterisk hangs up correctly and I've tried > > different and very long timeout values with no luck. > > It doesn't happen in all the code, for example, if I do a simple program > > with > > > > managerConnection.sendAction(new HangupAction("fakeChannel",90000); > > > > it returns a response with "No such channel" message. > > > > I'm using Asterisk-java 0.2 and Asterisk Bussines Edition ABE-A.1 > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files for problems? Stop! Download the new AJAX search engine that > > makes searching your log files as easy as surfing the web. DOWNLOAD > > SPLUNK! http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |