Thanks to everybody for helping me. Arnaldo, Jmesquita and Anthony I think event socket or mod_even_socket will do the task for me but I suppose now I will need to change the entire program as this gives Async feature (Twisted) and probably will need to learn Twisted (at least call backs etc. I also have database connection and few configuration file to say which prompts to select and where to store the recordings etc). My current solution is a pre forking python server which accepts the control from Asterisk and than do complete applicaiton execution in Python by simplly passing the proper commands to Asterisk system. E.g. getdata or saydigit or hangup over a socket connection. I heard that FS is more stable and also feature rich so now I want to switch to FS. Is there any documentation/examples on how to integrate Django framework? Can I still use the same preforking server and send the FS specific commands using socket.send(<FS api>) and receieve the result from FS as result = socket.recv(200). Any take on this approach? Regards, Vin On Wed, Apr 22, 2009 at 2:29 AM, < freeswitch-users-request@lists.freeswitch.org> wrote:
Send Freeswitch-users mailing list submissions to freeswitch-users@lists.freeswitch.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.freeswitch.org/mailman/listinfo/freeswitch-users or, via email, send a message with subject or body 'help' to freeswitch-users-request@lists.freeswitch.org
You can reach the person managing the list at freeswitch-users-owner@lists.freeswitch.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of Freeswitch-users digest..."
Today's Topics:
1. Re: Asterisk Fast AGI like support from FreeSwitch. Also mod_python + Django doc (Mathieu Rene) 2. Re: Asterisk Fast AGI like support from FreeSwitch. Also mod_python + Django doc (Arnaldo de Moraes Pereira) 3. Re: Asterisk Fast AGI like support from FreeSwitch. Also mod_python + Django doc (Yossi Neiman) 4. Re: Experience with libpri? (Yossi Neiman) 5. Re: Asterisk Fast AGI like support from FreeSwitch. Also mod_python + Django doc (Anthony Minessale) 6. Re: Asterisk Fast AGI like support from FreeSwitch. Also mod_python + Django doc (Jo?o Mesquita) 7. Re: getting statistics from core db through esl interface (Brian West)
----------------------------------------------------------------------
Message: 1 Date: Tue, 21 Apr 2009 16:47:16 -0400 From: Mathieu Rene <mrene_lists@avgs.ca> Subject: Re: [Freeswitch-users] Asterisk Fast AGI like support from FreeSwitch. Also mod_python + Django doc To: freeswitch-users@lists.freeswitch.org Message-ID: <B05D160A-2E2F-4BCE-B7B7-8D83417ADF42@avgs.ca> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
You can use ESL (Event Socket Library) to talk to freeswitch and do the same thing as fastagi.
Check out http://wiki.freeswitch.org/wiki/Esl (it builds a native python module too!)
Mathieu
On 21-Apr-09, at 3:13 PM, technologyinspired wrote:
Hello users,
I am new to FreeSwitch. I have used Asterisk a lot but now want to use FreeSwitch. Presently I write complex Asterisk applications using Fast AGI in Python. How could I achieve the same from FreeSwitch? The main reason is that the server has heavy call load and I want to shift that load on two systems one the FreeSwitch and another the application server.
Could you also give a pointer to such an example or documentation where it says how to run FreeSwitch applications in client server mode (Fast AGI mode in Asterisk). Is there any good documentation on mod_python + Django support in FreeSwitch?
Thanks,
Regards, Vin _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
------------------------------
Message: 2 Date: Tue, 21 Apr 2009 17:51:30 -0300 From: Arnaldo de Moraes Pereira <egghunt@gmail.com> Subject: Re: [Freeswitch-users] Asterisk Fast AGI like support from FreeSwitch. Also mod_python + Django doc To: freeswitch-users@lists.freeswitch.org Message-ID: <ff2539090904211351y7d54b773n293a9c50e37a3841@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1"
On Tue, Apr 21, 2009 at 5:47 PM, Mathieu Rene <mrene_lists@avgs.ca> wrote:
You can use ESL (Event Socket Library) to talk to freeswitch and do the same thing as fastagi.
Check out http://wiki.freeswitch.org/wiki/Esl (it builds a native python module too!)
There's also the eventsocket protocol for twisted, which allows one to create inbound and outbound socket apps within the same code: http://code.google.com/p/eventsocket
Mathieu
On 21-Apr-09, at 3:13 PM, technologyinspired wrote:
Hello users,
I am new to FreeSwitch. I have used Asterisk a lot but now want to use FreeSwitch. Presently I write complex Asterisk applications using Fast AGI in Python. How could I achieve the same from FreeSwitch? The main reason is that the server has heavy call load and I want to shift that load on two systems one the FreeSwitch and another the application server.
Could you also give a pointer to such an example or documentation where it says how to run FreeSwitch applications in client server mode (Fast AGI mode in Asterisk). Is there any good documentation on mod_python + Django support in FreeSwitch?
Thanks,
Regards, Vin _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-users
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Arnaldo M Pereira