<div>I reinstalled FS 2 instances and tried doing fs_cli with 2 different ports and it worked, </div>
<div>thanks all.</div>
<div> </div>
<div>Regds</div>
<div>Sam<br><br></div>
<div class="gmail_quote">On Thu, Jan 13, 2011 at 11:18 PM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Sam,<br><br>Run these command as root with both versions of FS started. If FreeSWITCH is running you should see 2 lines like below.<br>
<br>$ netstat -anp | grep 8021<br>tcp 0 0 <a href="http://127.0.0.1:8021/" target="_blank">127.0.0.1:8021</a> 0.0.0.0:* LISTEN 15394/freeswitch<br>$ netstat -anp | grep 8022<br>tcp 0 0 <a href="http://127.0.0.1:8022/" target="_blank">127.0.0.1:8022</a> 0.0.0.0:* LISTEN 15395/freeswitch<br>
<br>-Steve
<div>
<div></div>
<div class="h5"><br><br><br><br>
<div class="gmail_quote">On 13 January 2011 17:40, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">8081 8082 vs 8021 8022<br>
<div>
<div></div>
<div><br><br><br>On Wed, Jan 12, 2011 at 9:16 PM, Sam <<a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>> wrote:<br>> Yes the netstat shows the ports 8081 & 8082 not used<br>> Justin, as said earlier i have 2 FS instances running on same server and<br>
> having below config:-<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>> Here I tried all the permutation combination changing the IP port but no<br>
> sucess.<br>><br>> Regds<br>> Sam<br>><br>> On Wed, Jan 12, 2011 at 11:25 PM, JRichey <<a href="mailto:jrichey@itltd.net" target="_blank">jrichey@itltd.net</a>> wrote:<br>>><br>>> Did you ever try using netstat like Steven suggested? What do you get as<br>
>> output for "netstat -tunlp"?<br>>><br>>> In one of your commands below you show 127.0.0.2 instead of 127.0.0.1 so<br>>> if that's not a typo you may want to try it again.<br>>><br>
>> -Justin<br>>><br>>><br>>> -----Original Message-----<br>>> From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a><br>
>> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>]On Behalf Of Sam<br>>> Sent: Tuesday, January 11, 2011 9:27 PM<br>>> To: FreeSWITCH Users Help<br>
>> Subject: Re: [Freeswitch-users] console<br>>><br>>> Tried this below and received :-<br>>><br>>><br>>> # /usr/local/fs_2/bin/fs_cli -H 127.0.0.2 -P 8082<br>>> [ERROR] libs/esl/fs_cli.c:1206 main() Error Connecting [Socket Connection<br>
>> Error]<br>>><br>>> tried by creating profile:-<br>>> # /usr/local/fs_2/bin/fs_cli profile1<br>>> [ERROR] libs/esl/fs_cli.c:1206 main() Error Connecting [Socket Connection<br>>> Error]<br>
>><br>>> By port:<br>>> # /usr/local/fs_2/bin/fs_cli -P 8082<br>>> [ERROR] libs/esl/fs_cli.c:1206 main() Error Connecting [Socket Connection<br>>> Error]<br>>><br>>><br>>> netstat -nlp | grep ; ports 8081 & 8082 are available<br>
>><br>>> But i could get a console for other server by<br>>> # /usr/local/fs_2/bin/fs_cli<br>>><br>>> Regards<br>>> Sam<br>>><br>>><br>>> On Tue, Jan 11, 2011 at 10:54 PM, Steven Ayre <<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>> wrote:<br>
>>><br>>>> Actually, correction it does - just not the event_socket.conf.xml one.<br>>>> It'll read .fs_cli_conf in your home directory if it exists, but that isn't<br>>>> created by default - you create it yourself if you want to use it (it's<br>
>>> optional). The command line arguments -H and -P -will- override the config<br>>>> file though.<br>>>><br>>>> Are you using a capital P? -p is password while -P is port. If there's no<br>
>>> password on the event socket you'd get no error from using a small p by<br>>>> accident.<br>>>><br>>>> -Steve<br>>>><br>>>><br>>>><br>>>><br>
>>><br>>>> On 11 January 2011 16:59, Steven Ayre <<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>> wrote:<br>>>>><br>>>>> It does not read any config file.<br>
>>>><br>>>>><br>>>>><br>>>>><br>>>>> On 11 January 2011 16:56, Sam <<a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>> wrote:<br>>>>>><br>
>>>>> the port and ip donot work for me,<br>>>>>> is it that the fs_cli is not reading the config from 192.168.2.2 but it<br>>>>>> is reading the config only of 192.168.2.1, though its in the different [FS_1<br>
>>>>> & FS_2] path where i am executing.<br>>>>>><br>>>>>> Regds<br>>>>>> Sam<br>>>>>><br>>>>>><br>>>>>> On Tue, Jan 11, 2011 at 9:38 PM, Steven Ayre <<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>><br>
>>>>> wrote:<br>>>>>>><br>>>>>>> /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<br>
>>>>>> all, you can have it on a different machine that doesn't have FS installed.<br>>>>>>> It entirely relies on the arguments to control where to connect to.<br>>>>>>><br>
>>>>>> -Steve<br>>>>>>><br>>>>>>><br>>>>>>> On 11 January 2011 15:04, Sam <<a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>> wrote:<br>
>>>>>>><br>>>>>>>> Something more here ... i am getting the console for 192.168.2.1<br>>>>>>>> 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>>>>>>>> Sam<br>>>>>>>><br>
>>>>>>> On Tue, Jan 11, 2011 at 8:07 PM, Steven Ayre <<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>><br>>>>>>>> wrote:<br>>>>>>>>><br>
>>>>>>>> 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<br>>>>>>>>> file?<br>>>>>>>>><br>>>>>>>>> Regards,<br>
>>>>>>>> -Steve<br>>>>>>>>><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<br>>>>>>>>> > 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>><br>
>>>>>>>> > 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<br>>>>>>>>> >> 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<br>
>>>>>>>> >> > only the<br>>>>>>>>> >> > first server.<br>>>>>>>>> >> ><br>>>>>>>>> >> > Is there any way to get the console of both the FS on the same<br>
>>>>>>>> >> > server .<br>>>>>>>>> >> > I tried changing the port of event socket to 8022 but it donot<br>>>>>>>>> >> > works.<br>
>>>>>>>> >> > <param name="listen-port" value="8022"/><br>>>>>>>>> >> ><br>>>>>>>>> >> > Is there some method to start the console of both the<br>
>>>>>>>> >> > 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>
>>>>>>>> >> ><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>>>>>>>>> >><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>
>>>>>>>> ><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>>>>>>>>><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>>>>>>>><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>
>>>>>><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>>>>>><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>
>>> 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>> _______________________________________________<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><br></div></div>--<br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>IRC: <a href="http://irc.freenode.net/" target="_blank">irc.freenode.net</a> #freeswitch<br><br>
FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
<div>
<div></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>
</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>