Application language to support C or C++?
Hi All, I saw the applications using FreeSwitch library can be written in JavaScript, Perl, Python and Lua but I need to use Linux C or C++ for applications, Is FreeSwitch can supported it? Where can I get the sample codes? My Linux platform is base on Fedora. Thanks a lot. Jason
Do you want to write modules in c++ for FreeSWITCH? If so then yes you can write modules in c++... If thats not what you mean please clarify. /b On Feb 2, 2009, at 8:21 PM, lee jason wrote:
Hi All,
I saw the applications using FreeSwitch library can be written in JavaScript, Perl, Python and Lua but I need to use Linux C or C+ + for applications, Is FreeSwitch can supported it? Where can I get the sample codes? My Linux platform is base on Fedora.
Thanks a lot.
Jason
FreeSwitch is written in C mainly and some things like mod_opal are written in C++, you can create your own modules in C... Grab the source and look around its pretty straight forward From: lee jason <jason@voicesession.com> Reply-To: <freeswitch-users@lists.freeswitch.org> Date: Tue, 3 Feb 2009 10:21:25 +0800 To: <freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] Application language to support C or C++? Hi All, I saw the applications using FreeSwitch library can be written in JavaScript, Perl, Python and Lua but I need to use Linux C or C++ for applications, Is FreeSwitch can supported it? Where can I get the sample codes? My Linux platform is base on Fedora. Thanks a lot. Jason _______________________________________________ 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
Depending on what you want to do, I suggest having a look at mod_event_socket: http://wiki.freeswitch.org/wiki/Mod_event_socket That module is a socket based interface that provides a vast range of options to control FreeSWITCH and its applications. Just for the record, my application is entirely written in C++ and uses FreeSWITCH as a back-end for providing PBX functionality through a combination of mod_event_socket and mod_xml_curl. Regards, Raul On Tue, 2009-02-03 at 10:21 +0800, lee jason wrote:
Hi All,
I saw the applications using FreeSwitch library can be written in JavaScript, Perl, Python and Lua but I need to use Linux C or C++ for applications, Is FreeSwitch can supported it? Where can I get the sample codes? My Linux platform is base on Fedora.
Thanks a lot.
Jason _______________________________________________ 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
Newbie with FS, currently have Asterisk servers front ended by Openser Question: I have around 400 sip remote clients, if I were to deploy FS, do I need Openser? Is there any advantage in retaining Openser? Regards
On Tue, Feb 3, 2009 at 8:20 AM, Nik Middleton <nik.middleton@noblesolutions.co.uk> wrote:
Newbie with FS, currently have Asterisk servers front ended by Openser
Question: I have around 400 sip remote clients, if I were to deploy FS, do I need Openser? Is there any advantage in retaining Openser?
If I may ask... why did you have OpenSER with your Asterisk deployment? Reason I ask is because some people do that "because Asterisk sucks" but others have a specific application or reason. What does OpenSER do for your Asterisk install? -MC
Regards
_______________________________________________ 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
Well Openser has better NAT handling than Asterisk for a start. In addition it takes the load off of Asterisk with regards to registrations. Further, I'm able to have multiple asterisk servers fronted by Openser Finally, I've numerous posts that * chokes with sip clients > 200. I couldn't afford to take the risk. But the biggest issue is with load spikes and asterisk. I've never gotten to the bottom of it, and believe me a lot of people far smarter then me have tried to figure it out. So... The more I can keep asterisk out of the mundane stuff the better. It's been said to me many times, that the way Asterisk is put together is fundamentally flawed and this really shows it's self under load. Not knocking Asterisk, it's served me well for the last 4 years. Heck I've got a book being published on it in a couple of months, but for me, I need a scalable solution, hence my interest in FS. I also don't see * going beyond 1.4. 1.6 as far as I can tell has a very low take-up rate, why ? well because they've changed how everything works to the extent that hardly anything written for 1.4 can port to 1.6. The syntax changes don't appear to serve any real purpose. So to get back to my original question, if FS can handle a significantly higher number of call setups, then perhaps I don't need OpenSer, that was the thrust of my post. Regards -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: 03 February 2009 17:08 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] OPenser <-> FS Do I need this? On Tue, Feb 3, 2009 at 8:20 AM, Nik Middleton <nik.middleton@noblesolutions.co.uk> wrote:
Newbie with FS, currently have Asterisk servers front ended by Openser
Question: I have around 400 sip remote clients, if I were to deploy FS, do I need Openser? Is there any advantage in retaining Openser?
If I may ask... why did you have OpenSER with your Asterisk deployment? Reason I ask is because some people do that "because Asterisk sucks" but others have a specific application or reason. What does OpenSER do for your Asterisk install? -MC
Regards
_______________________________________________ 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
FreeSwitch is very capable of handling high call setup loads... The question is what do you consider high setup loads? Where it is true, OpenSER/SIP/whatever its called this week can handle a much higher packet per second load then freeswitch, freeswitch on the other hand is capable of handling much more call volume then asterisk... Certain people hate when I quote numbers but I have personally deployed FreeSwitch on projects that handle (per FS Box) > 500 calls/sec (that's 2 leg calls) and in excess of concurrent calls... The real question is not can FS hang, but what at what level do you call 'high volume'... What I call high volume is a telemarketer running at 2500 calls/sec and peak concurrent channel usage in the 10,000 to 15,000 channel range K
From: Nik Middleton <nik.middleton@noblesolutions.co.uk> Subject: Re: [Freeswitch-users] OPenser <-> FS Do I need this?
----SNIP So to get back to my original question, if FS can handle a significantly higher number of call setups, then perhaps I don't need OpenSer, that was the thrust of my post. ----SNIP
If you're telling me that FS can handle the figures quoted, that's plenty enough for me. I have 5,000 lines PSTN /channels, possibly double that shortly. I need to fill all of them as quickly as possible and maintain that level for a given period of time. So I guess I'm in the upper medium end of the scale. Regards, -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ken Rice Sent: 03 February 2009 18:16 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] OPenser <-> FS Do I need this? FreeSwitch is very capable of handling high call setup loads... The question is what do you consider high setup loads? Where it is true, OpenSER/SIP/whatever its called this week can handle a much higher packet per second load then freeswitch, freeswitch on the other hand is capable of handling much more call volume then asterisk... Certain people hate when I quote numbers but I have personally deployed FreeSwitch on projects that handle (per FS Box) > 500 calls/sec (that's 2 leg calls) and in excess of concurrent calls... The real question is not can FS hang, but what at what level do you call 'high volume'... What I call high volume is a telemarketer running at 2500 calls/sec and peak concurrent channel usage in the 10,000 to 15,000 channel range K
From: Nik Middleton <nik.middleton@noblesolutions.co.uk> Subject: Re: [Freeswitch-users] OPenser <-> FS Do I need this?
----SNIP So to get back to my original question, if FS can handle a significantly higher number of call setups, then perhaps I don't need OpenSer, that was the thrust of my post. ----SNIP
_______________________________________________ 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
Lee, You also might want to take a look at some of the examples in the contrib folder in the source tree. There are several items there that use the event socket. The event socket is extremely powerful and is suitable for a wide range of applications. However, it isn't the only way to do things. You could also build an actual FreeSWITCH application like the ones found in the "mod" directory. That's a bit more involved and I don't recommend starting there unless you're C/C++ skills are well established. :) What is your application? Most likely others here have done something similar and can share with you their experiences, including what worked and what didn't work. -MC On Tue, Feb 3, 2009 at 5:33 AM, Raul Fragoso <raul@etellicom.com> wrote:
Depending on what you want to do, I suggest having a look at mod_event_socket: http://wiki.freeswitch.org/wiki/Mod_event_socket That module is a socket based interface that provides a vast range of options to control FreeSWITCH and its applications. Just for the record, my application is entirely written in C++ and uses FreeSWITCH as a back-end for providing PBX functionality through a combination of mod_event_socket and mod_xml_curl.
Regards,
Raul
On Tue, 2009-02-03 at 10:21 +0800, lee jason wrote:
Hi All,
I saw the applications using FreeSwitch library can be written in JavaScript, Perl, Python and Lua but I need to use Linux C or C++ for applications, Is FreeSwitch can supported it? Where can I get the sample codes? My Linux platform is base on Fedora.
Thanks a lot.
Jason _______________________________________________ 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
participants (6)
-
Brian West
-
Ken Rice
-
lee jason
-
Michael Collins
-
Nik Middleton
-
Raul Fragoso