From: Rounak S. <rou...@gm...> - 2013-07-22 15:28:20
|
Hii, Actually I am using googleTTS.agi to play voice. So I have now two agis.One which handles the incoming-call and second the googletts.agi Though I am able to avhieve what I wanted by setting channel variables I wonder if there is a better way to do it. What about using exec command?will it work. On Sat, Jul 20, 2013 at 9:09 PM, Yves A. <yv...@gm...> wrote: > with that little info given it is hard to see, what your objective is... > but it seems quite complicated, what you are doing... > why two agi`s ? > anyways... to access variables that have the scope beyond just the current > call make them "static" (java) or, if you want to > use "static" variables in your dialplan, make them "global"... see > asterisk-reference / docs > but static variables always have the disadvantage, that if parallel calls > occur, each agi may be influencing the value at the > same time which in turn may result in unpredictable behaviour... > i am sure, there exist better ways to solve your problem... if i only > knew, what you wish to do.... > > yves > > > > Am 20.07.2013 10:01, schrieb Rounak Saha: > > Hii everyone, > I have my dial plan like > [outgoing-call] > exten=>100,1,AGI(agi://127.0.0.1/*hello1*.agi?count=${var1}) > exten=>100,2,AGI(agi://127.0.0.2/*hello2*.agi?count=${var1}) > exten=>100,3,GOTO(outgoing-call,100,1) > > the hello1.agi is incrementing var1 everytime and will hangup once its > greater than 4. > > In my hello1.agi I am downloading some data(list of strings) from my > database.And I want to use that data in all the calls. > Write now once I am out of AGI(hello1.agi) I am unable to access that data > the next time. > Is there a way that I will be able to access the data the next time? > > > > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today!http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Asterisk-java-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |