Tutorial: FreeSwitch as Media Server and SBC for Kamailio 3.1
Hey guys, a short note to inform that I updated my tutorial about using FreeSwitch and Kamailio together for large VoIP platforms. Besides upgrade to use latest Kamailio major stable release, v3.1.0, there are couple of new features added in the architecture of the VoIP platform: - along with providing media services (voicemail, conferencing, a.s.o.), FreeSwitch is used now also as SBC for topology hiding and media relay (this helps for transconding needs, palying audio messages during the early session or NAT traversal) - Kamailio config has added features to detect DoS/DDoS and scanning attacks, secure SIP communication over TLS, IP authentication and a bunch of neat things that help for an easier maintenance and update of parameters such as database connectivity details, local IPs, etc. Hope it will be useful for many of you. Cheers, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
On 11/30/10 12:58 PM, Daniel-Constantin Mierla wrote:
Hey guys,
a short note to inform that I updated my tutorial about using FreeSwitch and Kamailio together for large VoIP platforms.
Besides upgrade to use latest Kamailio major stable release, v3.1.0, there are couple of new features added in the architecture of the VoIP platform: - along with providing media services (voicemail, conferencing, a.s.o.), FreeSwitch is used now also as SBC for topology hiding and media relay (this helps for transconding needs, palying audio messages during the early session or NAT traversal) - Kamailio config has added features to detect DoS/DDoS and scanning attacks, secure SIP communication over TLS, IP authentication and a bunch of neat things that help for an easier maintenance and update of parameters such as database connectivity details, local IPs, etc.
Hope it will be useful for many of you. ... and of course the link to tutorial: http://asipto.com/u/kfsb
Cheers, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
Daniel, Thanks for the update. I took a glance at the links and the configurations seemed to be simple and straightforward. I am tempted to go ahead, but I need my FS to also serve a PBX System. Is it possible to configure FS as a PBX System as well as an SBC to Kamailio without any conflicts and (additional) security issues? ----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Tutorial-FreeSwitch-as-Media-S... Sent from the freeswitch-users mailing list archive at Nabble.com.
Hello, On 11/30/10 3:53 PM, mazilo wrote:
Daniel,
Thanks for the update. I took a glance at the links and the configurations seemed to be simple and straightforward. I am tempted to go ahead, but I need my FS to also serve a PBX System. Is it possible to configure FS as a PBX System as well as an SBC to Kamailio without any conflicts and (additional) security issues? PBX has lot of features, you know, is not like a very clear definition.
I am using freeswhich in many deployments to provide anything that is related to media processing and back-to-back UA functionality. In these cases I use Kamailio as load balancer and security checks (FS will accept only traffic from Kamailio). Of course there are some PBX functionalities that can be implemented in Kamailio, like call hunting -- it is a matter of your design decision. If you list what kind of PBX features you need, I can comment more if there are potential issues. Thanks, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
Daniel-Constantin Mierla wrote:
Hello,
On 11/30/10 3:53 PM, mazilo wrote:
Daniel,
Thanks for the update. I took a glance at the links and the configurations seemed to be simple and straightforward. I am tempted to go ahead, but I need my FS to also serve a PBX System. Is it possible to configure FS as a PBX System as well as an SBC to Kamailio without any conflicts and (additional) security issues? PBX has lot of features, you know, is not like a very clear definition.
What I meant by PBX system is the basic (default) PBX features from FreeSWITCH. For instance, when I have my FS up for the first time, I just configured my ATA to register to my FS as an extension, added several trunks, and can use it right the way to place/receive calls. What I meant is if I configured my FS as an SBC to Kamailio, will the existing configurations still be working along with the new addition as SBC to Kamailio? Of course there are some PBX functionalities that can be implemented in
Kamailio, like call hunting -- it is a matter of your design decision. This may not be a bad idea. BTW, since I am not familiar with Kamailio, is it possible configure Kamailio with a trunk to register to a VoIP service provider, i.e. http://callcentric.com CallCentric , etc.?
----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Tutorial-FreeSwitch-as-Media-S... Sent from the freeswitch-users mailing list archive at Nabble.com.
mazilo, Configurations such as this are typically used in high-volume/high-availability configurations where the added complexity is needed to meet the unique demands of these systems. If you're providing standard PBX functionality to a few hundred (maybe even thousand) users, FreeSWITCH will do very well on its own (even on a single machine). If you need to provide this functionality to tens of thousands of users (perhaps even more) it starts to make sense to use Kamailio and FreeSWITCH together with Kamailio providing significant scale benefits for SIP signaling and FreeSWITCH providing media handling and PBX functionality. This configuration is also more well suited to failover, load balancing, HA, etc using the SIP functionality in Kamailio. From what I can tell you're better off using FreeSWITCH standalone. On Tue, Nov 30, 2010 at 11:31 AM, mazilo <Nabble@slickdeals.endjunk.com> wrote:
What I meant by PBX system is the basic (default) PBX features from FreeSWITCH. For instance, when I have my FS up for the first time, I just configured my ATA to register to my FS as an extension, added several trunks, and can use it right the way to place/receive calls. What I meant is if I configured my FS as an SBC to Kamailio, will the existing configurations still be working along with the new addition as SBC to Kamailio?
Of course there are some PBX functionalities that can be implemented in
Kamailio, like call hunting -- it is a matter of your design decision. This may not be a bad idea. BTW, since I am not familiar with Kamailio, is it possible configure Kamailio with a trunk to register to a VoIP service provider, i.e. http://callcentric.com CallCentric , etc.?
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
Kristian Kielhofner-3 wrote:
From what I can tell you're better off using FreeSWITCH standalone. You have a good point here. My intension here to see the possiblity without sacrifying the existing configuration. OTOH, I also would like to give this configuration a test drive and I don't want it to cause problem with the existing services that I have been using. This way, I can learn better about FS as an SBC as well as introducing myself to Kamailio.
Anyway, thanks to all here. ----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Tutorial-FreeSwitch-as-Media-S... Sent from the freeswitch-users mailing list archive at Nabble.com.
On 11/30/10 5:31 PM, mazilo wrote:
Daniel-Constantin Mierla wrote:
Hello,
On 11/30/10 3:53 PM, mazilo wrote:
Daniel,
Thanks for the update. I took a glance at the links and the configurations seemed to be simple and straightforward. I am tempted to go ahead, but I need my FS to also serve a PBX System. Is it possible to configure FS as a PBX System as well as an SBC to Kamailio without any conflicts and (additional) security issues? PBX has lot of features, you know, is not like a very clear definition. What I meant by PBX system is the basic (default) PBX features from FreeSWITCH. For instance, when I have my FS up for the first time, I just configured my ATA to register to my FS as an extension, added several trunks, and can use it right the way to place/receive calls. What I meant is if I configured my FS as an SBC to Kamailio, will the existing configurations still be working along with the new addition as SBC to Kamailio?
If you have just several extensions, then it makes no sense to deploy Kamailio unless you need some features that you don't find in FreeSwitch. As I mentioned, this architecture is suitable for large VoIP platforms, that can be either call volume or number of active lines. You can simply use Kamailio as a front end to FreeSwitch for the purpose of traffic filtering (e.g., attacks protection), load balancing and high availability of a FS farm, then practically you have same services like you have now with FS only, with the perspective of growing easier.
Of course there are some PBX functionalities that can be implemented in
Kamailio, like call hunting -- it is a matter of your design decision. This may not be a bad idea. BTW, since I am not familiar with Kamailio, is it possible configure Kamailio with a trunk to register to a VoIP service provider, i.e. http://callcentric.com CallCentric , etc.?
There is this possible, but since Kamailio is not a back-to-back user agent, there are couple limitations in this regard. Registration for inbound calls is easier and without any issues, but doing calls through a provider that requires user authentication has some limitations, since kamailio, as a SIP proxy in this case, will need to authenticate like a user (end device). If the provider uses Kamailio (or SER-based SIP servers), then it works, otherwise it is a CSeq issue that can be solved with some nasty tricks in config, but you better stick to FS in this case. Btw, probably many freeswitch fans will appreciate this one as well - Kamailio routing logic done entirely in Lua: http://asipto.com/u/h Cheers, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Jan 24-26, 2011, Irvine, CA, USA http://www.asipto.com
participants (3)
-
Daniel-Constantin Mierla
-
Kristian Kielhofner
-
mazilo