[Freeswitch-users] fs_cli socket connection error

Anthony Minessale anthony.minessale at gmail.com
Tue Mar 1 02:43:18 MSK 2011


that is because the module is probably not loading because that is not
a clean rebuild.

Try this:

configure --prefix=/opt/freeswitch --without-libcurl
make update-clean
make install




On Mon, Feb 28, 2011 at 5:37 PM, deniro <ayhkor at gmail.com> wrote:
>
> Anthony
> Thanks for the quick response I appreciate the help but I am not getting
> this
> Again, It was working fine before I installed  mod_xml_cdr
> configure --prefix=/opt/freeswitch --without-libcurl
> make mod_xml_cdr-install
> (no errors)
>
> I have the tar of /opt/freeswitch  before  installing mod_xml_cdr
> When I restore that tar eveything is working fine  and netstat  shows 8021
> connections.
> I tested again. Just restored from tar backup and I am able to run fs_cli
> without any problem
> my firewall settings are the same before and after tar restore.
>
> /opt# tar -xvf freeswitch.tar.feb26
> /etc/init.d/freeswitch start
> /opt# /opt/freeswitch/bin/fs_cli -H 75.xxx.xxx.xxx -P 8021
>             _____ ____     ____ _     ___
>            |  ___/ ___|   / ___| |   |_ _|
>            | |_  \___ \  | |   | |    | |
>            |  _|  ___) | | |___| |___ | |
>            |_|   |____/   \____|_____|___|
> *******************************************************
> * Anthony Minessale II, Ken Rice, Michael Jerris      *
> * FreeSWITCH (http://www.freeswitch.org)              *
> * Paypal Donations Appreciated: paypal at freeswitch.org *
> * Brought to you by ClueCon http://www.cluecon.com/   *
> *******************************************************
> Type /help <enter> to see a list of commands
> +OK log level  [7]
> freeswitch at 75.xxx.xxx.xxx@internal>
>
>
>
>
> On Mon, Feb 28, 2011 at 6:21 PM, Anthony Minessale
> <anthony.minessale at gmail.com> wrote:
>>
>> seems to me like you solved your own problem when you say you see no
>> activity.
>> It makes it pretty clear you have firewall or nat issue on your client
>> or server.
>>
>>
>> On Mon, Feb 28, 2011 at 5:18 PM, deniro <ayhkor at gmail.com> wrote:
>> > I put the log in pastebin
>> > freeswitch.log only when starting freeswitch (after stop)
>> >
>> > http://pastebin.freeswitch.org/15502
>> > thx
>> > deniro
>> > On Mon, Feb 28, 2011 at 5:46 PM, Steven Ayre <steveayre at gmail.com>
>> > wrote:
>> >>
>> >> You must check the logfile for when FS starts up - if netstat shows
>> >> nothing for port 8021 then either mod_event_socket isn't being loaded
>> >> or you'll see an error when it tries to load.
>> >>
>> >> Nothing from netstat means nothing's listening, so trying to connect
>> >> using fs_cli won't do anything.
>> >>
>> >> -Steve
>> >>
>> >>
>> >> On 28 February 2011 22:40, deniro <ayhkor at gmail.com> wrote:
>> >> > Checked the log
>> >> > Nothing is logged when
>> >> > fs_cli -d 7 -H 75.xxx.xxx.xxx -P 8021
>> >> > is issued
>> >> > /opt/freeswitch/log# tail -f freeswitch.log
>> >> >
>> >> > ls -l freeswitch.log
>> >> > -rwxrwxrwx 1 freeswitch daemon 33018 2011-02-28 17:39 freeswitch.log
>> >> > thx
>> >> >
>> >> >
>> >> >
>> >> > On Mon, Feb 28, 2011 at 3:59 PM, Peter Olsson
>> >> > <peter.olsson at visionutveckling.se> wrote:
>> >> >>
>> >> >> Check freeswitch.log, it probably reports some problem when loading
>> >> >> the
>> >> >> mod_event_socket module.
>> >> >>
>> >> >> /Peter
>> >> >> ________________________________________
>> >> >> Från: freeswitch-users-bounces at lists.freeswitch.org
>> >> >> [freeswitch-users-bounces at lists.freeswitch.org] f&#246;r deniro
>> >> >> [ayhkor at gmail.com]
>> >> >> Skickat: den 28 februari 2011 21:42
>> >> >> Till: FreeSWITCH Users Help
>> >> >> Ämne: Re: [Freeswitch-users] fs_cli socket connection error
>> >> >>
>> >> >> Steve
>> >> >> Thanks for the reply
>> >> >> netstat -anlp | grep 8021  is blank (nothing showing up)
>> >> >>
>> >> >> /opt/freeswitch/bin/fs_cli -d 7 -H 75.xxx.xxx.xxx -P 8021
>> >> >> [DEBUG] libs/esl/src/esl_config.c:56 esl_config_open_file()
>> >> >> Configuration
>> >> >> file is /root/.fs_cli_conf.
>> >> >> [DEBUG] libs/esl/src/esl_config.c:56 esl_config_open_file()
>> >> >> Configuration
>> >> >> file is /etc/fs_cli.conf.
>> >> >> [DEBUG] libs/esl/fs_cli.c:1159 main() profile default does not exist
>> >> >> using
>> >> >> builtin profile
>> >> >> [DEBUG] libs/esl/fs_cli.c:1188 main() Using profile internal
>> >> >> [75.xxx.xxx.xxx]
>> >> >> [ERROR] libs/esl/fs_cli.c:1206 main() Error Connecting [Socket
>> >> >> Connection
>> >> >> Error]
>> >> >> yes mod_event_socket is after  mod_xml_curl but I changed the order
>> >> >> in
>> >> >>  modules.conf.xml
>> >> >> still getting above (restarted freeswitch)
>> >> >>
>> >> >> thx
>> >> >> deniro--
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Mon, Feb 28, 2011 at 3:35 AM, Steven Ayre
>> >> >> <steveayre at gmail.com<mailto:steveayre at gmail.com>> wrote:
>> >> >> Enable debug logging and you should see an error that'll tell you
>> >> >> more.
>> >> >>
>> >> >> Is mod_event_socket loading before or after mod_xml_curl? Chances
>> >> >> are
>> >> >> mod_xml_curl is loading first, so it's trying to read
>> >> >> event_socket.conf.xml and/or acl.conf.xml through xml_curl and
>> >> >> either
>> >> >> getting a different config to your previous local copy or the ACLs
>> >> >> are
>> >> >> different.
>> >> >>
>> >> >> What does "netstat -anlp | grep :8021" from the linux cli show you?
>> >> >> Does it show that freeswitch is actually listening on the port? If
>> >> >> it
>> >> >> is it's probably an ACL problem, if it isn't then it's probably a
>> >> >> problem with event_socket.conf.xml
>> >> >>
>> >> >> -Steve
>> >> >>
>> >> >> On 28 February 2011 00:53, deniro
>> >> >> <ayhkor at gmail.com<mailto:ayhkor at gmail.com>> wrote:
>> >> >> > What would be possible reasons for this and how to resolve?
>> >> >> > running fs 106 on ubuntu 10.04 server
>> >> >> >
>> >> >> > /opt/freeswitch/bin/fs_cli -H xxx.xxx.xxx.xxx -P 8021
>> >> >> > [ERROR] libs/esl/fs_cli.c:1206 main() Error Connecting [Socket
>> >> >> > Connection
>> >> >> > Error]
>> >> >> > was working fine before I installed  mod_xml_cdr
>> >> >> > configure --prefix=/opt/freeswitch --without-libcurl
>> >> >> > make mod_xml_cdr-install
>> >> >> > (no errors)
>> >> >> >
>> >> >> > in modules.conf.xml
>> >> >> > <load module="mod_event_socket"/>
>> >> >> >
>> >> >> > is there a packaged version of mod_xml_cdr (for fs 1.0.6)?
>> >> >> >
>> >> >> > thx
>> >> >> > deniro--
>> >> >> > _______________________________________________
>> >> >> > FreeSWITCH-users mailing list
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
>> >> >> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> >> >> >
>> >> >> >
>> >> >> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> >> >> > http://www.freeswitch.org<http://www.freeswitch.org/>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> _______________________________________________
>> >> >> FreeSWITCH-users mailing list
>> >> >>
>> >> >>
>> >> >>
>> >> >> FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
>> >> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> >> >>
>> >> >>
>> >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> >> >> http://www.freeswitch.org<http://www.freeswitch.org/>
>> >> >>
>> >> >> !DSPAM:4d6c0a1132761029518849!
>> >> >>
>> >> >> _______________________________________________
>> >> >> FreeSWITCH-users mailing list
>> >> >> FreeSWITCH-users at 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 at 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 at 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 at 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 at hotmail.com
>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>> IRC: irc.freenode.net #freeswitch
>>
>> FreeSWITCH Developer Conference
>> sip:888 at conference.freeswitch.org
>> googletalk:conf+888 at conference.freeswitch.org
>> pstn:+19193869900
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at 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 at 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 at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



More information about the FreeSWITCH-users mailing list