Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Freeswitch-users Digest, Vol 34, Issue 123


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
technologyinspired at ...
Guest





PostPosted: Tue Apr 21, 2009 10:36 pm    Post subject: [Freeswitch-users] Freeswitch-users Digest, Vol 34, Issue 12 Reply with quote

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 (freeswitch-users-request@lists.freeswitch.org)> wrote:
Quote:
Send Freeswitch-users mailing list submissions to
       freeswitch-users@lists.freeswitch.org (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 (freeswitch-users-request@lists.freeswitch.org)

You can reach the person managing the list at
       freeswitch-users-owner@lists.freeswitch.org (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 (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 (freeswitch-users@lists.freeswitch.org)
Message-ID: <B05D160A-2E2F-4BCE-B7B7-8D83417ADF42@avgs.ca (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:

Quote:
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 (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 (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 (freeswitch-users@lists.freeswitch.org)
Message-ID:
       <ff2539090904211351y7d54b773n293a9c50e37a3841@mail.gmail.com (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 (mrene_lists@avgs.ca)> wrote:

Quote:
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


Quote:


Mathieu

On 21-Apr-09, at 3:13 PM, technologyinspired wrote:

Quote:
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 (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 (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 <freeswitch@cartissolutions.com (freeswitch@cartissolutions.com)>
Subject: Re: [Freeswitch-users] Asterisk Fast AGI like support from
       FreeSwitch. Also mod_python + Django doc
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Message-ID: <49EE31E2.10804@cartissolutions.com (49EE31E2.10804@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:
Quote:
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 (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 <freeswitch@cartissolutions.com (freeswitch@cartissolutions.com)>
Subject: Re: [Freeswitch-users] Experience with libpri?
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Message-ID: <49EE32CE.4030609@cartissolutions.com (49EE32CE.4030609@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.minessale@gmail.com (anthony.minessale@gmail.com)>
Subject: Re: [Freeswitch-users] Asterisk Fast AGI like support from
       FreeSwitch. Also mod_python + Django doc
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Message-ID:
       <191c3a030904211355q31416fak2f6007c2654e0971@mail.gmail.com (191c3a030904211355q31416fak2f6007c2654e0971@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 <
technologyinspired@gmail.com (technologyinspired@gmail.com)> wrote:

Quote:
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 (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_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email]) <MSN%3Aanthony_minessale@hotmail.com ([email]MSN%253Aanthony_minessale@hotmail.com[/email])>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])<PAYPAL%3Aanthony.minessale@gmail.com ([email]PAYPAL%253Aanthony.minessale@gmail.com[/email])>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email]) <sip%3A888@conference.freeswitch.org ([email]sip%253A888@conference.freeswitch.org[/email])>
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])<googletalk%3Aconf%2B888@conference.freeswitch.org ([email]googletalk%253Aconf%252B888@conference.freeswitch.org[/email])>
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 <jmesquita@gmail.com (jmesquita@gmail.com)>
Subject: Re: [Freeswitch-users] Asterisk Fast AGI like support from
       FreeSwitch. Also mod_python + Django doc
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Message-ID: <3A98B0E9-307A-4A6F-BBD2-2F4D782CAAEB@gmail.com (3A98B0E9-307A-4A6F-BBD2-2F4D782CAAEB@gmail.com)>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes


On Apr 21, 2009, at 4:13 PM, technologyinspired wrote:

Quote:
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.


Quote:
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 ...


Quote:


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?


Quote:


Thanks,

Regards,
Vin
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 <brian@freeswitch.org (brian@freeswitch.org)>
Subject: Re: [Freeswitch-users] getting statistics from core db
       through esl     interface
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Message-ID: <3236CA52-F590-408A-843D-C16BF1F8FF19@freeswitch.org (3236CA52-F590-408A-843D-C16BF1F8FF19@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:

Quote:
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
brian@freeswitch.org (brian@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 (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
*************************************************
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services