Re: [Asterisk-java-users] FastAGI and DeadAGI
Brought to you by:
srt
From: Stefan R. <ste...@re...> - 2008-05-09 14:56:53
|
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 -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |