Re: [Asterisk-java-users] Keeping AgiCahnnel alive for a long time.
Brought to you by:
srt
From: Yves A. <yv...@gm...> - 2014-01-30 20:52:18
|
Hi, I think, I do not understand your question... could you please explain your scenario a bit more? Holding a seperate channel for controlling another channels seems a bit overkill... so you must have special needs that I do not see abd that prevent you to go the "normal" way via AMI... yves Am 30.01.2014 13:40, schrieb Artur Tamazyan: > 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. > > > > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into actionable > security intelligence. It gives you real-time visual feedback on key > security issues and trends. Skip the complicated setup - simply import > a virtual appliance and go from zero to informed in seconds. > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |