8081 8082 vs 8021 8022 On Wed, Jan 12, 2011 at 9:16 PM, Sam <u2nsam@gmail.com> wrote:
Yes the netstat shows the ports 8081 & 8082 not used Justin, as said earlier i have 2 FS instances running on same server and having below config:- for
192.168.2.1:- <param name="listen-ip" value="127.0.0.1"/> <param name="listen-port" value="8021"/> for 192.168.2.2:- <param name="listen-ip" value="127.0.0.1"/> <param name="listen-port" value="8022"/>
Here I tried all the permutation combination changing the IP port but no sucess.
Regds Sam
On Wed, Jan 12, 2011 at 11:25 PM, JRichey <jrichey@itltd.net> wrote:
Did you ever try using netstat like Steven suggested? What do you get as output for "netstat -tunlp"?
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.
-Justin
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]On Behalf Of Sam Sent: Tuesday, January 11, 2011 9:27 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] console
Tried this below and received :-
# /usr/local/fs_2/bin/fs_cli -H 127.0.0.2 -P 8082 [ERROR] libs/esl/fs_cli.c:1206 main() Error Connecting [Socket Connection Error]
tried by creating profile:- # /usr/local/fs_2/bin/fs_cli profile1 [ERROR] libs/esl/fs_cli.c:1206 main() Error Connecting [Socket Connection Error]
By port: # /usr/local/fs_2/bin/fs_cli -P 8082 [ERROR] libs/esl/fs_cli.c:1206 main() Error Connecting [Socket Connection Error]
netstat -nlp | grep ; ports 8081 & 8082 are available
But i could get a console for other server by # /usr/local/fs_2/bin/fs_cli
Regards Sam
On Tue, Jan 11, 2011 at 10:54 PM, Steven Ayre <steveayre@gmail.com> wrote:
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.
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.
-Steve
On 11 January 2011 16:59, Steven Ayre <steveayre@gmail.com> wrote:
It does not read any config file.
On 11 January 2011 16:56, Sam <u2nsam@gmail.com> wrote:
the port and ip donot work for me, 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 & FS_2] path where i am executing.
Regds Sam
On Tue, Jan 11, 2011 at 9:38 PM, Steven Ayre <steveayre@gmail.com> wrote:
/usr/local/FS_1/bin/fs_cli -P 8021 /usr/local/FS_2/bin/fs_cli -P 8022
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.
-Steve
On 11 January 2011 15:04, Sam <u2nsam@gmail.com> wrote: > > Something more here ... i am getting the console for 192.168.2.1 > every time i do fs_cli on both instances . > > like > /usr/local/FS_1/bin/fs_cli > /usr/localFS_2/bin/fs_cli > i get the console for the 1st server only > > the 2 server are listing to 2 different ips . > > Regds > Sam > > On Tue, Jan 11, 2011 at 8:07 PM, Steven Ayre <steveayre@gmail.com> > wrote: >> >> It should work. Is there anything already listening on port 8022? >> >> $ netstat -a -n -p | grep 8022 >> >> Are you also sure that they're not both loading the same config >> file? >> >> Regards, >> -Steve >> >> >> >> On 11 January 2011 14:32, Sam <u2nsam@gmail.com> wrote: >> > the scenario is i have 2 ips on 1 server for 2 FS instances; >> > >> > 192.168.2.1 >> > 192.168.2.2 >> > >> > and the parameters i have set is:- >> > >> > for >> > 192.168.2.1:- >> > <param name="listen-ip" value="127.0.0.1"/> >> > <param name="listen-port" value="8021"/> >> > for >> > 192.168.2.2:- >> > <param name="listen-ip" value="127.0.0.1"/> >> > <param name="listen-port" value="8022"/> >> > >> > Ideally it should work but i am getting console for only >> > 192.168.2.1 FS . >> > >> > >> > Regards >> > Sam >> > >> > On Tue, Jan 11, 2011 at 4:20 PM, Steven Ayre <steveayre@gmail.com> >> > wrote: >> >> >> >> <param name="listen-ip" value="127.0.0.1"/> >> >> <param name="listen-port" value="8021"/> >> >> >> >> You can bind both to port 8021 on their individual IPs, or >> >> different >> >> ports on the same IP. >> >> >> >> A listen IP of 0.0.0.0 will mean any IP. >> >> >> >> -Steve >> >> >> >> On 11 January 2011 10:44, Sam <u2nsam@gmail.com> wrote: >> >> > A query, >> >> > >> >> > I have 2 FS running on one server on 2 different ips, >> >> > so when i do fs_cli going to respective bins , i see console of >> >> > only the >> >> > first server. >> >> > >> >> > Is there any way to get the console of both the FS on the same >> >> > server . >> >> > I tried changing the port of event socket to 8022 but it donot >> >> > works. >> >> > <param name="listen-port" value="8022"/> >> >> > >> >> > Is there some method to start the console of both the >> >> > instances. >> >> > >> >> > Regds >> >> > Sam >> >> > >> >> > _______________________________________________ >> >> > 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
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900