Re: [Asterisk-java-users] FastAGI and DeadAGI
Brought to you by:
srt
From: Andrea C. <an...@ge...> - 2008-05-14 21:17:32
|
The best things you can do is to run a AGI for the routing or for calculate the rate to use. then you dial the destination and save into chnnl variable the rate and all the other important info. At the end when the call hangup, so in h you have to call DeadAGI. for billing purpose. Regards Andrea Stefan Reuter ha scritto: > chetherston miles wrote: > >> I need to get the accesscode information from the user and calculate how >> many minutes he can talk and them collect the destination number, when >> he hangup i need to perform the billing routine for this particular >> account? Is a kind of Calling Card app? >> > > For this kind of application you can also use the "normal" AGI command > in your dialplan. Your AGI script will continue to run even if the call > has ended. This in contrast to normal scripts started by Asterisk that > are killed as soon as the call ends. > > >> Do you have same example how to do it? I´m doing just codding everything >> into the AGI and calling using DeadAGI in FastAGI but i´m very concern >> because i think the connection bw asterisk and the fastagi server i´ll >> be open until the call is hangup? >> > > You are right that the connections will stay open from start to end of > each call. > How many concurrent calls do you expect? Usually a Java server can > handle a few hundred open connections without any problems. You might > just have to increase the thread pool size used by the FastAGI server > (there is an example in the tutorial on our website). > > =Stefan > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |