load mod_sofia giving an error
It turns out that our problems with loading mod_sofia using Erlang configurations has uncovered a deeper problem. This morning I copied over the default/sample configs from the Freeswitch build to replace our sip_profiles directory, but lo and behold I get the following error message from Freeswitch when I try to load mod_sofia: freeswitch@testsrv> load mod_sofia API CALL [load(mod_sofia)] output: -ERR [module load file routine returned an error] Unfortunately that's a rather useless and unhelpful error message. The one thing I do know now is that it's not being caused by a bad configuration. We're running an Ubuntu 8.04 (Hardy) 32-bit build of freeswitch-1.0.4+repack8 downloaded from launchpad.net. -- Mark Sobkow Senior Developer MarkeTel Multi-Line Dialing Systems LTD. 428 Victoria Ave Regina, SK S4N-0P6 Toll-Free: 800-289-8616-X533 Local: 306-359-6893-X533 Fax: 306-359-6879 Email: m.sobkow@marketelsystems.com Web: http://www.marketelsystems.com
Are the ports it is trying to bind to already in use? On Oct 19, 2009, at 11:36 AM, Mark Sobkow wrote:
It turns out that our problems with loading mod_sofia using Erlang configurations has uncovered a deeper problem. This morning I copied over the default/sample configs from the Freeswitch build to replace our sip_profiles directory, but lo and behold I get the following error message from Freeswitch when I try to load mod_sofia:
freeswitch@testsrv> load mod_sofia API CALL [load(mod_sofia)] output: -ERR [module load file routine returned an error]
Unfortunately that's a rather useless and unhelpful error message. The one thing I do know now is that it's not being caused by a bad configuration.
We're running an Ubuntu 8.04 (Hardy) 32-bit build of freeswitch-1.0.4+repack8 downloaded from launchpad.net.
Mark Sobkow wrote:
It turns out that our problems with loading mod_sofia using Erlang configurations has uncovered a deeper problem. This morning I copied over the default/sample configs from the Freeswitch build to replace our sip_profiles directory, but lo and behold I get the following error message from Freeswitch when I try to load mod_sofia:
freeswitch@testsrv> load mod_sofia API CALL [load(mod_sofia)] output: -ERR [module load file routine returned an error]
Unfortunately that's a rather useless and unhelpful error message. The one thing I do know now is that it's not being caused by a bad configuration.
We're running an Ubuntu 8.04 (Hardy) 32-bit build of freeswitch-1.0.4+repack8 downloaded from launchpad.net.
I've been trying to debug the issue. Modified mod_sofia.c to add an extra error report for the one line that was returning an error code without logging a message. Enabled the debug flags: SOFIA_DEBUG=9 NUA_DEBUG=9 NTA_DEBUG=9 TPORT_DEBUG=9 TPORT_LOG=1 export SOFIA_DEBUG NUA_DEBUG NTA_DEBUG TPORT_DEBUG TPORT_LOG However, I'm still not getting anything _useful_ for error messaging. I have however got a number of modules getting loaded during Freeswitch startup and shutdown getting reported with the DEBUG options, so it doesn't look like this is a generic problem with loading modules on Ubuntu 8.04/Hardy. -- Mark Sobkow Senior Developer MarkeTel Multi-Line Dialing Systems LTD. 428 Victoria Ave Regina, SK S4N-0P6 Toll-Free: 800-289-8616-X533 Local: 306-359-6893-X533 Fax: 306-359-6879 Email: m.sobkow@marketelsystems.com Web: http://www.marketelsystems.com
You must have a problem with your config or a problem binding. In your log you have something like: 2009-10-19 11:20:47.573839 [CRIT] switch_loadable_module.c:871 Error Loading module /usr/local/freeswitch/mod/mod_sofia.so **Module load routine returned an error** There should be an ERR level message above that with the actual problem (ie. Couldn't bind! / Open of sofia.conf failed) On October 19, 2009 12:13:27 pm Mark Sobkow wrote:
Mark Sobkow wrote:
It turns out that our problems with loading mod_sofia using Erlang configurations has uncovered a deeper problem. This morning I copied over the default/sample configs from the Freeswitch build to replace our sip_profiles directory, but lo and behold I get the following error message from Freeswitch when I try to load mod_sofia:
freeswitch@testsrv> load mod_sofia API CALL [load(mod_sofia)] output: -ERR [module load file routine returned an error]
Unfortunately that's a rather useless and unhelpful error message. The one thing I do know now is that it's not being caused by a bad configuration.
We're running an Ubuntu 8.04 (Hardy) 32-bit build of freeswitch-1.0.4+repack8 downloaded from launchpad.net.
I've been trying to debug the issue. Modified mod_sofia.c to add an extra error report for the one line that was returning an error code without logging a message. Enabled the debug flags:
SOFIA_DEBUG=9 NUA_DEBUG=9 NTA_DEBUG=9 TPORT_DEBUG=9 TPORT_LOG=1 export SOFIA_DEBUG NUA_DEBUG NTA_DEBUG TPORT_DEBUG TPORT_LOG
However, I'm still not getting anything _useful_ for error messaging. I have however got a number of modules getting loaded during Freeswitch startup and shutdown getting reported with the DEBUG options, so it doesn't look like this is a generic problem with loading modules on Ubuntu 8.04/Hardy.
Chris Burns wrote:
Try building from freeswitch.org source?
On October 19, 2009 11:36:59 am Mark Sobkow wrote:
We're running an Ubuntu 8.04 (Hardy) 32-bit build of freeswitch-1.0.4+repack8 downloaded from launchpad.net.
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
I just did a source build and install using the subversion code from a few minutes ago (about 13h00 CST), and did a "make install" and "make install-data" as root. chown -R freeswitch.daemon /opt/freeswitch, and tested using the default freeswitch config files. Lo and behold, doing a "load mod_sofia" told me that it was already loaded. A "reload mod_sofia" succeeded. Apparently the code in the launchpad.net release is FUBARed. The thing I don't like about this is that we don't have .deb files for the install. However, I've "worked around" that issue by creating a tarball of /opt/freeswitch as soon as I created it and changed the ownership, before I even ran it the first time. That way I've got a clean install tarball I can use for doing distributions to client machines, instead of having to do a source build on client machines (which would have been u-u-u-gly, as client machines are supposed to be stripped down with application and data only, not source of any kind.) -- Mark Sobkow Senior Developer MarkeTel Multi-Line Dialing Systems LTD. 428 Victoria Ave Regina, SK S4N-0P6 Toll-Free: 800-289-8616-X533 Local: 306-359-6893-X533 Fax: 306-359-6879 Email: m.sobkow@marketelsystems.com Web: http://www.marketelsystems.com
participants (3)
-
Chris Burns
-
Mark Sobkow
-
Michael Jerris