Can Freeswitch and OpenSER Co-reside on Same Server?
If I use OpenSER for a session border controller, does anyone see an issue if it resides on the same server as Freeswitch? So I would have a LAN and WAN socket? Are there any drawbacks (other than loading) to worry about? Thanks And Best Regards, Jerry
On Fri, Feb 5, 2010 at 12:16 PM, Jerry Richards <jerry.richards@teotech.com> wrote:
If I use OpenSER for a session border controller, does anyone see an issue if it resides on the same server as Freeswitch? So I would have a LAN and WAN socket? Are there any drawbacks (other than loading) to worry about?
Thanks And Best Regards, Jerry
You can use different IP addresses or ports. I do this all of the time. I question why you are using OpenSER (OpenSIPS?) as a SBC. FreeSWITCH is actually more well suited to most of the functions served by something called* a "session border controller". For example, FreeSWITCH in bypass media mode is a signaling only SBC where you can (cleanly) do the header rewriting, number formatting, and SIP topology hiding typically done by a SBC without touching the media. Proxy media mode can do the same while proxying media (traversing NAT and hiding real RTP addresses). FreeSWITCH in normal bridging mode can transcode, convert between different types of DTMF and do everything else mentioned above. OpenSER as a proxy can't even (per RFC3261) rewrite To or From, nor will it hide topology (it simple adds Record-Route/Via). * Session borders controllers are very ill-defined and mean different things to different people. -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
Kristian: Can you point me to the wiki link where it describes how to do the header rewriting and number formatting and topology hiding? I am also looking into OpenSIPS to be a session boarder controller, but if freeswitch is already able to do all these, then I think it's easier for me to stick with it since I already learn and do a lot with it already. Thanks, On Sat, Feb 6, 2010 at 2:11 AM, Kristian Kielhofner < kristian.kielhofner@gmail.com> wrote:
On Fri, Feb 5, 2010 at 12:16 PM, Jerry Richards <jerry.richards@teotech.com> wrote:
If I use OpenSER for a session border controller, does anyone see an issue if it resides on the same server as Freeswitch? So I would have a LAN and WAN socket? Are there any drawbacks (other than loading) to worry about?
Thanks And Best Regards, Jerry
You can use different IP addresses or ports. I do this all of the time.
I question why you are using OpenSER (OpenSIPS?) as a SBC. FreeSWITCH is actually more well suited to most of the functions served by something called* a "session border controller".
For example, FreeSWITCH in bypass media mode is a signaling only SBC where you can (cleanly) do the header rewriting, number formatting, and SIP topology hiding typically done by a SBC without touching the media. Proxy media mode can do the same while proxying media (traversing NAT and hiding real RTP addresses). FreeSWITCH in normal bridging mode can transcode, convert between different types of DTMF and do everything else mentioned above.
OpenSER as a proxy can't even (per RFC3261) rewrite To or From, nor will it hide topology (it simple adds Record-Route/Via).
* Session borders controllers are very ill-defined and mean different things to different people.
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
_______________________________________________ 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
-- Henry Huang UniC Solution - Communication Unified VoIP & Open Source software Consultant
On Fri, Feb 5, 2010 at 1:36 PM, Henry Huang <red.rain.seven@gmail.com> wrote:
Kristian:
Can you point me to the wiki link where it describes how to do the header rewriting and number formatting and topology hiding? I am also looking into OpenSIPS to be a session boarder controller, but if freeswitch is already able to do all these, then I think it's easier for me to stick with it since I already learn and do a lot with it already.
Thanks,
Henry, By default (when using bridge) FreeSWITCH will generate a new leg with a fresh set of headers. Various channel variables can be used to influence the values of some of these: Request URI: based on bridge string (411@sip.provider.com) - can also include transport, port, uri params, etc To: same as Request URI (possible minus some of the params) From: Determined by gateway config (if used: use-callerid-in-from) and effective_caller_id_number/effective_caller_id_name RPID/PAI: sip_cid_type The other params will be taken from the Sofia config (session timers, etc). Use multiple profiles for internal and external networks (just like in the samples). FreeSWITCH does topology hiding by default - as a B2BUA (regardless of "mode") it will do topology hiding by creating a new channel/leg. None of the IP addresses etc, from the original channel are visible. Note that this doesn't count the SDP if you are using bypass media or proxy media. If you want *full* SBC style topology hiding with media you can't use these modes but you'll pay for it in performance. Unless you use the uac/uas modules and/or some textops based manipulation in OpenSER, all OpenSER can do is copy most of the headers/body, add Record-Route and Via headers, and forward the message to the next hop while leaving all IP addresses, etc intact. OpenSER/OpenSIPS can be a fairly general purpose SIP server but it's main function is a fairly strict RFC 3261 compliant proxy. I should also point out that OpenSIPS does have a B2BUA module. I myself would much rather just use FreeSWITCH. You know - the best tool for the job. They're both EXCELLENT pieces of software and between the two of them you can build incredible VoIP solutions and networks. I use FreeSWITCH to interface with each of my carriers. FreeSWITCH runs on the same machine as our main SIP proxy running in bypass_media. The SIP proxy (OpenSER) handles all of the requests for our servers/customers (servers we provision and control) while FreeSWITCH (usually in bypass media) interfaces with each of our carriers to make everyone happy at the signaling level. I have a profile for our network and a profile for each carrier. No need to worry about different caller id formats, number formats (e.164), transports, caller id, etc. On one machine FreeSWITCH regularly does over 1200 channels using about %20 CPU. It's a four year old Dell 1850 :). -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
So do you build your server with two FS instances running? One as the SBC and one as Proxy/PBX? Thanks, Jerry -----Original Message----- From: Kristian Kielhofner [mailto:kristian.kielhofner@gmail.com] Sent: Friday, February 05, 2010 10:12 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Can Freeswitch and OpenSER Co-reside on SameServer? On Fri, Feb 5, 2010 at 12:16 PM, Jerry Richards <jerry.richards@teotech.com> wrote:
If I use OpenSER for a session border controller, does anyone see an issue if it resides on the same server as Freeswitch? So I would have a LAN and WAN socket? Are there any drawbacks (other than loading) to worry about?
Thanks And Best Regards, Jerry
You can use different IP addresses or ports. I do this all of the time. I question why you are using OpenSER (OpenSIPS?) as a SBC. FreeSWITCH is actually more well suited to most of the functions served by something called* a "session border controller". For example, FreeSWITCH in bypass media mode is a signaling only SBC where you can (cleanly) do the header rewriting, number formatting, and SIP topology hiding typically done by a SBC without touching the media. Proxy media mode can do the same while proxying media (traversing NAT and hiding real RTP addresses). FreeSWITCH in normal bridging mode can transcode, convert between different types of DTMF and do everything else mentioned above. OpenSER as a proxy can't even (per RFC3261) rewrite To or From, nor will it hide topology (it simple adds Record-Route/Via). * Session borders controllers are very ill-defined and mean different things to different people. -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
On Fri, Feb 5, 2010 at 2:40 PM, Jerry Richards <jerry.richards@teotech.com> wrote:
So do you build your server with two FS instances running? One as the SBC and one as Proxy/PBX?
Thanks, Jerry
Jerry, No. One instance of FreeSWITCH and one instance of OpenSER. As I said, just make sure they use separate IPs and/or ports. I prefer standard ports and separate IPs because then (in the future) if I need to split them (scaling, redundancy, etc) all I have to do is bring up the second IP on a different host and move the software/config. -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
Okay, so you use both FreeSWITCH and OpenSER in one box. But just to be clear, if I want to I should be able to use two FreeSWITCH instances in the same box, one as a SBC and one as a PBX. True? Jerry -----Original Message----- From: Kristian Kielhofner [mailto:kristian.kielhofner@gmail.com] Sent: Friday, February 05, 2010 11:50 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Can Freeswitch and OpenSER Co-reside onSameServer? On Fri, Feb 5, 2010 at 2:40 PM, Jerry Richards <jerry.richards@teotech.com> wrote:
So do you build your server with two FS instances running? One as the SBC and one as Proxy/PBX?
Thanks, Jerry
Jerry, No. One instance of FreeSWITCH and one instance of OpenSER. As I said, just make sure they use separate IPs and/or ports. I prefer standard ports and separate IPs because then (in the future) if I need to split them (scaling, redundancy, etc) all I have to do is bring up the second IP on a different host and move the software/config. -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
You can use either multiple FS instances on the same box, or use different SIP profiles of single FS instance to perform different functions. I use openser as registrar/load balancer and multiple FS boxes for call handling and billing. On Friday 05 February 2010, Jerry Richards wrote:
Okay, so you use both FreeSWITCH and OpenSER in one box. But just to be clear, if I want to I should be able to use two FreeSWITCH instances in the same box, one as a SBC and one as a PBX. True?
Jerry
-----Original Message----- From: Kristian Kielhofner [mailto:kristian.kielhofner@gmail.com] Sent: Friday, February 05, 2010 11:50 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Can Freeswitch and OpenSER Co-reside onSameServer?
On Fri, Feb 5, 2010 at 2:40 PM, Jerry Richards <jerry.richards@teotech.com>
wrote:
So do you build your server with two FS instances running? One as the SBC and one as Proxy/PBX?
Thanks, Jerry
Jerry,
No. One instance of FreeSWITCH and one instance of OpenSER. As I said, just make sure they use separate IPs and/or ports. I prefer standard ports and separate IPs because then (in the future) if I need to split them (scaling, redundancy, etc) all I have to do is bring up the second IP on a different host and move the software/config.
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
_______________________________________________ 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
On Fri, Feb 5, 2010 at 4:37 PM, Sergey Okhapkin <sos@sokhapkin.dyndns.org> wrote:
You can use either multiple FS instances on the same box, or use different SIP profiles of single FS instance to perform different functions.
Exactly. -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
Kristian, I enjoyed your recent blog praising FreeSWITCH. The world needs an O'Reilly book about FreeSWITCH. Perhaps you could write one in your spare time? Whoever gets there first and does it well is likely to own that shelf space for a long time to come. Just an idea. Jim ----- Original Message ---- From: Kristian Kielhofner <kristian.kielhofner@gmail.com> To: freeswitch-users@lists.freeswitch.org Sent: Fri, February 5, 2010 12:11:35 PM Subject: Re: [Freeswitch-users] Can Freeswitch and OpenSER Co-reside on Same Server? On Fri, Feb 5, 2010 at 12:16 PM, Jerry Richards <jerry.richards@teotech.com> wrote:
If I use OpenSER for a session border controller, does anyone see an issue if it resides on the same server as Freeswitch? So I would have a LAN and WAN socket? Are there any drawbacks (other than loading) to worry about?
Thanks And Best Regards, Jerry
You can use different IP addresses or ports. I do this all of the time. I question why you are using OpenSER (OpenSIPS?) as a SBC. FreeSWITCH is actually more well suited to most of the functions served by something called* a "session border controller". For example, FreeSWITCH in bypass media mode is a signaling only SBC where you can (cleanly) do the header rewriting, number formatting, and SIP topology hiding typically done by a SBC without touching the media. Proxy media mode can do the same while proxying media (traversing NAT and hiding real RTP addresses). FreeSWITCH in normal bridging mode can transcode, convert between different types of DTMF and do everything else mentioned above. OpenSER as a proxy can't even (per RFC3261) rewrite To or From, nor will it hide topology (it simple adds Record-Route/Via). * Session borders controllers are very ill-defined and mean different things to different people. -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com _______________________________________________ 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
On Fri, Feb 5, 2010 at 1:51 PM, Jim Thomas <jimthomasembedded@yahoo.com>wrote:
Kristian,
I enjoyed your recent blog praising FreeSWITCH.
The world needs an O'Reilly book about FreeSWITCH. Perhaps you could write one in your spare time?
Would you guys settle for a FreeSWITCH book from Packt Publishing? Maybe we could get them to put an animal on the cover... :) -MC
Packt would be fine, and kudos to Packt for being so present in the open source telephony publishing space. Actually, I would like to see two FreeSWITCH books, one for users (how to employ it as a turnkey element) and another for developers (FreeSWITCH internal architecture, structure, Sofia-SIP, etc.). ________________________________ From: Michael Collins <msc@freeswitch.org> To: freeswitch-users@lists.freeswitch.org Sent: Fri, February 5, 2010 4:07:10 PM Subject: Re: [Freeswitch-users] Can Freeswitch and OpenSER Co-reside on Same Server? On Fri, Feb 5, 2010 at 1:51 PM, Jim Thomas <jimthomasembedded@yahoo.com> wrote:
Kristian,
I enjoyed your recent blog praising FreeSWITCH.
The world needs an O'Reilly book about FreeSWITCH. Perhaps you could write one in your spare time?
Would you guys settle for a FreeSWITCH book from Packt Publishing? Maybe we could get them to put an animal on the cover... :) -MC
On Fri, Feb 5, 2010 at 4:51 PM, Jim Thomas <jimthomasembedded@yahoo.com> wrote:
Kristian,
I enjoyed your recent blog praising FreeSWITCH.
Thanks.
The world needs an O'Reilly book about FreeSWITCH. Perhaps you could write one in your spare time?
O'Reilly authors have a joke: "The only people that get rich writing books are Stephen King and J.K. Rowling". I'm not picking on O'Reilly; it doesn't matter who the publisher is. Writing a tech book takes an immense amount of time and compared to consulting and other ways to spend your limited time it (often) doesn't pay well enough. Certainly some people are in different situation. In the next couple of days I'll be reviewing Packt Publishing's new OpenSIPS book written by Flavio Goncalves. Flavio has an OpenSIPS training business so writing a book is perfect for him. You get to train with the guy who literally wrote the book!
Whoever gets there first and does it well is likely to own that shelf space for a long time to come.
There are some people working on a FreeSWITCH book and it makes sense for them too. I'm sure they'll do a great job. -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
Kudos for Flavio! Vamos brazukas! :-) Abraços, João Mesquita On Fri, Feb 5, 2010 at 8:10 PM, Kristian Kielhofner < kristian.kielhofner@gmail.com> wrote:
On Fri, Feb 5, 2010 at 4:51 PM, Jim Thomas <jimthomasembedded@yahoo.com> wrote:
Kristian,
I enjoyed your recent blog praising FreeSWITCH.
Thanks.
The world needs an O'Reilly book about FreeSWITCH. Perhaps you could write one in your spare time?
O'Reilly authors have a joke: "The only people that get rich writing books are Stephen King and J.K. Rowling". I'm not picking on O'Reilly; it doesn't matter who the publisher is. Writing a tech book takes an immense amount of time and compared to consulting and other ways to spend your limited time it (often) doesn't pay well enough.
Certainly some people are in different situation. In the next couple of days I'll be reviewing Packt Publishing's new OpenSIPS book written by Flavio Goncalves. Flavio has an OpenSIPS training business so writing a book is perfect for him. You get to train with the guy who literally wrote the book!
Whoever gets there first and does it well is likely to own that shelf space for a long time to come.
There are some people working on a FreeSWITCH book and it makes sense for them too. I'm sure they'll do a great job.
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
_______________________________________________ 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
Hi, I got asked to review this too as I submitted a few bugs in the book. Their review guidelines are long and I don't have enough time to write such an in depth review. I'll watch your blog though! I hope the index is better this time as Packt always let me down that way. Gavin. On 05/02/2010, Kristian Kielhofner <kristian.kielhofner@gmail.com> wrote:
On Fri, Feb 5, 2010 at 4:51 PM, Jim Thomas <jimthomasembedded@yahoo.com> wrote:
Kristian,
I enjoyed your recent blog praising FreeSWITCH.
Thanks.
The world needs an O'Reilly book about FreeSWITCH. Perhaps you could write one in your spare time?
O'Reilly authors have a joke: "The only people that get rich writing books are Stephen King and J.K. Rowling". I'm not picking on O'Reilly; it doesn't matter who the publisher is. Writing a tech book takes an immense amount of time and compared to consulting and other ways to spend your limited time it (often) doesn't pay well enough.
Certainly some people are in different situation. In the next couple of days I'll be reviewing Packt Publishing's new OpenSIPS book written by Flavio Goncalves. Flavio has an OpenSIPS training business so writing a book is perfect for him. You get to train with the guy who literally wrote the book!
Whoever gets there first and does it well is likely to own that shelf space for a long time to come.
There are some people working on a FreeSWITCH book and it makes sense for them too. I'm sure they'll do a great job.
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
_______________________________________________ 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
-- Sent from my mobile device http://www.suretecsystems.com/services/openldap/ http://www.suretectelecom.com
participants (8)
-
Gavin Henry
-
Henry Huang
-
Jerry Richards
-
Jim Thomas
-
João Mesquita
-
Kristian Kielhofner
-
Michael Collins
-
Sergey Okhapkin