From: Ralf S. <rs...@ru...> - 2012-11-24 09:02:04
|
On Fri, Nov 23, 2012 at 04:01:37PM +0600, Vladimir wrote: > Hi everyone > > Please show example FastAGI server on pyst. Since FastAGI simply forwards all the data from standard input and standard output via a TCP socket, you should be able to drop your Pyst Code into a call from inetd on the remote machine, e.g. in /etc/inetd.conf you'd write something like 4711 stream tcp nowait root /path/to/pyst/script and then call this from asterisk with somethink like exten => s,n,AGI(agi://192.168.0.2:4711) In this way you leave the FastAGI network-specific code to inetd and you should be able to use your local AGI Pyst code unmodified on the remote server. Ralf -- Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16 Open Source Consulting www: http://www.runtux.com Reichergasse 131, A-3411 Weidling email: of...@ru... osAlliance member email: rs...@os... |