Re: [Asterisk-java-users] FastAGI - creation of newAGIScriptinstance
Brought to you by:
srt
From: Alex <ab...@ga...> - 2005-09-28 20:55:27
|
Stefan: Thank you very much for taking the time to answer. I understand what you are saying, but inside the service method, I would be having (for instance) a list of "active calls" in which I would have to store the request and channel objects (received by the service method). And then, how do I play something in a given call? I'm asking this because the methods to answer/play/hangup... in version 0.2 doesn't have the channel parameter anymore. I've already tried to create a thread for each call, inside the service method, and when I issue any of the answer/play/hangup... methods, I get this error message: "Trying to send command from an invalid thread" Looks like AGIConnectionHandler.getChannel() is returning null in that case. Thanks again, Alejandro |