Re: [Asterisk-java-users] AGI commands not worked in Thread class
Brought to you by:
srt
From: Stefan R. <ste...@re...> - 2008-06-11 15:02:14
|
Hi, > I have the situation in my project that needs to run thread for > getting DTMF input dynamically. So I have created a new thread and > started it from "service" method of the class which extends > BaseAgiScript. But AGI commands are not worked in the thread class. I > got the exception as Generally it is not recommended to spawn your own threads for AGI scripts. If you still can't avoid it you can pass around the AgiChannel object and call its methods directly rather than using the corresponding methods of AgiScript. =Stefan |