<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META name=GENERATOR content="MSHTML 8.00.6001.18999"></HEAD>
<BODY>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=656004917-12012011>Did 
you ever try&nbsp;using netstat like Steven suggested?&nbsp; What do you get as 
output for "netstat -tunlp"?</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN 
class=656004917-12012011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=656004917-12012011>In one 
of your commands below you show 127.0.0.2 instead of 127.0.0.1 so if that's not 
a typo you may want to try it again.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN 
class=656004917-12012011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN 
class=656004917-12012011>-Justin</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN 
class=656004917-12012011></SPAN></FONT>&nbsp;</DIV>
<BLOCKQUOTE>
  <DIV dir=ltr class=OutlookMessageHeader align=left><FONT size=2 
  face=Tahoma>-----Original Message-----<BR><B>From:</B> 
  freeswitch-users-bounces@lists.freeswitch.org 
  [mailto:freeswitch-users-bounces@lists.freeswitch.org]<B>On Behalf Of 
  </B>Sam<BR><B>Sent:</B> Tuesday, January 11, 2011 9:27 PM<BR><B>To:</B> 
  FreeSWITCH Users Help<BR><B>Subject:</B> Re: [Freeswitch-users] 
  console<BR><BR></FONT></DIV>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 
  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 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 Error]<BR><BR><BR><SPAN 
  style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px" 
  class=Apple-style-span><PRE><I>netstat -nlp | grep ; ports 8081 &amp; 8082 are available</I></PRE></SPAN>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>
  <DIV class=gmail_quote>On Tue, Jan 11, 2011 at 10:54 PM, Steven Ayre <SPAN 
  dir=ltr>&lt;<A 
  href="mailto:steveayre@gmail.com">steveayre@gmail.com</A>&gt;</SPAN> 
wrote:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>Actually, correction it does - just not the 
    event_socket.conf.xml one. It'll read .fs_cli_conf in your home directory if 
    it exists, but that isn't created by default - you create it yourself if you 
    want to use it (it's optional). The command line arguments -H and -P -will- 
    override the config file though.<BR><BR>Are you using a capital P? -p is 
    password while -P is port. If there's no password on the event socket you'd 
    get no error from using a small p by accident.<BR><BR>-Steve
    <DIV>
    <DIV></DIV>
    <DIV class=h5><BR><BR><BR><BR><BR><BR>
    <DIV class=gmail_quote>On 11 January 2011 16:59, Steven Ayre <SPAN 
    dir=ltr>&lt;<A href="mailto:steveayre@gmail.com" 
    target=_blank>steveayre@gmail.com</A>&gt;</SPAN> wrote:<BR>
    <BLOCKQUOTE 
    style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
    class=gmail_quote>It does not read any config file.
      <DIV>
      <DIV></DIV>
      <DIV><BR><BR><BR><BR><BR>
      <DIV class=gmail_quote>On 11 January 2011 16:56, Sam <SPAN dir=ltr>&lt;<A 
      href="mailto:u2nsam@gmail.com" 
      target=_blank>u2nsam@gmail.com</A>&gt;</SPAN> wrote:<BR>
      <BLOCKQUOTE 
      style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote>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 is reading the 
        config only of 192.168.2.1, though its in the different [FS_1 &amp; 
        FS_2] path where i am executing.<BR><BR>Regds<BR><FONT 
        color=#888888>Sam</FONT>
        <DIV>
        <DIV></DIV>
        <DIV><BR><BR><BR>
        <DIV class=gmail_quote>On Tue, Jan 11, 2011 at 9:38 PM, Steven Ayre 
        <SPAN dir=ltr>&lt;<A href="mailto:steveayre@gmail.com" 
        target=_blank>steveayre@gmail.com</A>&gt;</SPAN> wrote:<BR>
        <BLOCKQUOTE 
        style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
        class=gmail_quote>/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>&lt;<A href="mailto:u2nsam@gmail.com" 
          target=_blank>u2nsam@gmail.com</A>&gt;</SPAN> wrote:<BR>
          <BLOCKQUOTE 
          style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
          class=gmail_quote>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>&lt;<A href="mailto:steveayre@gmail.com" 
            target=_blank>steveayre@gmail.com</A>&gt;</SPAN> wrote:<BR>
            <BLOCKQUOTE 
            style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
            class=gmail_quote>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 &lt;<A 
              href="mailto:u2nsam@gmail.com" 
              target=_blank>u2nsam@gmail.com</A>&gt; wrote:<BR>&gt; the scenario 
              is i have 2 ips on 1 server for 2 FS instances;<BR>&gt;<BR>&gt; 
              192.168.2.1<BR>&gt; 192.168.2.2<BR>&gt;<BR>&gt; and the parameters 
              i have set is:-<BR>&gt;<BR>&gt; for<BR>&gt; 192.168.2.1:-<BR>&gt; 
              &nbsp;&nbsp; &lt;param name="listen-ip" 
              value="127.0.0.1"/&gt;<BR>&gt; &nbsp; &nbsp;&lt;param 
              name="listen-port" value="8021"/&gt;<BR>&gt; for<BR>&gt; 
              192.168.2.2:-<BR>&gt; &nbsp;&nbsp; &lt;param name="listen-ip" 
              value="127.0.0.1"/&gt;<BR>&gt; &nbsp; &nbsp;&lt;param 
              name="listen-port" value="8022"/&gt;<BR>&gt;<BR>&gt; Ideally it 
              should work&nbsp; but i am getting console for only 192.168.2.1 FS 
              .<BR>&gt;<BR>&gt;<BR>&gt; Regards<BR>&gt; Sam<BR>&gt;<BR>&gt; On 
              Tue, Jan 11, 2011 at 4:20 PM, Steven Ayre &lt;<A 
              href="mailto:steveayre@gmail.com" 
              target=_blank>steveayre@gmail.com</A>&gt; 
              wrote:<BR>&gt;&gt;<BR>&gt;&gt; &nbsp; &nbsp;&lt;param 
              name="listen-ip" value="127.0.0.1"/&gt;<BR>&gt;&gt; &nbsp; 
              &nbsp;&lt;param name="listen-port" 
              value="8021"/&gt;<BR>&gt;&gt;<BR>&gt;&gt; You can bind both to 
              port 8021 on their individual IPs, or different<BR>&gt;&gt; ports 
              on the same IP.<BR>&gt;&gt;<BR>&gt;&gt; A listen IP of 0.0.0.0 
              will mean any IP.<BR>&gt;&gt;<BR>&gt;&gt; 
              -Steve<BR>&gt;&gt;<BR>&gt;&gt; On 11 January 2011 10:44, Sam 
              &lt;<A href="mailto:u2nsam@gmail.com" 
              target=_blank>u2nsam@gmail.com</A>&gt; wrote:<BR>&gt;&gt; &gt; A 
              query,<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; I have 2 FS running on 
              one server on 2 different ips,<BR>&gt;&gt; &gt; so when i do 
              fs_cli going to respective bins , i see console of only 
              the<BR>&gt;&gt; &gt; first server.<BR>&gt;&gt; &gt;<BR>&gt;&gt; 
              &gt; Is there any way to get the console of both the FS on the 
              same server .<BR>&gt;&gt; &gt; I tried changing the port of event 
              socket to 8022 but it donot works.<BR>&gt;&gt; &gt; &lt;param 
              name="listen-port" value="8022"/&gt;<BR>&gt;&gt; &gt;<BR>&gt;&gt; 
              &gt; Is there some method to start the console of both the 
              instances.<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; Regds<BR>&gt;&gt; 
              &gt; Sam<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; 
              _______________________________________________<BR>&gt;&gt; &gt; 
              FreeSWITCH-users mailing list<BR>&gt;&gt; &gt; <A 
              href="mailto:FreeSWITCH-users@lists.freeswitch.org" 
              target=_blank>FreeSWITCH-users@lists.freeswitch.org</A><BR>&gt;&gt; 
              &gt; <A 
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" 
              target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>&gt;&gt; 
              &gt; UNSUBSCRIBE:<A 
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users" 
              target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR>&gt;&gt; 
              &gt; <A href="http://www.freeswitch.org" 
              target=_blank>http://www.freeswitch.org</A><BR>&gt;&gt; 
              &gt;<BR>&gt;&gt; &gt;<BR>&gt;&gt;<BR>&gt;&gt; 
              _______________________________________________<BR>&gt;&gt; 
              FreeSWITCH-users mailing list<BR>&gt;&gt; <A 
              href="mailto:FreeSWITCH-users@lists.freeswitch.org" 
              target=_blank>FreeSWITCH-users@lists.freeswitch.org</A><BR>&gt;&gt; 
              <A 
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" 
              target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>&gt;&gt; 
              UNSUBSCRIBE:<A 
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users" 
              target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR>&gt;&gt; 
              <A href="http://www.freeswitch.org" 
              target=_blank>http://www.freeswitch.org</A><BR>&gt;<BR>&gt;<BR>&gt; 
              _______________________________________________<BR>&gt; 
              FreeSWITCH-users mailing list<BR>&gt; <A 
              href="mailto:FreeSWITCH-users@lists.freeswitch.org" 
              target=_blank>FreeSWITCH-users@lists.freeswitch.org</A><BR>&gt; <A 
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" 
              target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>&gt; 
              UNSUBSCRIBE:<A 
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users" 
              target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR>&gt; 
              <A href="http://www.freeswitch.org" 
              target=_blank>http://www.freeswitch.org</A><BR>&gt;<BR>&gt;<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><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><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></BLOCKQUOTE></BODY></HTML>