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-requ...@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-requ...@lists.freeswitch.org > > You can reach the person managing the list at > freeswitch-users-ow...@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_li...@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-8d83417ad...@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 <eggh...@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: > <ff2539090904211351y7d54b773n293a9c50e37a3...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > On Tue, Apr 21, 2009 at 5:47 PM, Mathieu Rene <mrene_li...@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 > > > http://www.freeswitch.org > > > > > > _______________________________________________ > > 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 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090421/60f65aaa/attachment-0001.html > > ------------------------------ > > Message: 3 > Date: Tue, 21 Apr 2009 15:51:46 -0500 > From: Yossi Neiman <freeswi...@cartissolutions.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: <49ee31e2.10...@cartissolutions.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I'm not sure what is meant by this. It's been ages since I did anything > with Asterisk so I grow senile. But shouldn't you just be able to use > django as your framework and bring the FS functionality into your > specific app (or into django if django supports modules) ? > > One possibility is for your web app to interface with FS's event socket > or similar method. > > Sorry I can't be of much more assistance... > > > -- > Yossi Neiman > Cartis Solutions, Inc. > http://www.cartissolutions.com > > > 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: 4 > Date: Tue, 21 Apr 2009 15:55:42 -0500 > From: Yossi Neiman <freeswi...@cartissolutions.com> > Subject: Re: [Freeswitch-users] Experience with libpri? > To: freeswitch-users@lists.freeswitch.org > Message-ID: <49ee32ce.4030...@cartissolutions.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I recently converted our last Asterisk system to FreeSWITCH about a week > and a half ago. I have an A101D card on the machine which was run as > zaptel for Asterisk. I am currently using wanpipe 3.3.16 in TDM API > mode (no more need for 1000 jiffies a second) and libpri 1.4.9 on my > system. My PRI is NI2 cpe. I have experienced an issue which (to the > best of my knowledge) is due to the wanpipe drivers in TDM API mode and > not specific to libpri: I have lost my D-channel twice so far. > > Otherwise, the system works better than Asterisk ever did. I'm just > waiting for the fix from Sangoma. > > -- > Yossi Neiman > Cartis Solutions, Inc. > http://www.cartissolutions.com > > > > > > ------------------------------ > > Message: 5 > Date: Tue, 21 Apr 2009 15:55:50 -0500 > From: Anthony Minessale <anthony.miness...@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: > <191c3a030904211355q31416fak2f6007c2654e0...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > try > http://wiki.freeswitch.org/wiki/Mod_event_socket > > On Tue, Apr 21, 2009 at 2:13 PM, technologyinspired < > technologyinspi...@gmail.com> 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 > > > > > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > > AIM: anthm > MSN:anthony_miness...@hotmail.com <msn%3aanthony_miness...@hotmail.com> < > msn%3aanthony_miness...@hotmail.com<msn%253aanthony_miness...@hotmail.com> > > > GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com<paypal%3aanthony.miness...@gmail.com> > <paypal%3aanthony.miness...@gmail.com<paypal%253aanthony.miness...@gmail.com> > > > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:8...@conference.freeswitch.org <sip%3a...@conference.freeswitch.org> < > sip%3a...@conference.freeswitch.org<sip%253a...@conference.freeswitch.org> > > > iax:gu...@conference.freeswitch.org/888 > googletalk:conf+...@conference.freeswitch.org<googletalk%3aconf%2b...@conference.freeswitch.org> > <googletalk%3aconf%2b...@conference.freeswitch.org<googletalk%253aconf%252b...@conference.freeswitch.org> > > > pstn:213-799-1400 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090421/5958024b/attachment-0001.html > > ------------------------------ > > Message: 6 > Date: Tue, 21 Apr 2009 17:57:39 -0300 > From: Jo?o Mesquita <jmesqu...@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: <3a98b0e9-307a-4a6f-bbd2-2f4d782ca...@gmail.com> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > On Apr 21, 2009, at 4: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? > ESL is the answer to your question. Take a look at the wiki. There is > a Python binding for it as well. > > > > 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. > Ok, I don't see a problem there ... > > > > > > > > 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? > Carefull with Django + FS. You could run over the problem that, since > FS is multi domain, you might want to have a SaaS sometime and Django > does not connect to multiple DBs with its native ORM. What kind of > pointers are you looking for? > > > > > > > > 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 > > > Jmesquita > > > > ------------------------------ > > Message: 7 > Date: Tue, 21 Apr 2009 15:59:14 -0500 > From: Brian West <br...@freeswitch.org> > Subject: Re: [Freeswitch-users] getting statistics from core db > through esl interface > To: freeswitch-users@lists.freeswitch.org > Message-ID: <3236ca52-f590-408a-843d-c16bf1f8f...@freeswitch.org> > Content-Type: text/plain; charset="us-ascii" > > Are you going to donate the complete module to the collectd project? > > /b > > On Apr 21, 2009, at 8:52 AM, Leon de Rooij wrote: > > > Thanks, I know that's possible, but I want to get the amount of > > channels per profile (and even seperated inbound/outbound), not a > > total of all channels on all profiles combined.. > > > > regards, > > > > Leon > > Brian West > br...@freeswitch.org > > -- Meet us at ClueCon! http://www.cluecon.com > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090421/b4d4de91/attachment.html > > ------------------------------ > > _______________________________________________ > 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 > > > End of Freeswitch-users Digest, Vol 34, Issue 123 > ************************************************* >
_______________________________________________ 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