Some questions from a relative newbie
Hello. Long time listener, first time caller. I have a few questions but I will split them up into different emails for the benefit of future mailing list searches. I just wanted to introduce myself first and explain what I am trying to do in case someone has some general advice for me. I own and run a small ISP up here in Toronto, Canada. One of my offerings recently has been VOIP through another provider. I have decided to bite the bullet and have set up my own switch (Freeswitch, of course) and connected it to an aggregator, VOIP Innovations. I have a home grown billing system that I use to provision other parts of my ISP and I am going to do the same with VOIP. I have cron jobs that check the database and, if necessary, rebuild certain configuration files and reload them. That works with the basic stuff I am doing so far. I am running on FreeBSD 9.0-RELEASE. As I am also a NetBSD developer I would like to move it over but FreeBSD has a port and NetSBD does not yet have a package for Freeswitch. I will probably be looking at creating one eventually. And here is my first question. I have worked around this but I am curious. Has the behaviour of fs_cli under error conditions been changed recently? It seems to me that an earlier version worked with FreeBSD's startup script but 1.2.3 fails. The issue is a command issued by the script: /usr/local/bin/fs_cli -x "sofia recover" The problem is that the command is issued before the switch is actually running. I am not sure what good that is. Since it fails, the startup script doesn't complete and the switch never starts. I have fixed the script so that this command runs properly but I was wondering why the switch even started up before. Did fs_cli use to always return success no matter what? Cheers. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
by the way, do you consider running a fault-tolerant service with OpenSIPS/Kamailio/Repro as a border controller and two FreeSWITCH boxes behind?
________________________________ From: D'Arcy Cain <darcy@Vex.Net> To: FreeSWITCH-users@lists.freeswitch.org Sent: Sunday, September 23, 2012 4:37 PM Subject: [Freeswitch-users] Some questions from a relative newbie
Hello. Long time listener, first time caller. I have a few questions but I will split them up into different emails for the benefit of future mailing list searches. I just wanted to introduce myself first and explain what I am trying to do in case someone has some general advice for me.
I own and run a small ISP up here in Toronto, Canada. One of my offerings recently has been VOIP through another provider. I have decided to bite the bullet and have set up my own switch (Freeswitch, of course) and connected it to an aggregator, VOIP Innovations.
I have a home grown billing system that I use to provision other parts of my ISP and I am going to do the same with VOIP. I have cron jobs that check the database and, if necessary, rebuild certain configuration files and reload them. That works with the basic stuff I am doing so far.
I am running on FreeBSD 9.0-RELEASE. As I am also a NetBSD developer I would like to move it over but FreeBSD has a port and NetSBD does not yet have a package for Freeswitch. I will probably be looking at creating one eventually.
And here is my first question. I have worked around this but I am curious. Has the behaviour of fs_cli under error conditions been changed recently? It seems to me that an earlier version worked with FreeBSD's startup script but 1.2.3 fails. The issue is a command issued by the script:
/usr/local/bin/fs_cli -x "sofia recover"
The problem is that the command is issued before the switch is actually running. I am not sure what good that is. Since it fails, the startup script doesn't complete and the switch never starts. I have fixed the script so that this command runs properly but I was wondering why the switch even started up before. Did fs_cli use to always return success no matter what?
Cheers.
-- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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 Sun, 23 Sep 2012 11:24:59 -0700 (PDT) Stanislav Sinyagin <ssinyagin@yahoo.com> wrote:
by the way, do you consider running a fault-tolerant service with OpenSIPS/Kamailio/Repro as a border controller and two FreeSWITCH boxes behind?
Thanks. I have added that to my reading list. However, I am not sure how useful that scenario would be. Doesn't the OpenSIPS router just become my new point of failure? If I add another box I can get my provider to fail over to it. That makes them the point of failure but they already are so I kind of depend on them not to go down anyway. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
in this case, you would have two OpenSIPS boxes and two FreeSwitch boxes. The easiest scenario would be to run them in active/standby mode, so that only one box is handling the calls, and the other one starts acting only when it realizes that the master box is gone. Here is one of possible examples: http://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS There are also some scenarios for active/active redundancy, but that requires much more engineering efforts.
________________________________ From: D'Arcy Cain <darcy@Vex.Net> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Cc: Stanislav Sinyagin <ssinyagin@yahoo.com> Sent: Sunday, September 23, 2012 10:07 PM Subject: Re: [Freeswitch-users] Some questions from a relative newbie
On Sun, 23 Sep 2012 11:24:59 -0700 (PDT) Stanislav Sinyagin <ssinyagin@yahoo.com> wrote:
by the way, do you consider running a fault-tolerant service with OpenSIPS/Kamailio/Repro as a border controller and two FreeSWITCH boxes behind?
Thanks. I have added that to my reading list. However, I am not sure how useful that scenario would be. Doesn't the OpenSIPS router just become my new point of failure? If I add another box I can get my provider to fail over to it. That makes them the point of failure but they already are so I kind of depend on them not to go down anyway.
-- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
If you start it with -ncwait it will block until its 100% up then fork into the bg. I don't think fs_cli ever behaved any differently but before this option was added about a year ago, and unless its specified, just -nc will return right away before its even close to ready. On Sun, Sep 23, 2012 at 3:27 PM, Stanislav Sinyagin <ssinyagin@yahoo.com>wrote:
in this case, you would have two OpenSIPS boxes and two FreeSwitch boxes. The easiest scenario would be to run them in active/standby mode, so that only one box is handling the calls, and the other one starts acting only when it realizes that the master box is gone. Here is one of possible examples: http://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS
There are also some scenarios for active/active redundancy, but that requires much more engineering efforts.
------------------------------ *From:* D'Arcy Cain <darcy@Vex.Net> *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Cc:* Stanislav Sinyagin <ssinyagin@yahoo.com> *Sent:* Sunday, September 23, 2012 10:07 PM *Subject:* Re: [Freeswitch-users] Some questions from a relative newbie
On Sun, 23 Sep 2012 11:24:59 -0700 (PDT) Stanislav Sinyagin <ssinyagin@yahoo.com> wrote:
by the way, do you consider running a fault-tolerant service with OpenSIPS/Kamailio/Repro as a border controller and two FreeSWITCH boxes behind?
Thanks. I have added that to my reading list. However, I am not sure how useful that scenario would be. Doesn't the OpenSIPS router just become my new point of failure? If I add another box I can get my provider to fail over to it. That makes them the point of failure but they already are so I kind of depend on them not to go down anyway.
-- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
participants (3)
-
Anthony Minessale
-
D'Arcy Cain
-
Stanislav Sinyagin