Re: [Asterisk-java-users] fastagi output in dialplan
Brought to you by:
srt
From: Gopal k. <gop...@pe...> - 2008-03-08 07:00:46
|
Hi, Thanks for the reply. Can i have any sample for that? Thanks On Fri, Mar 7, 2008 at 12:19 AM, Martin Smith <ma...@be...> wrote: > Definitely possible. Try it! > > > Martin Smith, Systems Developer > ma...@be... > Bureau of Economic and Business Research > University of Florida > (352) 392-0171 Ext. 221 > > > ------------------------------ > *From:* ast...@li... [mailto: > ast...@li...] *On Behalf Of *Gopal > krishnan > *Sent:* Thursday, March 06, 2008 8:12 AM > *To:* ast...@li... > *Subject:* Re: [Asterisk-java-users] fastagi output in dialplan > > Hi Martin, > > I would like to fetch a mysql value from my asterisk java program, and > that value i need to get in dialplan like as one below, > > exten => 1000,1,Agi(agi://localhost/hello.agi) > <in the java program for example user=john> > exten => 1000,2,Set(a=${user}) > > Is it possible like the one above. > > On Wed, Mar 5, 2008 at 8:21 PM, Martin Smith <ma...@be...> wrote: > > > Hello Gopal, > > > > If you just need some basic information or a flag to send back, you can > > set a channel variable. See > > http://www.voip-info.org/wiki-Asterisk+variables for an explanation of > > the channel variables, and see > > http://asterisk-java.org/0.3.1/apidocs/org/asteriskjava/fastagi/command/SetVariableCommand.html for > > the documentation in AJ to set them. > > > > If you want to go beyond that (and anything beyond that, in my opinion, > > gets messy in the dialplan), you'll have to resort to SQL or wait until > > Asterisk AGI gets more advanced. > > > > Cheers, > > > > > > Martin Smith, Systems Developer > > ma...@be... > > Bureau of Economic and Business Research > > University of Florida > > (352) 392-0171 Ext. 221 > > > > > > ------------------------------ > > *From:* ast...@li... [mailto: > > ast...@li...] *On Behalf Of *Gopal > > krishnan > > *Sent:* Wednesday, March 05, 2008 9:01 AM > > *To:* ast...@li... > > *Subject:* [Asterisk-java-users] fastagi output in dialplan > > > > Hi, > > > > I am using fastagi to initiate a application in java. for example if > > i dial a number i can able to reach a java program by fastagi > > exten => 1000,1,Agi(agi://localhost/hello.agi) > > > > and if need some variable that needs to be pass to java program also I > > can, by > > exten => 1000,1,Agi(agi://localhost/hello.agi?user=john) > > > > but what i am looking for is once I entered into Java program is it > > possible that I can give some output to my asterisk dialplan? > > > > Please assist me to goahead with this. > > > > -- > > Thank you with regards, > > Gopal, > > PeopleTech Systems Private Limited > > www.peopletech.co.in > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > -- > Thank you with regards, > Gopal, > PeopleTech Systems Private Limited > www.peopletech.co.in > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Thank you with regards, Gopal, PeopleTech Systems Private Limited www.peopletech.co.in |