Re: [Asterisk-java-users] Keeping AgiCahnnel alive for a long time.
Brought to you by:
srt
From: Murthy G. <mga...@nt...> - 2014-01-30 18:58:36
|
Hi Artur We faced a similar situation and successfully handled with the channel variable TIMEOUT(absolute). http://www.voip-info.org/wiki/view/Asterisk+cmd+AbsoluteTimeout Hope this helps ________________________________ From: Artur Tamazyan [mailto:ar...@ca...] Sent: Thursday, January 30, 2014 4:40 AM To: ast...@li... Subject: [Asterisk-java-users] Keeping AgiCahnnel alive for a long time. Hi guys, In our application we want to be able to send commands to a specific asterisk channel during a long period of time. It's a long-lasting call that we want to manipulate (may last for few hours). One of ways of approaching it was to make an AGI call from asterisk which will create an AgiScript that will hold an AgiChannel instance that we'll use to send our commands. I know that the channel is closed once AgiScript#serve() method is finished. As a workaround we pause the serve()'s thread to keep AgiChannel open as long as we need. Should we look out for any timeouts that will eventually close the channel automatically? Do we need to send at least NoOp periodiacally to keep it open? Overall this doesn't look like a good solution anyway so I want to ask if we have any other options to achieve our goal? I can provide more info or code if needed. |