Thread: [Asterisk-java-users] FastAGI and DeadAGI
Brought to you by:
srt
From: chetherston m. <mil...@gm...> - 2008-05-09 13:57:27
|
Hello All, I have to ask again because a still can´t understand (sorry guys), i have to do some billing routines after the calls hangup, the thing is i used php agi with the DeadAGI command and works fine, but now the volume of operations are growing and i like java more... anyway i happyly found asterisk-java and after i did some tests i realize that i can use fastAGI + deadagi to call the agi and a sucefully get my routines work after the hagup. My dial plan is something like this: DeadAgi(agi://localhost/hello.agi) Is there any kind of problem realated to performance using the FastAGI like this? Anyone could give me some adivice? Thanks |
From: Stefan R. <ste...@re...> - 2008-05-09 14:10:59
Attachments:
signature.asc
|
Hi, I've never used DeadAgi for myself but I don't see a perfomance issue there. =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 |
From: chetherston m. <mil...@gm...> - 2008-05-09 14:13:53
|
Stefan, How do you think is the better way to perform some actions after the call hangup? I´m using one simples java-agi script that send Dial command to the server? Thanks, On 5/9/08, Stefan Reuter <ste...@re...> wrote: > > Hi, > > I've never used DeadAgi for myself but I don't see a perfomance issue > there. > > =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 > > > ------------------------------------------------------------------------- > 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 > > > |
From: Stefan R. <ste...@re...> - 2008-05-09 14:19:08
Attachments:
signature.asc
|
chetherston miles wrote: > How do you think is the better way to perform some actions after the > call hangup? I´m using one simples java-agi script that send Dial > command to the server? Why do you use an AGI for the dial instead of just the dialplan? If you want to collect data for accounting you can also use the Manager API. =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 |
From: chetherston m. <mil...@gm...> - 2008-05-09 14:23:55
|
Stefan, 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? 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? Thanks, On 5/9/08, Stefan Reuter <ste...@re...> wrote: > > chetherston miles wrote: > > How do you think is the better way to perform some actions after the > > call hangup? I´m using one simples java-agi script that send Dial > > command to the server? > > Why do you use an AGI for the dial instead of just the dialplan? > If you want to collect data for accounting you can also use the Manager > API. > > =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 > > > ------------------------------------------------------------------------- > 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 > > > |
From: Stefan R. <ste...@re...> - 2008-05-09 14:56:53
Attachments:
signature.asc
|
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 |
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 > |
From: Johan S. <js...@sv...> - 2008-05-15 06:41:57
|
Hi! Need some help from you fellows, I'm out of ideas right now. Do you know what could be going on ? I get this (see log below) in my log4J in my project... had my system running over night and showed this strange behaviour. :-) My system is answering 3 simultanious calls, or less, and doing some data processing then hanging up. Asterisk-java events like: Adding channel, removing channel gives me multiple of lines from many different daemonpools in my log. In this line Zap/6-1 (number....number) - what does these following parenthesis with numbers mean? My code for this is simply: public class Answer extends BaseAgiScript { public Answer() { // nothing to setup... } public void service(AgiRequest request, AgiChannel agiChannel) { try { AlarmHandler handler = new AlarmHandler(); handler.service(request, agiChannel); handler = null; } catch (InvalidPropertiesFormatException ivfe ) { // TODO: handle exception }catch (IOException ie) { // TODO: handle exception } } } /Johan LOG EXTRACTS INFO | jvm 3 | 2008/08/15 08:20:54 | 13728279 [Asterisk-Java DaemonPool-253-thread-1] [ChannelManager] INFO - Adding channel Zap/6-1(1218781254.19453) INFO | jvm 3 | 2008/08/15 08:20:54 | 13728280 [Asterisk-Java DaemonPool-252-thread-1] [ChannelManager] INFO - Adding channel Zap/6-1(1218781254.19453) INFO | jvm 3 | 2008/08/15 08:20:54 | 13728282 [Asterisk-Java DaemonPool-251-thread-1] [ChannelManager] INFO - Adding channel Zap/6-1(1218781254.19453) INFO | jvm 3 | 2008/08/15 08:20:54 | 13728283 [Asterisk-Java DaemonPool-250-thread-1] [ChannelManager] INFO - Adding channel Zap/6-1(1218781254.19453) INFO | jvm 3 | 2008/08/15 08:20:54 | 13728285 [Asterisk-Java DaemonPool-249-thread-1] [ChannelManager] INFO - Adding channel Zap/6-1(1218781254.19453) INFO | jvm 3 | 2008/08/15 08:20:54 | 13728286 [Asterisk-Java DaemonPool-248-thread-1] [ChannelManager] INFO - Adding channel Zap/6-1(1218781254.19453) INFO | jvm 3 | 2008/08/15 08:20:54 | 13728287 [Asterisk-Java DaemonPool-247-thread-1] [ChannelManager] INFO - Adding channel Zap/6-1(1218781254.19453) INFO | jvm 3 | 2008/08/15 08:20:54 | 13728288 [Asterisk-Java DaemonPool-246-thread-1] [ChannelManager] INFO - Adding channel Zap/6-1(1218781254.19453) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730135 [Asterisk-Java DaemonPool-211-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730158 [Asterisk-Java DaemonPool-201-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730158 [Asterisk-Java DaemonPool-202-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730135 [Asterisk-Java DaemonPool-212-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730159 [Asterisk-Java DaemonPool-200-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730135 [Asterisk-Java DaemonPool-213-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730161 [Asterisk-Java DaemonPool-199-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730135 [Asterisk-Java DaemonPool-214-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730162 [Asterisk-Java DaemonPool-198-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730163 [Asterisk-Java DaemonPool-197-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730135 [Asterisk-Java DaemonPool-216-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730165 [Asterisk-Java DaemonPool-196-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730135 [Asterisk-Java DaemonPool-217-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730171 [Asterisk-Java DaemonPool-195-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730135 [Asterisk-Java DaemonPool-218-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730172 [Asterisk-Java DaemonPool-194-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730135 [Asterisk-Java DaemonPool-219-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730173 [Asterisk-Java DaemonPool-193-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730135 [Asterisk-Java DaemonPool-220-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730177 [Asterisk-Java DaemonPool-192-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730135 [Asterisk-Java DaemonPool-221-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730178 [Asterisk-Java DaemonPool-191-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730135 [Asterisk-Java DaemonPool-223-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) ...... INFO | jvm 3 | 2008/08/15 08:20:56 | 13730359 [Asterisk-Java DaemonPool-24-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730359 [Asterisk-Java DaemonPool-23-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730360 [Asterisk-Java DaemonPool-22-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730361 [Asterisk-Java DaemonPool-21-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730363 [Asterisk-Java DaemonPool-20-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730363 [Asterisk-Java DaemonPool-19-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730364 [Asterisk-Java DaemonPool-18-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730365 [Asterisk-Java DaemonPool-17-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730365 [Asterisk-Java DaemonPool-16-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730366 [Asterisk-Java DaemonPool-15-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730366 [Asterisk-Java DaemonPool-14-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730367 [Asterisk-Java DaemonPool-13-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730367 [Asterisk-Java DaemonPool-12-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730368 [Asterisk-Java DaemonPool-11-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730368 [Asterisk-Java DaemonPool-10-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730369 [Asterisk-Java DaemonPool-9-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730370 [Asterisk-Java DaemonPool-8-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730371 [Asterisk-Java DaemonPool-7-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730371 [Asterisk-Java DaemonPool-6-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) INFO | jvm 3 | 2008/08/15 08:20:56 | 13730372 [Asterisk-Java DaemonPool-5-thread-1] [ChannelManager] INFO - Removing channel Zap/1-1 due to hangup (NOTDEFINED) |