It an experimental setup to check the resource utilization and threading, also will keep the structure simple and manageable plus different recording directories.<br><br>Regards<br>Sam<br><br><div class="gmail_quote">On Tue, Jan 11, 2011 at 9:41 PM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Any reason you have FS installed in two locations?<br><br>You can save some disk space by two versions from the same path.<br>
<br>ss5:/opt/freeswitch/bin# ./freeswitch --help<br>these are the optional arguments you can pass to freeswitch<br>
-nf -- no forking<br> -u [user] -- specify user to switch to<br> -g [group] -- specify group to switch to<br> -help -- this message<br>
-version -- print the version and exit<br> -waste -- allow memory waste<br> -core -- dump cores<br> -hp -- enable high priority settings<br>
-vg -- run under valgrind<br> -nosql -- disable internal sql scoreboard<br> -heavy-timer -- Heavy Timer, possibly more accurate but at a cost<br> -nonat -- disable auto nat detection<br>
-nocal -- disable clock calibration<br> -nort -- disable clock clock_realtime<br> -stop -- stop freeswitch<br> -nc -- do not output to a console and background<br>
-ncwait -- do not output to a console and background but wait until the system is ready before exiting (implies -nc)<br> -c -- output to a console and stay in the foreground<br>
-conf [confdir] -- specify an alternate config dir<br> -log [logdir] -- specify an alternate log dir<br> -run [rundir] -- specify an alternate run dir<br> -db [dbdir] -- specify an alternate db dir<br>
-mod [moddir] -- specify an alternate mod dir<br> -htdocs [htdocsdir] -- specify an alternate htdocs dir<br> -scripts [scriptsdir] -- specify an alternate scripts dir<br><br>Those last -conf -log -run -db options would let you use different directories for configs, logs and sqlite databases per-instance but use the same binaries and modules.<br>
<br>Of course there's no reason not to do it the way you are now - it'll just save a bit of space this way.<br><br>You can also use two SIP profiles to have the same FS process listen on 2 different IPs. I guess you have a reason though for having them separated into two processes though.<br>
<br>-Steve<div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On 11 January 2011 16:08, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
/usr/local/FS_1/bin/fs_cli -P 8021<br>/usr/local/FS_2/bin/fs_cli -P 8022<br><br>fs_cll doesn't read any config file. It's not part of the FS server at all, you can have it on a different machine that doesn't have FS installed. It entirely relies on the arguments to control where to connect to.<br>
<br>-Steve<div><div></div><div><br><br><br><div class="gmail_quote">On 11 January 2011 15:04, Sam <span dir="ltr"><<a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Something more here ... i am getting the console for 192.168.2.1 every time i do fs_cli on both instances .<br><br>like <br>/usr/local/FS_1/bin/fs_cli<br>/usr/localFS_2/bin/fs_cli<br>i get the console for the 1st server only<br>
<br>the 2 server are listing to 2 different ips .<br><br>Regds<br><font color="#888888">Sam</font><div><div></div><div><br><br><div class="gmail_quote">On Tue, Jan 11, 2011 at 8:07 PM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It should work. Is there anything already listening on port 8022?<br>
<br>
$ netstat -a -n -p | grep 8022<br>
<br>
Are you also sure that they're not both loading the same config file?<br>
<br>
Regards,<br>
-Steve<br>
<div><div></div><div><br>
<br>
<br>
On 11 January 2011 14:32, Sam <<a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>> wrote:<br>
> the scenario is i have 2 ips on 1 server for 2 FS instances;<br>
><br>
> 192.168.2.1<br>
> 192.168.2.2<br>
><br>
> and the parameters i have set is:-<br>
><br>
> for<br>
> 192.168.2.1:-<br>
> <param name="listen-ip" value="127.0.0.1"/><br>
> <param name="listen-port" value="8021"/><br>
> for<br>
> 192.168.2.2:-<br>
> <param name="listen-ip" value="127.0.0.1"/><br>
> <param name="listen-port" value="8022"/><br>
><br>
> Ideally it should work but i am getting console for only 192.168.2.1 FS .<br>
><br>
><br>
> Regards<br>
> Sam<br>
><br>
> On Tue, Jan 11, 2011 at 4:20 PM, Steven Ayre <<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>> wrote:<br>
>><br>
>> <param name="listen-ip" value="127.0.0.1"/><br>
>> <param name="listen-port" value="8021"/><br>
>><br>
>> You can bind both to port 8021 on their individual IPs, or different<br>
>> ports on the same IP.<br>
>><br>
>> A listen IP of 0.0.0.0 will mean any IP.<br>
>><br>
>> -Steve<br>
>><br>
>> On 11 January 2011 10:44, Sam <<a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>> wrote:<br>
>> > A query,<br>
>> ><br>
>> > I have 2 FS running on one server on 2 different ips,<br>
>> > so when i do fs_cli going to respective bins , i see console of only the<br>
>> > first server.<br>
>> ><br>
>> > Is there any way to get the console of both the FS on the same server .<br>
>> > I tried changing the port of event socket to 8022 but it donot works.<br>
>> > <param name="listen-port" value="8022"/><br>
>> ><br>
>> > Is there some method to start the console of both the instances.<br>
>> ><br>
>> > Regds<br>
>> > Sam<br>
>> ><br>
>> > _______________________________________________<br>
>> > FreeSWITCH-users mailing list<br>
>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><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></blockquote></div><br>