<div dir="ltr">Where would that go?<div>/me is confused.<br><br><div class="gmail_quote">On Sun, Jan 2, 2011 at 5:36 PM, Ghulam Mustafa <span dir="ltr"><<a href="http://mustafa.pk">mustafa.pk</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi, for testing purposes i modified IPaddr ocf script on both nodes<br>
and added following line at the end of start_ipaddr.<br>
/opt/switch/bin/fs_cli -x "sofia recover"<br>
<div><div></div><div class="h5"><br>
On 1/2/11, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
> It's an API command that you can run via ESL. You can do that from a<br>
> script using fs_cli and its -x/--execute option.<br>
><br>
> Something like this:<br>
><br>
> fs_cli --host=otherhost --password=secretpasswd --execute="sofia recover"<br>
><br>
> -Steve<br>
><br>
><br>
> On 2 January 2011 09:43, Avi Marcus <<a href="mailto:Avi@amarcus.com">Avi@amarcus.com</a>> wrote:<br>
>> Thanks, I noticed the -nonat already.<br>
>> What do you mean by running sofia recover from my init script? I<br>
>> don't understand how that would be triggered by heartbeat/pacemaker. Any<br>
>> explanatory docs on the issue would be nice, but everything I've seen was<br>
>> explaining exact parts and nothing ever seemed to explain the general<br>
>> syntax<br>
>> of everything.<br>
>> Does anyone have a working example that they can wikify and explain?<br>
>> Thanks,<br>
>> Avi<br>
>><br>
>> On Sun, Jan 2, 2011 at 4:06 AM, Seven Du <<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>> wrote:<br>
>>><br>
>>> the wiki page already said you can start the spare FS ahead to speed<br>
>>> switch over up.<br>
>>><br>
>>> it means if you use ip_nonlocal_bind and start the spare FS ahead, you<br>
>>> only need to run sofia recover in you init script without waiting for<br>
>>> the actually FS start process.<br>
>>><br>
>>> On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
>>> > 1) It seems freeswitch takes 8 seconds to restart. So if it crashes<br>
>>> > (unlikely) calls should immediately get shunted over to the other box.<br>
>>> > How<br>
>>> > do I set that up?<br>
>>> ><br>
>>> > Just a tip, I start fs with -nonat and find that makes it start faster.<br>
>>> ><br>
>>> > Steve on iPhone<br>
>>> > On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com> wrote:<br>
>>> ><br>
>>> > Hi - I'm setting up 2 parallel computers for a HA setup. (low volume so<br>
>>> > far,<br>
>>> > no need to load balance.)<br>
>>> > I already have heartbeat able to grab the public IP if the first box<br>
>>> > goes<br>
>>> > down, but since I'm basically completely unfamiar with pacemaker, I'd<br>
>>> > like<br>
>>> > some help.<br>
>>> > I'd imagine I'm not the only one doing this, there should be no reason<br>
>>> > for<br>
>>> > me to recreate the wheel.<br>
>>> > Info should be on: <a href="http://wiki.freeswitch.org/wiki/Freeswitch_HA" target="_blank">http://wiki.freeswitch.org/wiki/Freeswitch_HA</a><br>
>>> > Specifically:<br>
>>> > 1) It seems freeswitch takes 8 seconds to restart. So if it crashes<br>
>>> > (unlikely) calls should immediately get shunted over to the other box.<br>
>>> > How<br>
>>> > do I set that up?<br>
>>> > 2) How do I automatically trigger a sofia recover? I know via<br>
>>> > commanline<br>
>>> > it's "fs_cli -x "sofia recover" but where do I tell pacemaker to do<br>
>>> > that?<br>
>>> > And I suppose a reload_xml before (maybe after?) is a good idea, too.<br>
>>> > Also, can I put <param name="track-calls" value="true"/> in a global<br>
>>> > file,<br>
>>> > or does it need to be in the actual profile files?<br>
>>> > And anything else I may be overlooking.<br>
>>> > Thanks guys!<br>
>>> > -Avi Marcus<br>
>>> ><br>
>>> > _______________________________________________<br>
>>> > FreeSWITCH-users mailing list<br>
>>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>> ><br>
>>> > _______________________________________________<br>
>>> > FreeSWITCH-users mailing list<br>
>>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>> ><br>
>>> ><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> About: <a href="http://about.me/dujinfang" target="_blank">http://about.me/dujinfang</a><br>
>>> Blog: <a href="http://www.dujinfang.com" target="_blank">http://www.dujinfang.com</a><br>
>>> Proj: <a href="http://www.freeswitch.org.cn" target="_blank">http://www.freeswitch.org.cn</a><br>
>>><br>
>>> _______________________________________________<br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
<br>
<br>
</div></div><font color="#888888">--<br>
Ghulam Mustafa<br>
cell: +92 333.611.7681<br>
sip: <a href="mailto:cyrenity@ekiga.net">cyrenity@ekiga.net</a><br>
mail: <a href="http://mustafa.pk" target="_blank">mustafa.pk</a>@<a href="http://gmail.com" target="_blank">gmail.com</a><br>
web: <a href="http://cyrenity.wordpress.com" target="_blank">cyrenity.wordpress.com</a><br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div></div>