Hi I have compiled version of freeswitch 1.6.x on ubuntu 10.04 I want to install extra freeswitch modules like mod_perl and mod_lua Is there any way to install these modules without re-compileling freeswitch. I looked at freeswitch site and it is talking about editing modules.conf file and compiling from source and I dont even have modules.conf file as I searched. thx deniro--
On Wed, Feb 2, 2011 at 5:25 AM, deniro <ayhkor@gmail.com> wrote:
Hi I have compiled version of freeswitch 1.6.x on ubuntu 10.04 I want to install extra freeswitch modules like mod_perl and mod_lua Is there any way to install these modules without re-compileling freeswitch. I looked at freeswitch site and it is talking about editing modules.conf file and compiling from source and I dont even have modules.conf file as I searched.
Go to your original sources directory (where you gave the command "make install"), edit the file modules.conf.xml and give the command "make install". -giovanni
thx deniro--
_______________________________________________ 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
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
I think that is to enable loading the module(not the install) thx On Wed, Feb 2, 2011 at 3:14 AM, Giovanni Maruzzelli <gmaruzz@gmail.com>wrote:
On Wed, Feb 2, 2011 at 5:25 AM, deniro <ayhkor@gmail.com> wrote:
Hi I have compiled version of freeswitch 1.6.x on ubuntu 10.04 I want to install extra freeswitch modules like mod_perl and mod_lua Is there any way to install these modules without re-compileling freeswitch. I looked at freeswitch site and it is talking about editing modules.conf file and compiling from source and I dont even have modules.conf file as I searched.
Go to your original sources directory (where you gave the command "make install"), edit the file modules.conf.xml and give the command "make install".
-giovanni
thx deniro--
_______________________________________________ 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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
He meant it without the .xml suffix... modules.conf in the git checkout controls which modules are built modules.conf.xml in conf/autoload_configs controls which modules are loaded -Steve On 2 February 2011 15:22, deniro <ayhkor@gmail.com> wrote:
I think that is to enable loading the module(not the install) thx
On Wed, Feb 2, 2011 at 3:14 AM, Giovanni Maruzzelli <gmaruzz@gmail.com>wrote:
On Wed, Feb 2, 2011 at 5:25 AM, deniro <ayhkor@gmail.com> wrote:
Hi I have compiled version of freeswitch 1.6.x on ubuntu 10.04 I want to install extra freeswitch modules like mod_perl and mod_lua Is there any way to install these modules without re-compileling freeswitch. I looked at freeswitch site and it is talking about editing modules.conf file and compiling from source and I dont even have modules.conf file as I searched.
Go to your original sources directory (where you gave the command "make install"), edit the file modules.conf.xml and give the command "make install".
-giovanni
thx deniro--
_______________________________________________ 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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
On Wed, Feb 2, 2011 at 4:22 PM, deniro <ayhkor@gmail.com> wrote:
I think that is to enable loading the module(not the install) thx
So, you write to the mailing list for advice, and you don't put confidence in answers you got back? ;)
On Wed, Feb 2, 2011 at 3:14 AM, Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
On Wed, Feb 2, 2011 at 5:25 AM, deniro <ayhkor@gmail.com> wrote:
Hi I have compiled version of freeswitch 1.6.x on ubuntu 10.04 I want to install extra freeswitch modules like mod_perl and mod_lua Is there any way to install these modules without re-compileling freeswitch. I looked at freeswitch site and it is talking about editing modules.conf file and compiling from source and I dont even have modules.conf file as I searched.
Go to your original sources directory (where you gave the command "make install"), edit the file modules.conf.xml and give the command "make install".
-giovanni
thx deniro--
_______________________________________________ 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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
thanks for your advice and I appreciate you taking time to reply. You also note that I first check freeswitch site and I put my questions if I cant find a solutions myself. I already checked for options with modules.conf and modules.conf.xml even before posting. If you look at my first posting, I stated that I have a compiled freeswitch and I dont even see modules.conf file (I searched). so to reiterate, The freeswitch comes installed and compiled already with a product, so I dont even have the freeswitch source. All I am loooking for is, if there is any way, to install new modules without re-installig from source and recompile from the scratch with existing freeswitch install. I highly doubt that this is possible but I am checking out with the gurus here. I dont wanna break already running freeswitch with custom dialplans and other custom configurations. thx again deniro-- On Wed, Feb 2, 2011 at 10:32 AM, Giovanni Maruzzelli <gmaruzz@gmail.com>wrote:
On Wed, Feb 2, 2011 at 4:22 PM, deniro <ayhkor@gmail.com> wrote:
I think that is to enable loading the module(not the install) thx
So, you write to the mailing list for advice, and you don't put confidence in answers you got back? ;)
On Wed, Feb 2, 2011 at 3:14 AM, Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
On Wed, Feb 2, 2011 at 5:25 AM, deniro <ayhkor@gmail.com> wrote:
Hi I have compiled version of freeswitch 1.6.x on ubuntu 10.04 I want to install extra freeswitch modules like mod_perl and mod_lua Is there any way to install these modules without re-compileling freeswitch. I looked at freeswitch site and it is talking about editing modules.conf file and compiling from source and I dont even have modules.conf file as I searched.
Go to your original sources directory (where you gave the command "make install"), edit the file modules.conf.xml and give the command "make install".
-giovanni
thx deniro--
_______________________________________________ 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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
On 02/02/11 16:26, deniro wrote:
All I am loooking for is, if there is any way, to install new modules without re-installig from source and recompile from the scratch with existing freeswitch install.
Yes, you can do this. Go into the source directory and there is a modules.conf which specifies which modules will be compiled/installed. Edit this to uncomment the modules you want. lua is enabled by default. ~/src/freeswitch$ grep -E lua\|perl modules.conf languages/mod_lua #languages/mod_perl ~/src/freeswitch$ Then you can run the following to compile install a single module and add to your existing install: make mod_lua-install make mod_perl-install Regards,
Check first whether there are freeswitch-lua or freeswitch-perl packages. The official debian/ubuntu build system does build both mod_lua and mod_perl, but it places them in separate packages from the rest of FreeSWITCH. If you don't you'll need to compile them yourself... You will need the FreeSWITCH source to compile the modules, since they are in that source. Some of FreeSWITCH (the core) must also be compiled since the modules use functions that are in the core - however you can restrict the modules that are compiled to just the ones you need using modules.conf. When you checkout/extract the FreeSWITCH source, the first thing you must do is run bootstrap.sh. It is this file that generates the modules.conf file, if you haven't created it yourself. Unless you plan to upgrade (and you should think about doing so - 1.0.6 is old now and git head has hundreds of bugfixes and new features) you should make sure the one you build the modules on is the exact same version the Ubuntu version was created from, otherwise you'll find that the interface between the core and the modules may have changed and you'll either get a unloadable or unstable module. If you installed via APT then you should be able to use 'apt-get source freeswitch' to get the source package that'll give you the version they used. -Steve On 2 February 2011 16:26, deniro <ayhkor@gmail.com> wrote:
thanks for your advice and I appreciate you taking time to reply. You also note that I first check freeswitch site and I put my questions if I cant find a solutions myself. I already checked for options with modules.conf and modules.conf.xml even before posting.
If you look at my first posting, I stated that I have a compiled freeswitch and I dont even see modules.conf file (I searched). so to reiterate, The freeswitch comes installed and compiled already with a product, so I dont even have the freeswitch source.
All I am loooking for is, if there is any way, to install new modules without re-installig from source and recompile from the scratch with existing freeswitch install. I highly doubt that this is possible but I am checking out with the gurus here. I dont wanna break already running freeswitch with custom dialplans and other custom configurations.
thx again deniro--
On Wed, Feb 2, 2011 at 10:32 AM, Giovanni Maruzzelli <gmaruzz@gmail.com>wrote:
On Wed, Feb 2, 2011 at 4:22 PM, deniro <ayhkor@gmail.com> wrote:
I think that is to enable loading the module(not the install) thx
So, you write to the mailing list for advice, and you don't put confidence in answers you got back? ;)
On Wed, Feb 2, 2011 at 3:14 AM, Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
On Wed, Feb 2, 2011 at 5:25 AM, deniro <ayhkor@gmail.com> wrote:
Hi I have compiled version of freeswitch 1.6.x on ubuntu 10.04 I want to install extra freeswitch modules like mod_perl and mod_lua Is there any way to install these modules without re-compileling freeswitch. I looked at freeswitch site and it is talking about editing modules.conf file and compiling from source and I dont even have modules.conf file as I searched.
Go to your original sources directory (where you gave the command "make install"), edit the file modules.conf.xml and give the command "make install".
-giovanni
thx deniro--
_______________________________________________ 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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
Paul and Steve thanks many for your great assistance have couple of puzzles; 1-- What are these packages for? freeswitch-lua and freeswitch-perl (if I am installing mod_perl and mod_lua from source) I installed them anyway. 2-- I downloaded freeswitch 1.0.6 source with wget ('apt-get source freeswitch' couldn't find the source) uncommented lua/perl from modules.conf and run configure, then make mod_lua-install make mod_perl-install mod_lua installed without problem but make mod_perl-install had some errors as below Creating mod_perl.so... /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status gcc -w -DMULTIPLICITY -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -DEMBED_PERL -I/usr/src/freeswitch-1.0.6/src/include -I/usr/src/freeswitch-1.0.6/src/include -I/usr/src/freeswitch-1.0.6/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -g -O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement -D_GNU_SOURCE -shared -o .libs/mod_perl.so -shared -Wl,-x .libs/mod_perl.o -Wl,-E -fstack-protector freeswitch_perl.o mod_perl_wrap.o perlxsi.o /usr/src/freeswitch-1.0.6/.libs/libfreeswitch.so -L/usr/src/freeswitch-1.0.6/libs/apr-util/xml/expat/lib /usr/src/freeswitch-1.0.6/libs/apr-util/xml/expat/lib/.libs/libexpat.a /usr/src/freeswitch-1.0.6/libs/apr/.libs/libapr-1.a -lrt -L/usr/src/freeswitch-1.0.6/libs/srtp -lncurses -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -lperl -lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt -Wl,--rpath -Wl,/opt/freeswitch/lib -Wl,--rpath -Wl,/opt/freeswitch/mod make[3]: *** [mod_perl.so] Error 1 make[2]: *** [install] Error 1 make[1]: *** [mod_perl-install] Error 1 make: *** [mod_perl-install] Error 2 what am I missing here? (I have perl installed and freeswitch-perl instaled) 3-- how do I check if any module is installed or not? same for the load, i.e, any command to check wheether or not it is loaded if not loaded, how you load a module (after editing modules.conf.xml what we do? stop/start freeswitch?) thx deniro-- On Wed, Feb 2, 2011 at 11:46 AM, Steven Ayre <steveayre@gmail.com> wrote:
Check first whether there are freeswitch-lua or freeswitch-perl packages.
The official debian/ubuntu build system does build both mod_lua and mod_perl, but it places them in separate packages from the rest of FreeSWITCH.
If you don't you'll need to compile them yourself...
You will need the FreeSWITCH source to compile the modules, since they are in that source. Some of FreeSWITCH (the core) must also be compiled since the modules use functions that are in the core - however you can restrict the modules that are compiled to just the ones you need using modules.conf.
When you checkout/extract the FreeSWITCH source, the first thing you must do is run bootstrap.sh. It is this file that generates the modules.conf file, if you haven't created it yourself.
Unless you plan to upgrade (and you should think about doing so - 1.0.6 is old now and git head has hundreds of bugfixes and new features) you should make sure the one you build the modules on is the exact same version the Ubuntu version was created from, otherwise you'll find that the interface between the core and the modules may have changed and you'll either get a unloadable or unstable module. If you installed via APT then you should be able to use 'apt-get source freeswitch' to get the source package that'll give you the version they used.
-Steve
On 2 February 2011 16:26, deniro <ayhkor@gmail.com> wrote:
thanks for your advice and I appreciate you taking time to reply. You also note that I first check freeswitch site and I put my questions if I cant find a solutions myself. I already checked for options with modules.conf and modules.conf.xml even before posting.
If you look at my first posting, I stated that I have a compiled freeswitch and I dont even see modules.conf file (I searched). so to reiterate, The freeswitch comes installed and compiled already with a product, so I dont even have the freeswitch source.
All I am loooking for is, if there is any way, to install new modules without re-installig from source and recompile from the scratch with existing freeswitch install. I highly doubt that this is possible but I am checking out with the gurus here. I dont wanna break already running freeswitch with custom dialplans and other custom configurations.
thx again deniro--
On Wed, Feb 2, 2011 at 10:32 AM, Giovanni Maruzzelli <gmaruzz@gmail.com>wrote:
On Wed, Feb 2, 2011 at 4:22 PM, deniro <ayhkor@gmail.com> wrote:
I think that is to enable loading the module(not the install) thx
So, you write to the mailing list for advice, and you don't put confidence in answers you got back? ;)
On Wed, Feb 2, 2011 at 3:14 AM, Giovanni Maruzzelli <gmaruzz@gmail.com
wrote:
On Wed, Feb 2, 2011 at 5:25 AM, deniro <ayhkor@gmail.com> wrote:
Hi I have compiled version of freeswitch 1.6.x on ubuntu 10.04 I want to install extra freeswitch modules like mod_perl and mod_lua Is there any way to install these modules without re-compileling freeswitch. I looked at freeswitch site and it is talking about editing modules.conf file and compiling from source and I dont even have modules.conf file as I searched.
Go to your original sources directory (where you gave the command "make install"), edit the file modules.conf.xml and give the command "make install".
-giovanni
thx deniro--
_______________________________________________ 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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
for the second question - You need the perl-dev packages, you say that you use apt-get to install some things, try a apt-cache search perl | grep -i dev and install the package. 2011/2/3 deniro <ayhkor@gmail.com>:
Paul and Steve thanks many for your great assistance have couple of puzzles;
1-- What are these packages for? freeswitch-lua and freeswitch-perl (if I am installing mod_perl and mod_lua from source) I installed them anyway.
2-- I downloaded freeswitch 1.0.6 source with wget ('apt-get source freeswitch' couldn't find the source) uncommented lua/perl from modules.conf and run configure, then make mod_lua-install make mod_perl-install
mod_lua installed without problem but make mod_perl-install had some errors as below
Creating mod_perl.so... /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status gcc -w -DMULTIPLICITY -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -DEMBED_PERL -I/usr/src/freeswitch-1.0.6/src/include -I/usr/src/freeswitch-1.0.6/src/include -I/usr/src/freeswitch-1.0.6/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -g -O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement -D_GNU_SOURCE -shared -o .libs/mod_perl.so -shared -Wl,-x .libs/mod_perl.o -Wl,-E -fstack-protector freeswitch_perl.o mod_perl_wrap.o perlxsi.o /usr/src/freeswitch-1.0.6/.libs/libfreeswitch.so -L/usr/src/freeswitch-1.0.6/libs/apr-util/xml/expat/lib /usr/src/freeswitch-1.0.6/libs/apr-util/xml/expat/lib/.libs/libexpat.a /usr/src/freeswitch-1.0.6/libs/apr/.libs/libapr-1.a -lrt -L/usr/src/freeswitch-1.0.6/libs/srtp -lncurses -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -lperl -lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt -Wl,--rpath -Wl,/opt/freeswitch/lib -Wl,--rpath -Wl,/opt/freeswitch/mod make[3]: *** [mod_perl.so] Error 1 make[2]: *** [install] Error 1 make[1]: *** [mod_perl-install] Error 1 make: *** [mod_perl-install] Error 2 what am I missing here? (I have perl installed and freeswitch-perl instaled)
3-- how do I check if any module is installed or not? same for the load, i.e, any command to check wheether or not it is loaded if not loaded, how you load a module (after editing modules.conf.xml what we do? stop/start freeswitch?)
thx deniro--
On Wed, Feb 2, 2011 at 11:46 AM, Steven Ayre <steveayre@gmail.com> wrote:
Check first whether there are freeswitch-lua or freeswitch-perl packages. The official debian/ubuntu build system does build both mod_lua and mod_perl, but it places them in separate packages from the rest of FreeSWITCH. If you don't you'll need to compile them yourself... You will need the FreeSWITCH source to compile the modules, since they are in that source. Some of FreeSWITCH (the core) must also be compiled since the modules use functions that are in the core - however you can restrict the modules that are compiled to just the ones you need using modules.conf. When you checkout/extract the FreeSWITCH source, the first thing you must do is run bootstrap.sh. It is this file that generates the modules.conf file, if you haven't created it yourself. Unless you plan to upgrade (and you should think about doing so - 1.0.6 is old now and git head has hundreds of bugfixes and new features) you should make sure the one you build the modules on is the exact same version the Ubuntu version was created from, otherwise you'll find that the interface between the core and the modules may have changed and you'll either get a unloadable or unstable module. If you installed via APT then you should be able to use 'apt-get source freeswitch' to get the source package that'll give you the version they used.
-Steve
On 2 February 2011 16:26, deniro <ayhkor@gmail.com> wrote:
thanks for your advice and I appreciate you taking time to reply. You also note that I first check freeswitch site and I put my questions if I cant find a solutions myself. I already checked for options with modules.conf and modules.conf.xml even before posting.
If you look at my first posting, I stated that I have a compiled freeswitch and I dont even see modules.conf file (I searched). so to reiterate, The freeswitch comes installed and compiled already with a product, so I dont even have the freeswitch source.
All I am loooking for is, if there is any way, to install new modules without re-installig from source and recompile from the scratch with existing freeswitch install. I highly doubt that this is possible but I am checking out with the gurus here. I dont wanna break already running freeswitch with custom dialplans and other custom configurations.
thx again deniro--
On Wed, Feb 2, 2011 at 10:32 AM, Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
On Wed, Feb 2, 2011 at 4:22 PM, deniro <ayhkor@gmail.com> wrote:
I think that is to enable loading the module(not the install) thx
So, you write to the mailing list for advice, and you don't put confidence in answers you got back? ;)
On Wed, Feb 2, 2011 at 3:14 AM, Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
On Wed, Feb 2, 2011 at 5:25 AM, deniro <ayhkor@gmail.com> wrote: > Hi > I have compiled version of freeswitch 1.6.x on ubuntu 10.04 > I want to install extra freeswitch modules like mod_perl and > mod_lua > Is there any way to install these modules without re-compileling > freeswitch. > I looked at freeswitch site and it is talking about editing > modules.conf > file and compiling from source > and I dont even have modules.conf file as I searched.
Go to your original sources directory (where you gave the command "make install"), edit the file modules.conf.xml and give the command "make install".
-giovanni
> > thx > deniro-- > > _______________________________________________ > 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 > >
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
"What are these packages for? freeswitch-lua and freeswitch-perl (if I am installing mod_perl and mod_lua from source) I installed them anyway." They're the packaged versions of mod_lua and mod_perl. If you have those packages you do not need to compile from source. "make mod_perl-install had some errors as below... Creating mod_perl.so... /usr/bin/ld: cannot find -lperl... what am I missing here? (I have perl installed and freeswitch-perl instaled)" perl-dev "3-- how do I check if any module is installed or not? same for the load, i.e, any command to check wheether or not it is loaded if not loaded, how you load a module (after editing modules.conf.xml what we do? stop/start freeswitch?)" Installed: ls /opt/freeswitch/mod (at linux cli) Loaded: show codecs (at fs cli) -Steve On 3 February 2011 21:17, deniro <ayhkor@gmail.com> wrote:
Paul and Steve thanks many for your great assistance have couple of puzzles;
1-- What are these packages for? freeswitch-lua and freeswitch-perl (if I am installing mod_perl and mod_lua from source) I installed them anyway.
2-- I downloaded freeswitch 1.0.6 source with wget ('apt-get source freeswitch' couldn't find the source) uncommented lua/perl from modules.conf and run configure, then make mod_lua-install make mod_perl-install
mod_lua installed without problem but make mod_perl-install had some errors as below
Creating mod_perl.so... /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status gcc -w -DMULTIPLICITY -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -DEMBED_PERL -I/usr/src/freeswitch-1.0.6/src/include -I/usr/src/freeswitch-1.0.6/src/include -I/usr/src/freeswitch-1.0.6/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -g -O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement -D_GNU_SOURCE -shared -o .libs/mod_perl.so -shared -Wl,-x .libs/mod_perl.o -Wl,-E -fstack-protector freeswitch_perl.o mod_perl_wrap.o perlxsi.o /usr/src/freeswitch-1.0.6/.libs/libfreeswitch.so -L/usr/src/freeswitch-1.0.6/libs/apr-util/xml/expat/lib /usr/src/freeswitch-1.0.6/libs/apr-util/xml/expat/lib/.libs/libexpat.a /usr/src/freeswitch-1.0.6/libs/apr/.libs/libapr-1.a -lrt -L/usr/src/freeswitch-1.0.6/libs/srtp -lncurses -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -lperl -lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt -Wl,--rpath -Wl,/opt/freeswitch/lib -Wl,--rpath -Wl,/opt/freeswitch/mod make[3]: *** [mod_perl.so] Error 1 make[2]: *** [install] Error 1 make[1]: *** [mod_perl-install] Error 1 make: *** [mod_perl-install] Error 2 what am I missing here? (I have perl installed and freeswitch-perl instaled)
3-- how do I check if any module is installed or not? same for the load, i.e, any command to check wheether or not it is loaded if not loaded, how you load a module (after editing modules.conf.xml what we do? stop/start freeswitch?)
thx deniro--
On Wed, Feb 2, 2011 at 11:46 AM, Steven Ayre <steveayre@gmail.com> wrote:
Check first whether there are freeswitch-lua or freeswitch-perl packages.
The official debian/ubuntu build system does build both mod_lua and mod_perl, but it places them in separate packages from the rest of FreeSWITCH.
If you don't you'll need to compile them yourself...
You will need the FreeSWITCH source to compile the modules, since they are in that source. Some of FreeSWITCH (the core) must also be compiled since the modules use functions that are in the core - however you can restrict the modules that are compiled to just the ones you need using modules.conf.
When you checkout/extract the FreeSWITCH source, the first thing you must do is run bootstrap.sh. It is this file that generates the modules.conf file, if you haven't created it yourself.
Unless you plan to upgrade (and you should think about doing so - 1.0.6 is old now and git head has hundreds of bugfixes and new features) you should make sure the one you build the modules on is the exact same version the Ubuntu version was created from, otherwise you'll find that the interface between the core and the modules may have changed and you'll either get a unloadable or unstable module. If you installed via APT then you should be able to use 'apt-get source freeswitch' to get the source package that'll give you the version they used.
-Steve
On 2 February 2011 16:26, deniro <ayhkor@gmail.com> wrote:
thanks for your advice and I appreciate you taking time to reply. You also note that I first check freeswitch site and I put my questions if I cant find a solutions myself. I already checked for options with modules.conf and modules.conf.xml even before posting.
If you look at my first posting, I stated that I have a compiled freeswitch and I dont even see modules.conf file (I searched). so to reiterate, The freeswitch comes installed and compiled already with a product, so I dont even have the freeswitch source.
All I am loooking for is, if there is any way, to install new modules without re-installig from source and recompile from the scratch with existing freeswitch install. I highly doubt that this is possible but I am checking out with the gurus here. I dont wanna break already running freeswitch with custom dialplans and other custom configurations.
thx again deniro--
On Wed, Feb 2, 2011 at 10:32 AM, Giovanni Maruzzelli <gmaruzz@gmail.com>wrote:
On Wed, Feb 2, 2011 at 4:22 PM, deniro <ayhkor@gmail.com> wrote:
I think that is to enable loading the module(not the install) thx
So, you write to the mailing list for advice, and you don't put confidence in answers you got back? ;)
On Wed, Feb 2, 2011 at 3:14 AM, Giovanni Maruzzelli <
gmaruzz@gmail.com>
wrote:
On Wed, Feb 2, 2011 at 5:25 AM, deniro <ayhkor@gmail.com> wrote: > Hi > I have compiled version of freeswitch 1.6.x on ubuntu 10.04 > I want to install extra freeswitch modules like mod_perl and
mod_lua
> Is there any way to install these modules without re-compileling > freeswitch. > I looked at freeswitch site and it is talking about editing > modules.conf > file and compiling from source > and I dont even have modules.conf file as I searched.
Go to your original sources directory (where you gave the command "make install"), edit the file modules.conf.xml and give the command "make install".
-giovanni
> > thx > deniro-- > > _______________________________________________ > 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 > >
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_______________________________________________ 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
participants (5)
-
deniro
-
Giovanni Maruzzelli
-
Mike Tesliuk
-
Paul Cupis
-
Steven Ayre