FreeSWITCH & Heartbeat / Pacemaker - Please Help setting up
Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel. Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too. Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking. Thanks guys! -Avi Marcus
1) and 2), use startup script in /etc/init.d to do whatever you want HB/Pacemaker is reacting only from these scripts (LSB, OCF compliant) use also cron tasks ----- Original Message ----- From: Avi Marcus To: FreeSWITCH Users Help Sent: Saturday, January 01, 2011 3:20 PM Subject: [Freeswitch-users] FreeSWITCH & Heartbeat / Pacemaker - Please Helpsetting up Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel. Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too. Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking. Thanks guys! -Avi Marcus ------------------------------------------------------------------------------ _______________________________________________ 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
I had planned on leaving freeswitch running on both machines because it seemed to take 8 seconds to start up and I'd like instant recovery. So.. I'm not dealing with init scripts? I've not seen much documentation on ha/pacemaker that made sense to me, can you please explain what you mean? -Avi On Sat, Jan 1, 2011 at 10:31 PM, Madovsky <infos@madovsky.org> wrote:
1) and 2), use startup script in /etc/init.d to do whatever you want HB/Pacemaker is reacting only from these scripts (LSB, OCF compliant) use also cron tasks
----- Original Message ----- *From:* Avi Marcus <Avi@aMarcus.com> *To:* FreeSWITCH Users Help <FreeSWITCH-users@lists.freeswitch.org> *Sent:* Saturday, January 01, 2011 3:20 PM *Subject:* [Freeswitch-users] FreeSWITCH & Heartbeat / Pacemaker - Please Helpsetting up
Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel.
Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA
Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too.
Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking.
Thanks guys! -Avi Marcus
------------------------------
_______________________________________________ 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
I mean that if you want specific procedure witn freeswitch service so you have to create bash script inside your init script because HB/Pacemaker don't care every specification of every service ----- Original Message ----- From: Avi Marcus To: FreeSWITCH Users Help Sent: Saturday, January 01, 2011 3:46 PM Subject: Re: [Freeswitch-users] FreeSWITCH & Heartbeat / Pacemaker - Please Helpsetting up I had planned on leaving freeswitch running on both machines because it seemed to take 8 seconds to start up and I'd like instant recovery. So.. I'm not dealing with init scripts? I've not seen much documentation on ha/pacemaker that made sense to me, can you please explain what you mean? -Avi On Sat, Jan 1, 2011 at 10:31 PM, Madovsky <infos@madovsky.org> wrote: 1) and 2), use startup script in /etc/init.d to do whatever you want HB/Pacemaker is reacting only from these scripts (LSB, OCF compliant) use also cron tasks ----- Original Message ----- From: Avi Marcus To: FreeSWITCH Users Help Sent: Saturday, January 01, 2011 3:20 PM Subject: [Freeswitch-users] FreeSWITCH & Heartbeat / Pacemaker - Please Helpsetting up Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel. Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too. Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking. Thanks guys! -Avi Marcus -------------------------------------------------------------------------- _______________________________________________ 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 ------------------------------------------------------------------------------ _______________________________________________ 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 all, I am just learning how to install and use Freeswitch and at the place where I'm working i'd like to implement a solution like callout and TTS. The main goal is to use Freeswith as a PBX and use text based strings so the FSW can callout some customers and advise them about theit current balance so the string will be componded by a set of fields and the resulting text most be converted to phone sound to the customer, ex. 1- Event occurs on our main system server. 2- Server send a sms/E-Mail/HTTP-String to FSW, with customer phone # and string ( String will be like: "You have % credit balance on your account. Please type 1 to add credit", where % is a numeric value that will be filled up by our main system servers. 3- FSW will convert resulting text to sound call and calls the customer's phone number. 4- Customer picks up the phone and listen to the TTS sound. Is it possible with FSW? Thank you all for your response. Carlos.
Yep, this is totally possible. First question: what programming/technical resources do you have in house? That will determine if you need "regular" help or "professional" help. :) -MC On Mon, Sep 24, 2012 at 8:12 AM, Carlos Lopez <the_spide21@yahoo.com> wrote:
Hi all,
I am just learning how to install and use Freeswitch and at the place where I'm working i'd like to implement a solution like callout and TTS.
The main goal is to use Freeswith as a PBX and use text based strings so the FSW can callout some customers and advise them about theit current balance so the string will be componded by a set of fields and the resulting text most be converted to phone sound to the customer, ex.
1- Event occurs on our main system server. 2- Server send a sms/E-Mail/HTTP-String to FSW, with customer phone # and string ( String will be like: "You have % credit balance on your account. Please type 1 to add credit", where % is a numeric value that will be filled up by our main system servers. 3- FSW will convert resulting text to sound call and calls the customer's phone number. 4- Customer picks up the phone and listen to the TTS sound.
Is it possible with FSW?
Thank you all for your response.
Carlos.
_________________________________________________________________________ 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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
You will need a man-in-the-middle application (broker) that receives the message and converts it to actionable steps that will be performed in FS. Of the many ways you have to do this, I can suggest you to explore the Event Socket Outbound – and particulary the Java ESL Client, although you can use pretty much any other language supported by FS. Main idea is: your application will receive the message, and using ESL will generate an outbound call using FreeSWITCH. When the call is answered it will play a message using a TTS engine (flite, cepstral, nuance, etc.), capture the input and do whatever you need with it. The control of the call can be handled via ESL or using a dialplan. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Carlos Lopez Sent: Monday, September 24, 2012 11:12 AM To: FreeSWITCH Users Help Subject: [Freeswitch-users] Automatic Callout and TTS Hi all, I am just learning how to install and use Freeswitch and at the place where I'm working i'd like to implement a solution like callout and TTS. The main goal is to use Freeswith as a PBX and use text based strings so the FSW can callout some customers and advise them about theit current balance so the string will be componded by a set of fields and the resulting text most be converted to phone sound to the customer, ex. 1- Event occurs on our main system server. 2- Server send a sms/E-Mail/HTTP-String to FSW, with customer phone # and string ( String will be like: "You have % credit balance on your account. Please type 1 to add credit", where % is a numeric value that will be filled up by our main system servers. 3- FSW will convert resulting text to sound call and calls the customer's phone number. 4- Customer picks up the phone and listen to the TTS sound. Is it possible with FSW? Thank you all for your response. Carlos.
Thank you Hector Geraldino for your guide. Mainly I use PHP so I'll try to setup a service like app with ESL and PHP support and capture the events so FS can do the callout + TTS. Carlos. ----------------Wrote----------- You will need a man-in-the-middle application (broker) that receives the message and converts it to actionable steps that will be performed in FS. Of the many ways you have to do this, I can suggest you to explore the Event Socket Outbound – and particulary the Java ESL Client, although you can use pretty much any other language supported by FS. Main idea is: your application will receive the message, and using ESL will generate an outbound call using FreeSWITCH. When the call is answered it will play a message using a TTS engine (flite, cepstral, nuance, etc.), capture the input and do whatever you need with it. The control of the call can be handled via ESL or using a dialplan. From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Carlos Lopez Sent: Monday, September 24, 2012 11:12 AM To: FreeSWITCH Users Help Subject: [Freeswitch-users] Automatic Callout and TTS Hi all, I am just learning how to install and use Freeswitch and at the place where I'm working i'd like to implement a solution like callout and TTS. The main goal is to use Freeswith as a PBX and use text based strings so the FSW can callout some customers and advise them about theit current balance so the string will be componded by a set of fields and the resulting text most be converted to phone sound to the customer, ex. 1- Event occurs on our main system server. 2- Server send a sms/E-Mail/HTTP-String to FSW, with customer phone # and string ( String will be like: "You have % credit balance on your account. Please type 1 to add credit", where % is a numeric value that will be filled up by our main system servers. 3- FSW will convert resulting text to sound call and calls the customer's phone number. 4- Customer picks up the phone and listen to the TTS sound. Is it possible with FSW? Thank you all for your response. Carlos.
1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up?
Just a tip, I start fs with -nonat and find that makes it start faster. Steve on iPhone On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote:
Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel.
Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA
Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too.
Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking.
Thanks guys! -Avi Marcus
_______________________________________________ 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
the wiki page already said you can start the spare FS ahead to speed switch over up. it means if you use ip_nonlocal_bind and start the spare FS ahead, you only need to run sofia recover in you init script without waiting for the actually FS start process. On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com> wrote:
1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up?
Just a tip, I start fs with -nonat and find that makes it start faster.
Steve on iPhone On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote:
Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel. Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too. Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking. Thanks guys! -Avi Marcus
_______________________________________________ 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
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
Thanks, I noticed the -nonat already. What do you mean by running sofia recover from my init script? I don't understand how that would be triggered by heartbeat/pacemaker. Any explanatory docs on the issue would be nice, but everything I've seen was explaining exact parts and nothing ever seemed to explain the general syntax of everything. Does anyone have a working example that they can wikify and explain? Thanks, Avi On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <dujinfang@gmail.com> wrote:
the wiki page already said you can start the spare FS ahead to speed switch over up.
it means if you use ip_nonlocal_bind and start the spare FS ahead, you only need to run sofia recover in you init script without waiting for the actually FS start process.
On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com> wrote:
1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up?
Just a tip, I start fs with -nonat and find that makes it start faster.
Steve on iPhone On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote:
Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel. Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too. Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking. Thanks guys! -Avi Marcus
_______________________________________________ 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
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
_______________________________________________ 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
It's an API command that you can run via ESL. You can do that from a script using fs_cli and its -x/--execute option. Something like this: fs_cli --host=otherhost --password=secretpasswd --execute="sofia recover" -Steve On 2 January 2011 09:43, Avi Marcus <Avi@amarcus.com> wrote:
Thanks, I noticed the -nonat already. What do you mean by running sofia recover from my init script? I don't understand how that would be triggered by heartbeat/pacemaker. Any explanatory docs on the issue would be nice, but everything I've seen was explaining exact parts and nothing ever seemed to explain the general syntax of everything. Does anyone have a working example that they can wikify and explain? Thanks, Avi
On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <dujinfang@gmail.com> wrote:
the wiki page already said you can start the spare FS ahead to speed switch over up.
it means if you use ip_nonlocal_bind and start the spare FS ahead, you only need to run sofia recover in you init script without waiting for the actually FS start process.
On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com> wrote:
1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up?
Just a tip, I start fs with -nonat and find that makes it start faster.
Steve on iPhone On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote:
Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel. Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too. Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking. Thanks guys! -Avi Marcus
_______________________________________________ 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
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
_______________________________________________ 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
Hi, for testing purposes i modified IPaddr ocf script on both nodes and added following line at the end of start_ipaddr. /opt/switch/bin/fs_cli -x "sofia recover" On 1/2/11, Steven Ayre <steveayre@gmail.com> wrote:
It's an API command that you can run via ESL. You can do that from a script using fs_cli and its -x/--execute option.
Something like this:
fs_cli --host=otherhost --password=secretpasswd --execute="sofia recover"
-Steve
On 2 January 2011 09:43, Avi Marcus <Avi@amarcus.com> wrote:
Thanks, I noticed the -nonat already. What do you mean by running sofia recover from my init script? I don't understand how that would be triggered by heartbeat/pacemaker. Any explanatory docs on the issue would be nice, but everything I've seen was explaining exact parts and nothing ever seemed to explain the general syntax of everything. Does anyone have a working example that they can wikify and explain? Thanks, Avi
On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <dujinfang@gmail.com> wrote:
the wiki page already said you can start the spare FS ahead to speed switch over up.
it means if you use ip_nonlocal_bind and start the spare FS ahead, you only need to run sofia recover in you init script without waiting for the actually FS start process.
On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com> wrote:
1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up?
Just a tip, I start fs with -nonat and find that makes it start faster.
Steve on iPhone On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote:
Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel. Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too. Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking. Thanks guys! -Avi Marcus
_______________________________________________ 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
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
_______________________________________________ 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
_______________________________________________ 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
-- Ghulam Mustafa cell: +92 333.611.7681 sip: cyrenity@ekiga.net mail: mustafa.pk@gmail.com web: cyrenity.wordpress.com
Where would that go? /me is confused. On Sun, Jan 2, 2011 at 5:36 PM, Ghulam Mustafa <mustafa.pk@gmail.com> wrote:
Hi, for testing purposes i modified IPaddr ocf script on both nodes and added following line at the end of start_ipaddr. /opt/switch/bin/fs_cli -x "sofia recover"
On 1/2/11, Steven Ayre <steveayre@gmail.com> wrote:
It's an API command that you can run via ESL. You can do that from a script using fs_cli and its -x/--execute option.
Something like this:
fs_cli --host=otherhost --password=secretpasswd --execute="sofia recover"
-Steve
On 2 January 2011 09:43, Avi Marcus <Avi@amarcus.com> wrote:
Thanks, I noticed the -nonat already. What do you mean by running sofia recover from my init script? I don't understand how that would be triggered by heartbeat/pacemaker. Any explanatory docs on the issue would be nice, but everything I've seen was explaining exact parts and nothing ever seemed to explain the general syntax of everything. Does anyone have a working example that they can wikify and explain? Thanks, Avi
On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <dujinfang@gmail.com> wrote:
the wiki page already said you can start the spare FS ahead to speed switch over up.
it means if you use ip_nonlocal_bind and start the spare FS ahead, you only need to run sofia recover in you init script without waiting for the actually FS start process.
On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com>
wrote:
1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up?
Just a tip, I start fs with -nonat and find that makes it start faster.
Steve on iPhone On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote:
Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel. Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too. Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking. Thanks guys! -Avi Marcus
_______________________________________________ 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
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
_______________________________________________ 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
_______________________________________________ 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
-- Ghulam Mustafa cell: +92 333.611.7681 sip: cyrenity@ekiga.net mail: mustafa.pk@gmail.com web: cyrenity.wordpress.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
You would create a new fs resource agent http://www.linux-ha.org/wiki/Resource_Agents Essentially, they're programs (can be a shell script) given run with start stop etc arguments when an action needs to be done. You can run other commands such as fs_cli from there. I haven't written one from scratch myself though, I just use IPAddr2. Perhaps it would be useful for someone to create an example one in trunk or contrib? -Steve On 2 January 2011 16:16, Avi Marcus <Avi@amarcus.com> wrote:
Where would that go? /me is confused.
On Sun, Jan 2, 2011 at 5:36 PM, Ghulam Mustafa <mustafa.pk@gmail.com> wrote:
Hi, for testing purposes i modified IPaddr ocf script on both nodes and added following line at the end of start_ipaddr. /opt/switch/bin/fs_cli -x "sofia recover"
On 1/2/11, Steven Ayre <steveayre@gmail.com> wrote:
It's an API command that you can run via ESL. You can do that from a script using fs_cli and its -x/--execute option.
Something like this:
fs_cli --host=otherhost --password=secretpasswd --execute="sofia recover"
-Steve
On 2 January 2011 09:43, Avi Marcus <Avi@amarcus.com> wrote:
Thanks, I noticed the -nonat already. What do you mean by running sofia recover from my init script? I don't understand how that would be triggered by heartbeat/pacemaker. Any explanatory docs on the issue would be nice, but everything I've seen was explaining exact parts and nothing ever seemed to explain the general syntax of everything. Does anyone have a working example that they can wikify and explain? Thanks, Avi
On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <dujinfang@gmail.com> wrote:
the wiki page already said you can start the spare FS ahead to speed switch over up.
it means if you use ip_nonlocal_bind and start the spare FS ahead, you only need to run sofia recover in you init script without waiting for the actually FS start process.
On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com> wrote:
1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up?
Just a tip, I start fs with -nonat and find that makes it start faster.
Steve on iPhone On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote:
Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel. Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too. Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking. Thanks guys! -Avi Marcus
_______________________________________________ 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
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
_______________________________________________ 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
_______________________________________________ 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
-- Ghulam Mustafa cell: +92 333.611.7681 sip: cyrenity@ekiga.net mail: mustafa.pk@gmail.com web: cyrenity.wordpress.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
_______________________________________________ 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
In the git contrib there's /ledr/ha.d/ but it has a haresources file which isn't how I've set up anything. Threre's a FSSofia batch file to use ESL to check if certain profile are running, but I don't get how it all fits together. I've got the IPAddr2 but no integration into actual freeswitch. The "anything" resource says it's supposed to be a bin file that keeps running, not just a script that exits. -Avi On Sun, Jan 2, 2011 at 6:27 PM, Steven Ayre <steveayre@gmail.com> wrote:
You would create a new fs resource agent http://www.linux-ha.org/wiki/Resource_Agents
Essentially, they're programs (can be a shell script) given run with start stop etc arguments when an action needs to be done. You can run other commands such as fs_cli from there.
I haven't written one from scratch myself though, I just use IPAddr2. Perhaps it would be useful for someone to create an example one in trunk or contrib?
-Steve
On 2 January 2011 16:16, Avi Marcus <Avi@amarcus.com> wrote:
Where would that go? /me is confused.
On Sun, Jan 2, 2011 at 5:36 PM, Ghulam Mustafa <mustafa.pk@gmail.com> wrote:
Hi, for testing purposes i modified IPaddr ocf script on both nodes and added following line at the end of start_ipaddr. /opt/switch/bin/fs_cli -x "sofia recover"
On 1/2/11, Steven Ayre <steveayre@gmail.com> wrote:
It's an API command that you can run via ESL. You can do that from a script using fs_cli and its -x/--execute option.
Something like this:
fs_cli --host=otherhost --password=secretpasswd --execute="sofia recover"
-Steve
On 2 January 2011 09:43, Avi Marcus <Avi@amarcus.com> wrote:
Thanks, I noticed the -nonat already. What do you mean by running sofia recover from my init script? I don't understand how that would be triggered by heartbeat/pacemaker. Any explanatory docs on the issue would be nice, but everything I've seen was explaining exact parts and nothing ever seemed to explain the general syntax of everything. Does anyone have a working example that they can wikify and explain? Thanks, Avi
On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <dujinfang@gmail.com>
wrote:
the wiki page already said you can start the spare FS ahead to speed switch over up.
it means if you use ip_nonlocal_bind and start the spare FS ahead,
you
only need to run sofia recover in you init script without waiting for the actually FS start process.
On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com> wrote: > 1) It seems freeswitch takes 8 seconds to restart. So if it crashes > (unlikely) calls should immediately get shunted over to the other > box. > How > do I set that up? > > Just a tip, I start fs with -nonat and find that makes it start > faster. > > Steve on iPhone > On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote: > > Hi - I'm setting up 2 parallel computers for a HA setup. (low volume > so > far, > no need to load balance.) > I already have heartbeat able to grab the public IP if the first box > goes > down, but since I'm basically completely unfamiar with pacemaker, > I'd > like > some help. > I'd imagine I'm not the only one doing this, there should be no > reason > for > me to recreate the wheel. > Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA > Specifically: > 1) It seems freeswitch takes 8 seconds to restart. So if it crashes > (unlikely) calls should immediately get shunted over to the other > box. > How > do I set that up? > 2) How do I automatically trigger a sofia recover? I know via > commanline > it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do > that? > And I suppose a reload_xml before (maybe after?) is a good idea, > too. > Also, can I put <param name="track-calls" value="true"/> in a global > file, > or does it need to be in the actual profile files? > And anything else I may be overlooking. > Thanks guys! > -Avi Marcus > > _______________________________________________ > 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 > >
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
_______________________________________________ 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
_______________________________________________ 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
-- Ghulam Mustafa cell: +92 333.611.7681 sip: cyrenity@ekiga.net mail: mustafa.pk@gmail.com web: cyrenity.wordpress.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
_______________________________________________ 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
it's a solution also, but you can also use LSB FS startup script in HB/Pacemaker with some modifications to be fully compliant ----- Original Message ----- From: "Steven Ayre" <steveayre@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Sunday, January 02, 2011 11:27 AM Subject: Re: [Freeswitch-users] FreeSWITCH & Heartbeat / Pacemaker - Please Help setting up You would create a new fs resource agent http://www.linux-ha.org/wiki/Resource_Agents Essentially, they're programs (can be a shell script) given run with start stop etc arguments when an action needs to be done. You can run other commands such as fs_cli from there. I haven't written one from scratch myself though, I just use IPAddr2. Perhaps it would be useful for someone to create an example one in trunk or contrib? -Steve On 2 January 2011 16:16, Avi Marcus <Avi@amarcus.com> wrote:
Where would that go? /me is confused.
On Sun, Jan 2, 2011 at 5:36 PM, Ghulam Mustafa <mustafa.pk@gmail.com> wrote:
Hi, for testing purposes i modified IPaddr ocf script on both nodes and added following line at the end of start_ipaddr. /opt/switch/bin/fs_cli -x "sofia recover"
On 1/2/11, Steven Ayre <steveayre@gmail.com> wrote:
It's an API command that you can run via ESL. You can do that from a script using fs_cli and its -x/--execute option.
Something like this:
fs_cli --host=otherhost --password=secretpasswd --execute="sofia recover"
-Steve
On 2 January 2011 09:43, Avi Marcus <Avi@amarcus.com> wrote:
Thanks, I noticed the -nonat already. What do you mean by running sofia recover from my init script? I don't understand how that would be triggered by heartbeat/pacemaker. Any explanatory docs on the issue would be nice, but everything I've seen was explaining exact parts and nothing ever seemed to explain the general syntax of everything. Does anyone have a working example that they can wikify and explain? Thanks, Avi
On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <dujinfang@gmail.com> wrote:
the wiki page already said you can start the spare FS ahead to speed switch over up.
it means if you use ip_nonlocal_bind and start the spare FS ahead, you only need to run sofia recover in you init script without waiting for the actually FS start process.
On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com> wrote:
1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up?
Just a tip, I start fs with -nonat and find that makes it start faster.
Steve on iPhone On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote:
Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel. Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too. Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking. Thanks guys! -Avi Marcus
_______________________________________________ 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
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
_______________________________________________ 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
_______________________________________________ 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
-- Ghulam Mustafa cell: +92 333.611.7681 sip: cyrenity@ekiga.net mail: mustafa.pk@gmail.com web: cyrenity.wordpress.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
_______________________________________________ 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
Yes, yes: fs_cli -x "sofia recover" I understand the freeswitch parts. Now how does that get set up with heartbeat/pacemaker? You seem to assume I have a working pacemaker understanding, which I do not. I wouldn't mind learning about it *if I saw any docs that made sense.* -Avi On Sun, Jan 2, 2011 at 12:31 PM, Steven Ayre <steveayre@gmail.com> wrote:
It's an API command that you can run via ESL. You can do that from a script using fs_cli and its -x/--execute option.
Something like this:
fs_cli --host=otherhost --password=secretpasswd --execute="sofia recover"
-Steve
On 2 January 2011 09:43, Avi Marcus <Avi@amarcus.com> wrote:
Thanks, I noticed the -nonat already. What do you mean by running sofia recover from my init script? I don't understand how that would be triggered by heartbeat/pacemaker. Any explanatory docs on the issue would be nice, but everything I've seen was explaining exact parts and nothing ever seemed to explain the general syntax of everything. Does anyone have a working example that they can wikify and explain? Thanks, Avi
On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <dujinfang@gmail.com> wrote:
the wiki page already said you can start the spare FS ahead to speed switch over up.
it means if you use ip_nonlocal_bind and start the spare FS ahead, you only need to run sofia recover in you init script without waiting for the actually FS start process.
On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com>
wrote:
1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up?
Just a tip, I start fs with -nonat and find that makes it start faster.
Steve on iPhone On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote:
Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel. Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too. Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking. Thanks guys! -Avi Marcus
_______________________________________________ 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
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
_______________________________________________ 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
_______________________________________________ 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
Avi, I think this thread is more related to HB/Pacemaker. they have a lot of doc of how to create a cluster. Maybe go to check it, because as I said to you you can't build a cluster with only a thread in Freeswitchy ----- Original Message ----- From: Avi Marcus To: FreeSWITCH Users Help Sent: Sunday, January 02, 2011 10:38 AM Subject: Re: [Freeswitch-users] FreeSWITCH & Heartbeat / Pacemaker - Please Help setting up Yes, yes: fs_cli -x "sofia recover" I understand the freeswitch parts. Now how does that get set up with heartbeat/pacemaker? You seem to assume I have a working pacemaker understanding, which I do not. I wouldn't mind learning about it *if I saw any docs that made sense.* -Avi On Sun, Jan 2, 2011 at 12:31 PM, Steven Ayre <steveayre@gmail.com> wrote: It's an API command that you can run via ESL. You can do that from a script using fs_cli and its -x/--execute option. Something like this: fs_cli --host=otherhost --password=secretpasswd --execute="sofia recover" -Steve On 2 January 2011 09:43, Avi Marcus <Avi@amarcus.com> wrote: > Thanks, I noticed the -nonat already. > What do you mean by running sofia recover from my init script? I > don't understand how that would be triggered by heartbeat/pacemaker. Any > explanatory docs on the issue would be nice, but everything I've seen was > explaining exact parts and nothing ever seemed to explain the general syntax > of everything. > Does anyone have a working example that they can wikify and explain? > Thanks, > Avi > > On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <dujinfang@gmail.com> wrote: >> >> the wiki page already said you can start the spare FS ahead to speed >> switch over up. >> >> it means if you use ip_nonlocal_bind and start the spare FS ahead, you >> only need to run sofia recover in you init script without waiting for >> the actually FS start process. >> >> On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com> wrote: >> > 1) It seems freeswitch takes 8 seconds to restart. So if it crashes >> > (unlikely) calls should immediately get shunted over to the other box. >> > How >> > do I set that up? >> > >> > Just a tip, I start fs with -nonat and find that makes it start faster. >> > >> > Steve on iPhone >> > On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote: >> > >> > Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so >> > far, >> > no need to load balance.) >> > I already have heartbeat able to grab the public IP if the first box >> > goes >> > down, but since I'm basically completely unfamiar with pacemaker, I'd >> > like >> > some help. >> > I'd imagine I'm not the only one doing this, there should be no reason >> > for >> > me to recreate the wheel. >> > Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA >> > Specifically: >> > 1) It seems freeswitch takes 8 seconds to restart. So if it crashes >> > (unlikely) calls should immediately get shunted over to the other box. >> > How >> > do I set that up? >> > 2) How do I automatically trigger a sofia recover? I know via commanline >> > it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do >> > that? >> > And I suppose a reload_xml before (maybe after?) is a good idea, too. >> > Also, can I put <param name="track-calls" value="true"/> in a global >> > file, >> > or does it need to be in the actual profile files? >> > And anything else I may be overlooking. >> > Thanks guys! >> > -Avi Marcus >> > >> > _______________________________________________ >> > 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 >> > >> > >> >> >> >> -- >> About: http://about.me/dujinfang >> Blog: http://www.dujinfang.com >> Proj: http://www.freeswitch.org.cn >> >> _______________________________________________ >> 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 > > _______________________________________________ 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
a) Sounds great. I've googled several times. Where are the docs that you suggest I start with? b) Even so, it's been partially documented on the FreeSWITCH wiki and would be great to be finished. -Avi On Sun, Jan 2, 2011 at 8:57 PM, Madovsky <infos@madovsky.org> wrote:
Avi,
I think this thread is more related to HB/Pacemaker. they have a lot of doc of how to create a cluster. Maybe go to check it, because as I said to you you can't build a cluster with only a thread in Freeswitchy
----- Original Message ----- *From:* Avi Marcus <Avi@aMarcus.com> *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Sent:* Sunday, January 02, 2011 10:38 AM *Subject:* Re: [Freeswitch-users] FreeSWITCH & Heartbeat / Pacemaker - Please Help setting up
Yes, yes: fs_cli -x "sofia recover" I understand the freeswitch parts. Now how does that get set up with heartbeat/pacemaker?
You seem to assume I have a working pacemaker understanding, which I do not. I wouldn't mind learning about it *if I saw any docs that made sense.* -Avi
On Sun, Jan 2, 2011 at 12:31 PM, Steven Ayre <steveayre@gmail.com> wrote:
It's an API command that you can run via ESL. You can do that from a script using fs_cli and its -x/--execute option.
Something like this:
fs_cli --host=otherhost --password=secretpasswd --execute="sofia recover"
-Steve
On 2 January 2011 09:43, Avi Marcus <Avi@amarcus.com> wrote:
Thanks, I noticed the -nonat already. What do you mean by running sofia recover from my init script? I don't understand how that would be triggered by heartbeat/pacemaker. Any explanatory docs on the issue would be nice, but everything I've seen was explaining exact parts and nothing ever seemed to explain the general syntax of everything. Does anyone have a working example that they can wikify and explain? Thanks, Avi
On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <dujinfang@gmail.com> wrote:
the wiki page already said you can start the spare FS ahead to speed switch over up.
it means if you use ip_nonlocal_bind and start the spare FS ahead, you only need to run sofia recover in you init script without waiting for the actually FS start process.
On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com>
wrote:
1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up?
Just a tip, I start fs with -nonat and find that makes it start faster.
Steve on iPhone On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote:
Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, no need to load balance.) I already have heartbeat able to grab the public IP if the first box goes down, but since I'm basically completely unfamiar with pacemaker, I'd like some help. I'd imagine I'm not the only one doing this, there should be no reason for me to recreate the wheel. Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA Specifically: 1) It seems freeswitch takes 8 seconds to restart. So if it crashes (unlikely) calls should immediately get shunted over to the other box. How do I set that up? 2) How do I automatically trigger a sofia recover? I know via commanline it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? And I suppose a reload_xml before (maybe after?) is a good idea, too. Also, can I put <param name="track-calls" value="true"/> in a global file, or does it need to be in the actual profile files? And anything else I may be overlooking. Thanks guys! -Avi Marcus
_______________________________________________ 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
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
http://www.clusterlabs.org/wiki/Documentation ----- Original Message ----- From: Avi Marcus To: FreeSWITCH Users Help Sent: Sunday, January 02, 2011 2:09 PM Subject: Re: [Freeswitch-users] FreeSWITCH & Heartbeat / Pacemaker - Please Help setting up a) Sounds great. I've googled several times. Where are the docs that you suggest I start with? b) Even so, it's been partially documented on the FreeSWITCH wiki and would be great to be finished. -Avi On Sun, Jan 2, 2011 at 8:57 PM, Madovsky <infos@madovsky.org> wrote: Avi, I think this thread is more related to HB/Pacemaker. they have a lot of doc of how to create a cluster. Maybe go to check it, because as I said to you you can't build a cluster with only a thread in Freeswitchy ----- Original Message ----- From: Avi Marcus To: FreeSWITCH Users Help Sent: Sunday, January 02, 2011 10:38 AM Subject: Re: [Freeswitch-users] FreeSWITCH & Heartbeat / Pacemaker - Please Help setting up Yes, yes: fs_cli -x "sofia recover" I understand the freeswitch parts. Now how does that get set up with heartbeat/pacemaker? You seem to assume I have a working pacemaker understanding, which I do not. I wouldn't mind learning about it *if I saw any docs that made sense.* -Avi On Sun, Jan 2, 2011 at 12:31 PM, Steven Ayre <steveayre@gmail.com> wrote: It's an API command that you can run via ESL. You can do that from a script using fs_cli and its -x/--execute option. Something like this: fs_cli --host=otherhost --password=secretpasswd --execute="sofia recover" -Steve On 2 January 2011 09:43, Avi Marcus <Avi@amarcus.com> wrote: > Thanks, I noticed the -nonat already. > What do you mean by running sofia recover from my init script? I > don't understand how that would be triggered by heartbeat/pacemaker. Any > explanatory docs on the issue would be nice, but everything I've seen was > explaining exact parts and nothing ever seemed to explain the general syntax > of everything. > Does anyone have a working example that they can wikify and explain? > Thanks, > Avi > > On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <dujinfang@gmail.com> wrote: >> >> the wiki page already said you can start the spare FS ahead to speed >> switch over up. >> >> it means if you use ip_nonlocal_bind and start the spare FS ahead, you >> only need to run sofia recover in you init script without waiting for >> the actually FS start process. >> >> On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com> wrote: >> > 1) It seems freeswitch takes 8 seconds to restart. So if it crashes >> > (unlikely) calls should immediately get shunted over to the other box. >> > How >> > do I set that up? >> > >> > Just a tip, I start fs with -nonat and find that makes it start faster. >> > >> > Steve on iPhone >> > On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote: >> > >> > Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so >> > far, >> > no need to load balance.) >> > I already have heartbeat able to grab the public IP if the first box >> > goes >> > down, but since I'm basically completely unfamiar with pacemaker, I'd >> > like >> > some help. >> > I'd imagine I'm not the only one doing this, there should be no reason >> > for >> > me to recreate the wheel. >> > Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA >> > Specifically: >> > 1) It seems freeswitch takes 8 seconds to restart. So if it crashes >> > (unlikely) calls should immediately get shunted over to the other box. >> > How >> > do I set that up? >> > 2) How do I automatically trigger a sofia recover? I know via commanline >> > it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do >> > that? >> > And I suppose a reload_xml before (maybe after?) is a good idea, too. >> > Also, can I put <param name="track-calls" value="true"/> in a global >> > file, >> > or does it need to be in the actual profile files? >> > And anything else I may be overlooking. >> > Thanks guys! >> > -Avi Marcus >> > >> > _______________________________________________ >> > 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 >> > >> > >> >> >> >> -- >> About: http://about.me/dujinfang >> Blog: http://www.dujinfang.com >> Proj: http://www.freeswitch.org.cn >> >> _______________________________________________ >> 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 > > _______________________________________________ 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 _______________________________________________ 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
I use HB/Pacemaker, tried to hack the original FS init script, but didn't succeed to work it well until now (when a FS fails, the failover fails also in Pacemaker. so I decided to create a cron task that ping/telnet/start/stop every FS Fanck ----- Original Message ----- From: Avi Marcus To: FreeSWITCH Users Help Sent: Sunday, January 02, 2011 4:43 AM Subject: Re: [Freeswitch-users] FreeSWITCH & Heartbeat / Pacemaker - Please Help setting up Thanks, I noticed the -nonat already. What do you mean by running sofia recover from my init script? I don't understand how that would be triggered by heartbeat/pacemaker. Any explanatory docs on the issue would be nice, but everything I've seen was explaining exact parts and nothing ever seemed to explain the general syntax of everything. Does anyone have a working example that they can wikify and explain? Thanks, Avi On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <dujinfang@gmail.com> wrote: the wiki page already said you can start the spare FS ahead to speed switch over up. it means if you use ip_nonlocal_bind and start the spare FS ahead, you only need to run sofia recover in you init script without waiting for the actually FS start process. On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <steveayre@gmail.com> wrote: > 1) It seems freeswitch takes 8 seconds to restart. So if it crashes > (unlikely) calls should immediately get shunted over to the other box. How > do I set that up? > > Just a tip, I start fs with -nonat and find that makes it start faster. > > Steve on iPhone > On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote: > > Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so far, > no need to load balance.) > I already have heartbeat able to grab the public IP if the first box goes > down, but since I'm basically completely unfamiar with pacemaker, I'd like > some help. > I'd imagine I'm not the only one doing this, there should be no reason for > me to recreate the wheel. > Info should be on: http://wiki.freeswitch.org/wiki/Freeswitch_HA > Specifically: > 1) It seems freeswitch takes 8 seconds to restart. So if it crashes > (unlikely) calls should immediately get shunted over to the other box. How > do I set that up? > 2) How do I automatically trigger a sofia recover? I know via commanline > it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do that? > And I suppose a reload_xml before (maybe after?) is a good idea, too. > Also, can I put <param name="track-calls" value="true"/> in a global file, > or does it need to be in the actual profile files? > And anything else I may be overlooking. > Thanks guys! > -Avi Marcus > > _______________________________________________ > 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 > > -- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn _______________________________________________ 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 (8)
-
Avi Marcus
-
Carlos Lopez
-
Ghulam Mustafa
-
Hector Geraldino
-
Madovsky
-
Michael Collins
-
Seven Du
-
Steven Ayre