Woof! On Sat, 14 Nov 2009 14:54:37 -0500, Christopher Goddard <[email protected]> wrote:
> I'm trying to load a custom FreeSWITCH module for use by the Media > Services > in sipXecs. Steps taken so far are: > > 1. Installed the module to the mod directory @ /usr/local/freeswitch/mod > 2. Added load statement to the modules.conf.xml file (to be certain I > added > this statement in both the default location and > /etc/sipxpbx/freeswitch/conf) > 3. Rebooted the server > > When using the FreeSWITCH CLI tool (/usr/local/freeswitch/bin/fs_cli) I'm > unable to execute any commands for the custom module. The output simple > states command not found. When sipXecs starts FreeSWITCH, it does so by pointing it to a private configuration directory structure, at /etc/sipxpbx/freeswitch/conf/. This is done by the /usr/bin/freeswitch.sh startup script. It also redirects the db and log directories to sipXpbx locations. At installation and upgrade times, the contents of /usr/local/freeswitch/conf are copied to /etc/sipxpbx/freeswitch/conf (so as to pickup all the default FreeSWITCH configuration files), and then sipXconfig overwrites the few configuration files that sipXecs controls. So in order to get your modules installed (the ones you placed in /usr/local/freeswitch/conf), you need to simulate a upgrade situation and get your stuff installed in the private configuration directory. To do this, stop sipXpbx from running, with (as root) /etc/init.d/sipxpbx stop. Then also as root, run /usr/bin/freeswitch.sh --CONFIG. That should cause the existing /etc/sipxpbx/freeswitch/conf directory to be deleted, and then /usr/local/freeswitch/conf copied there. Then run /usr/bin/sipxconfig.sh --first-run this will tell sipXconfig to re-generate all the configuration files at startup time. This is needed to force sipXconfig to update the FreeSWITCH config that was just restored to defaults. Then start sipXpbx: (as root) /etc/init.d/sipxpbx start You should then see your modules and modules.conf in /etc/sipxpbx/freeswitch/conf, and if all went well they'll show up in the executing FreeSWITCH. --Woof! _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev sipXecs IP PBX -- http://www.sipfoundry.org/
