Thread: [Asterisk-java-users] Agi scripts on hungup extension?
Brought to you by:
srt
From: Edu <jav...@ba...> - 2006-04-19 17:14:46
|
Hi! I'm working on some AGI scripts, and I was wondering I can use the hangup extension (h) to run an AGI script for saving some info in a database, but it seems to be impossible, whien I hang up and the extension is executed, I get the following error. There is some way to run the script elsewere? If not, I can mix AGI script with manager api to do this... 19-abr-2006 19:07:28 net.sf.asterisk.util.impl.JavaLoggingLog error GRAVE: AGIException while handling request net.sf.asterisk.fastagi.AGIHangupException: Channel was hung up. at net.sf.asterisk.fastagi.impl.AGIReaderImpl.readReply(AGIReaderImpl.java:103) at net.sf.asterisk.fastagi.impl.AGIChannelImpl.sendCommand(AGIChannelImpl.java:82) at net.sf.asterisk.fastagi.AGIConnectionHandler.run(AGIConnectionHandler.java:117) at net.sf.asterisk.util.ThreadPool$TaskThread.run(ThreadPool.java:167) |
From: Thameem A. <tha...@ya...> - 2006-04-19 23:09:16
|
Why not using manager and getting the Hangup event? Thanks, -Thameem Edu <jav...@ba...> wrote: Hi! I'm working on some AGI scripts, and I was wondering I can use the hangup extension (h) to run an AGI script for saving some info in a database, but it seems to be impossible, whien I hang up and the extension is executed, I get the following error. There is some way to run the script elsewere? If not, I can mix AGI script with manager api to do this... 19-abr-2006 19:07:28 net.sf.asterisk.util.impl.JavaLoggingLog error GRAVE: AGIException while handling request net.sf.asterisk.fastagi.AGIHangupException: Channel was hung up. at net.sf.asterisk.fastagi.impl.AGIReaderImpl.readReply(AGIReaderImpl.java:103) at net.sf.asterisk.fastagi.impl.AGIChannelImpl.sendCommand(AGIChannelImpl.java:82) at net.sf.asterisk.fastagi.AGIConnectionHandler.run(AGIConnectionHandler.java:117) at net.sf.asterisk.util.ThreadPool$TaskThread.run(ThreadPool.java:167) ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Eduard M. <ed...@ba...> - 2006-04-20 10:52:43
|
I know I can use it, but I don't like to mix agi and manager only for this= =20 reason. Regards,=20 Edu El Jueves, 20 de Abril de 2006 01:09, Thameem Ansari escribi=F3: > Why not using manager and getting the Hangup event? > > Thanks, > -Thameem > > Edu <jav...@ba...> wrote: Hi! I'm working on some AGI > scripts, and I was wondering I can use the hangup extension (h) to run an > AGI script for saving some info in a database, but it seems to be > impossible, whien I hang up and the extension is executed, I get the > following error. There is some way to run the script elsewere? If not, I > can mix AGI script with manager api to do this... > > 19-abr-2006 19:07:28 net.sf.asterisk.util.impl.JavaLoggingLog error > GRAVE: AGIException while handling request > net.sf.asterisk.fastagi.AGIHangupException: Channel was hung up. > at > net.sf.asterisk.fastagi.impl.AGIReaderImpl.readReply(AGIReaderImpl.java:1= 03 >) at > net.sf.asterisk.fastagi.impl.AGIChannelImpl.sendCommand(AGIChannelImpl.ja= va >:82) at > net.sf.asterisk.fastagi.AGIConnectionHandler.run(AGIConnectionHandler.jav= a: >117) at net.sf.asterisk.util.ThreadPool$TaskThread.run(ThreadPool.java:167) > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com |
From: Stefan R. <sr...@re...> - 2006-04-20 11:10:21
Attachments:
signature.asc
|
Eduard Martinez wrote: >> Edu <jav...@ba...> wrote: Hi! I'm working on some AGI >> scripts, and I was wondering I can use the hangup extension (h) to run= an >> AGI script for saving some info in a database, but it seems to be >> impossible, whien I hang up and the extension is executed, I get the >> following error. This should be fine as long as you dont try to send any commands to Asterisk. If I look at the line number of your stacktrace, your problem seems to be related to Asterisk-Java not finding the correct script instance. The problem here is that Asterisk-Java tries to send that error message to the Asterisk console via VerboseCommand that throws the error here since the channel is dead. So once you fix your URL and/or mapping things should work. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... |