Re: [Freeswitch-users] fs_cli socket connection error
The file you should be looking for is "xml_cdr.conf.xml". You can copy the sample file from conf/autoload_configs/ in the freeswitch source directory. -Justin -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]On Behalf Of deniro Sent: Wednesday, March 02, 2011 2:25 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] fs_cli socket connection error I typed the 4 commands but still unable to load mod_xml_cdr and mod_xml_curl 2011-03-02 17:21:32.139672 [ERR] mod_xml_cdr.c:479 Open of xml_cdr.conf failed /opt# find . -name xml_cdr.conf nothing appears here is errors from fs_cli -d 7 freeswitch@75.xxx.xxx.xx@internal <mailto:freeswitch@75.xxx.xxx.xx@internal>
load mod_xml_cdr [DEBUG] libs/esl/src/esl.c:1063 esl_send() SEND api load mod_xml_cdr console_execute: true
[DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Content-Type] = [api/response] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Content-Length] = [50] -ERR [module load file routine returned an error] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Content-Type] = [log/data] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Content-Length] = [79] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Log-Level] = [3] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Text-Channel] = [0] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Log-File] = [mod_xml_cdr.c] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Log-Func] = [mod_xml_cdr_load] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Log-Line] = [479] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [User-Data] = [] [DEBUG] libs/esl/src/esl.c:1037 esl_recv_event() RECV MESSAGE Event-Name: SOCKET_DATA Content-Type: log/data Content-Length: 79 Log-Level: 3 Text-Channel: 0 Log-File: mod_xml_cdr.c Log-Func: mod_xml_cdr_load Log-Line: 479 User-Data: _undef_ 2011-03-02 17:21:32.139672 [ERR] mod_xml_cdr.c:479 Open of xml_cdr.conf failed [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Content-Type] = [log/data] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Content-Length] = [161] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Log-Level] = [2] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Text-Channel] = [0] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Log-File] = [switch_loadable_module.c] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Log-Func] = [switch_loadable_module_load_file] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [Log-Line] = [882] [DEBUG] libs/esl/src/esl.c:918 esl_recv_event() RECV HEADER [User-Data] = [] [DEBUG] libs/esl/src/esl.c:1037 esl_recv_event() RECV MESSAGE Event-Name: SOCKET_DATA Content-Type: log/data Content-Length: 161 Log-Level: 2 Text-Channel: 0 Log-File: switch_loadable_module.c Log-Func: switch_loadable_module_load_file Log-Line: 882 User-Data: _undef_ 2011-03-02 17:21:32.139672 [CRIT] switch_loadable_module.c:882 Error Loading module /opt/freeswitch/mod/mod_xml_cdr.so **Module load routine returned an error** On Tue, Mar 1, 2011 at 1:11 PM, Anthony Minessale < anthony.minessale@gmail.com <mailto:anthony.minessale@gmail.com> > wrote: like I said you re-installed with a new version of libcurl but did not fully rebuild. So most of the modules that depend on curl were broken torn between the old and new version it was linked to.. had you executed the 4 commands I posted yesterday it would be fine. On Tue, Mar 1, 2011 at 11:02 AM, deniro < ayhkor@gmail.com <mailto:ayhkor@gmail.com> > wrote:
Thank you all for advice and direction Will re-install from scratch at a later time. deniro--
On Tue, Mar 1, 2011 at 4:16 AM, Steven Ayre < steveayre@gmail.com <mailto:steveayre@gmail.com> > wrote:
Ok, you really need to pay attention to any log message that logs with the CRIT (critical) log level - they're really serious errors. You should look at adding the critical="true" attribute to all the tags in modules.conf.xml which you want to be sure are loaded. If a module fails to load without that tag FS will continue to run anyway, with that tag it'll refuse to start so you'll know instantly something is wrong.
Most of your modules aren't loading, because they haven't been compiled correctly. Some look like they're missing (no such file or directory) and others haven't been built right (undefined symbols).
Here are a few of the important lines from your log:
2011-02-28 18:12:21.910738 [CRIT] switch_loadable_module.c:882 Error Loading module /opt/freeswitch/mod/mod_event_socket.so **/opt/freeswitch/mod/mod_event_socket.so: undefined symbol: switch_event_serialize_json** 2011-02-28 18:12:21.910789 [CRIT] switch_loadable_module.c:882 Error Loading module /opt/freeswitch/mod/mod_xml_curl.so **/opt/freeswitch/mod/mod_xml_curl.so: cannot open shared object file: No such file or directory** 2011-02-28 18:12:21.910813 [CRIT] switch_loadable_module.c:882 Error Loading module /opt/freeswitch/mod/mod_xml_cdr.so **/opt/freeswitch/mod/mod_xml_cdr.so: cannot open shared object file: No such file or directory** 2011-02-28 18:12:21.911581 [CRIT] switch_loadable_module.c:882 Error Loading module /opt/freeswitch/mod/mod_commands.so **/opt/freeswitch/mod/mod_commands.so: undefined symbol: switch_xml_reload** 2011-02-28 18:12:21.911709 [CRIT] switch_loadable_module.c:882 Error Loading module /opt/freeswitch/mod/mod_conference.so **/opt/freeswitch/mod/mod_conference.so: undefined symbol: switch_channel_test_app_flag_key** 2011-02-28 18:12:21.911842 [CRIT] switch_loadable_module.c:882 Error Loading module /opt/freeswitch/mod/mod_dptools.so **/opt/freeswitch/mod/mod_dptools.so: undefined symbol: switch_event_merge** 2011-02-28 18:12:21.912264 [CRIT] switch_loadable_module.c:882 Error Loading module /opt/freeswitch/mod/mod_dialplan_xml.so **/opt/freeswitch/mod/mod_dialplan_xml.so: undefined symbol: switch_xml_std_datetime_check** 2011-02-28 18:12:21.912531 [CRIT] switch_loadable_module.c:882 Error Loading module /opt/freeswitch/mod/mod_g723_1.so **/opt/freeswitch/mod/mod_g723_1.so: cannot open shared object file: No such file or directory** 2011-02-28 18:12:21.912573 [CRIT] switch_loadable_module.c:882 Error Loading module /opt/freeswitch/mod/mod_g729.so **/opt/freeswitch/mod/mod_g729.so: cannot open shared object file: No such file or directory** 2011-02-28 18:12:21.912609 [CRIT] switch_loadable_module.c:882 Error Loading module /opt/freeswitch/mod/mod_amr.so **/opt/freeswitch/mod/mod_amr.so: cannot open shared object file: No such file or directory**
Important things to note: mod_event_socket hasn't loaded because of a undefined symbol, it wasn't built correctly mod_xml_curl hasn't loaded because it doesn't exist, it was either never built or never installed
Something pretty strange has happened. Did you recompile when trying to add mod_xml_curl?
I'd suggest you delete all the FS files, including the Git clone, make a fresh checkout and build it from scratch.
-Steve
On 28 February 2011 23:18, deniro < ayhkor@gmail.com
<mailto:ayhkor@gmail.com> > wrote:
I put the log in pastebin freeswitch.log only when starting freeswitch (after stop)
http://pastebin.freeswitch.org/15502 <http://pastebin.freeswitch.org/15502> thx deniro On Mon, Feb 28, 2011 at 5:46 PM, Steven Ayre < steveayre@gmail.com <mailto:steveayre@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@gmail.com
<mailto:ayhkor@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@visionutveckling.se <mailto:peter.olsson@visionutveckling.se> > wrote:
Check freeswitch.log, it probably reports some problem when loading the mod_event_socket module.
/Peter ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org
<mailto:freeswitch-users-bounces@lists.freeswitch.org>
[ freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> ] för deniro [ ayhkor@gmail.com <mailto:ayhkor@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@gmail.com <mailto:steveayre@gmail.com> <mailto: steveayre@gmail.com <mailto:steveayre@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@gmail.com <mailto:ayhkor@gmail.com> <mailto: ayhkor@gmail.com <mailto:ayhkor@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@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> <mailto: FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> > > > UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> > http://www.freeswitch.org <http://www.freeswitch.org/> < http://www.freeswitch.org/ <http://www.freeswitch.org/> > > >
_______________________________________________ FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> <mailto: FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/> < http://www.freeswitch.org/ <http://www.freeswitch.org/> >
!DSPAM:4d6c0a1132761029518849!
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ <http://www.freeswitch.org/> ClueCon http://www.cluecon.com/ <http://www.cluecon.com/> Twitter: http://twitter.com/FreeSWITCH_wire <http://twitter.com/FreeSWITCH_wire> AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/ PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net <http://irc.freenode.net/> #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900 _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
participants (1)
-
JRichey