Here's an idea... Rather than writing your own multi-thread socket server for use with FastAGI, has anyone tried to use an Apache web server instead? After all, it does all that for you. I just gave it a shot, but Asterisk tries to send all the agi params to the web server, which it doesn't like it... [Fri Aug 18 12:25:28 2006] [error] [client xxx.yyy.141.162] Invalid URI in request agi_network: yes Doug
It is an valid option, but you have to build a HTTP header in your request to your web server, which CGI programs or Java servlets on web server could interpret your request from Asterisk. Tielin>>> dgarstang@oneeighty.com 08/18/06 11:28 AM >>>Here's an idea... Rather than writing your own multi-thread socket server for use with FastAGI, has anyone tried to use an Apache web server instead? After all, it does all that for you. I just gave it a shot, but Asterisk tries to send all the agi params to the web server, which it doesn't like it... [Fri Aug 18 12:25:28 2006] [error] [client xxx.yyy.141.162] Invalid URI in request agi_network: yes Doug _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
On 8/18/06, Douglas Garstang <dgarstang@oneeighty.com> wrote:> Here's an idea... > > Rather than writing your own multi-thread socket server for use with FastAGI, has anyone tried to use an Apache web server instead? After all, it does all that for you. I just gave it a shot, but Asterisk tries to send all the agi params to the web server, which it doesn't like it... >I have a multitreaded FastAGI server written in Erlang, http://erlang.org, which lets You do Your call control in Erlang, (as God intended it). Erlang gives You , hot code loading, a distributed realtime database manager, and other cool carrier grade features. It should be possible to call Your Python AGI script from that. It is available on http://tools.assembla.com/erlast/ Let me know if You need any help using it Anders Nygren
Thanks Anders. Couldn't get erlang to compile. :(> -----Original Message----- > From: Anders Nygren [mailto:anders.nygren@gmail.com] > Sent: Friday, August 18, 2006 3:02 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Apache for FastAGI > > > On 8/18/06, Douglas Garstang <dgarstang@oneeighty.com> wrote: > > Here's an idea... > > > > Rather than writing your own multi-thread socket server for > use with FastAGI, has anyone tried to use an Apache web > server instead? After all, it does all that for you. I just > gave it a shot, but Asterisk tries to send all the agi params > to the web server, which it doesn't like it... > > > > I have a multitreaded FastAGI server written in Erlang, > http://erlang.org, which > lets You do Your call control in Erlang, (as God intended it). > > Erlang gives You , hot code loading, a distributed realtime > database manager, > and other cool carrier grade features. > > It should be possible to call Your Python AGI script from that. > > It is available on http://tools.assembla.com/erlast/ > > Let me know if You need any help using it > > Anders Nygren > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
I'm not sure there's much point in developing it in Erlang anyways. I'll usually do a quick look and see how popular a language or technology is, in the job market before I spend time and effort on learning it. A search on dice for Erlang gets about 3 results. Doug. -----Original Message----- From: Anders Nygren [mailto:anders.nygren@gmail.com] Sent: Fri 8/18/2006 3:01 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Cc: Subject: Re: [asterisk-users] Apache for FastAGI On 8/18/06, Douglas Garstang <dgarstang@oneeighty.com> wrote: > Here's an idea... > > Rather than writing your own multi-thread socket server for use with FastAGI, has anyone tried to use an Apache web server instead? After all, it does all that for you. I just gave it a shot, but Asterisk tries to send all the agi params to the web server, which it doesn't like it... > I have a multitreaded FastAGI server written in Erlang, http://erlang.org, which lets You do Your call control in Erlang, (as God intended it). Erlang gives You , hot code loading, a distributed realtime database manager, and other cool carrier grade features. It should be possible to call Your Python AGI script from that. It is available on http://tools.assembla.com/erlast/ Let me know if You need any help using it Anders Nygren _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
> -----Original Message----- > From: Tzafrir Cohen [mailto:tzafrir.cohen@xorcom.com] > Sent: Sunday, August 20, 2006 5:08 PM > To: asterisk-users@lists.digium.com > Subject: Re: [asterisk-users] Apache for FastAGI > > > On Sun, Aug 20, 2006 at 04:18:11PM -0600, Douglas Garstang wrote: > > I'm not sure there's much point in developing it in Erlang anyways. > > I'll usually do a quick look and see how popular a language or > > technology is, in the job market before I spend time and effort on > > learning it. A search on dice for Erlang gets about 3 results. > > Thanks troll. This post of yours actually made me look into > erlang, and > it looks interesting.It's called time management.
Douglas Garstang a ?crit :>Here's an idea... > >Rather than writing your own multi-thread socket server for use with FastAGI, has anyone tried to use an Apache web server instead? After all, it does all that for you. I just gave it a shot, but Asterisk tries to send all the agi params to the web server, which it doesn't like it... > >Apache is an HTTP server, not a generic TCP server. Plus, using Perl's Net::Server is really easy. Besides, if you don't need to use AGI on a separate box, you can use perperl and get very fast execution times without having to worry about using a server at all. Assuming you use Perl for AGI scripting, which you should be doing anyways ;-) Cheers, Jean-Michel.
> -----Original Message----- > From: Jean-Michel Hiver [mailto:jhiver@ykoz.net] > Sent: Tuesday, August 22, 2006 2:11 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Cc: ringwas@acm.org > Subject: Re: [asterisk-users] Apache for FastAGI > > > Douglas Garstang a ?crit : > > >Here's an idea... > > > >Rather than writing your own multi-thread socket server for > use with FastAGI, has anyone tried to use an Apache web > server instead? After all, it does all that for you. I just > gave it a shot, but Asterisk tries to send all the agi params > to the web server, which it doesn't like it... > > > > > Apache is an HTTP server, not a generic TCP server. > > Plus, using Perl's Net::Server is really easy. > > Besides, if you don't need to use AGI on a separate box, you can use > perperl and get very fast execution times without having to > worry about > using a server at all. > > Assuming you use Perl for AGI scripting, which you should be doing > anyways ;-)*cough* You made a typo... you really meant to say 'python'. :P Doug.
I'm not sure how one would build a HTTP header on the client side, given that all you have to work with is a single line entry in extensions.conf.> -----Original Message----- > From: Tielin Xu [mailto:TIELXU01@noa.nintendo.com] > Sent: Friday, August 18, 2006 12:41 PM > To: asterisk-users@lists.digium.com > Subject: Re: [asterisk-users] Apache for FastAGI > > > It is an valid option, but you have to build a HTTP header in your > request to your web server, which CGI programs or Java servlets on web > server could interpret your request from Asterisk. > > Tielin > >>> dgarstang@oneeighty.com 08/18/06 11:28 AM >>> > Here's an idea... > > Rather than writing your own multi-thread socket server for use with > FastAGI, has anyone tried to use an Apache web server instead? After > all, it does all that for you. I just gave it a shot, but > Asterisk tries > to send all the agi params to the web server, which it doesn't like > it... > > [Fri Aug 18 12:25:28 2006] [error] [client xxx.yyy.141.162] > Invalid URI > in request agi_network: yes > > Doug > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Personally I will build multi-thread server to work as AGI server. Apache is an option if you know how to implement programs on web server, but know how to build your server. You can hardcode the HTTP header into a global variable in your dialplan, and send the header to Apache first, then follow your dynamic agi request.>>> dgarstang@oneeighty.com 08/22/06 7:59 AM >>>I'm not sure how one would build a HTTP header on the client side, given that all you have to work with is a single line entry in extensions.conf.> -----Original Message----- > From: Tielin Xu [mailto:TIELXU01@noa.nintendo.com] > Sent: Friday, August 18, 2006 12:41 PM > To: asterisk-users@lists.digium.com > Subject: Re: [asterisk-users] Apache for FastAGI > > > It is an valid option, but you have to build a HTTP header in your > request to your web server, which CGI programs or Java servlets onweb> server could interpret your request from Asterisk. > > Tielin > >>> dgarstang@oneeighty.com 08/18/06 11:28 AM >>> > Here's an idea... > > Rather than writing your own multi-thread socket server for use with > FastAGI, has anyone tried to use an Apache web server instead? After > all, it does all that for you. I just gave it a shot, but > Asterisk tries > to send all the agi params to the web server, which it doesn't like > it... > > [Fri Aug 18 12:25:28 2006] [error] [client xxx.yyy.141.162] > Invalid URI > in request agi_network: yes > > Doug > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users