[Freeswitch-docs] esl modules test report

Russell Treleaven rtreleaven at bunnykick.ca
Fri Oct 10 22:38:28 MSD 2014


Hi,

I tested the ESL modules and the results are below.
They are a little rough but it is my hope that we can use them to improve
the code and the doco.

If anyone has any questions just holler.

legend
f=fail
p=pass
?=don't know
*=tweaks required

platform
debian 7.6 minimal install

apt-get install libncurses5-dev

p-perlmod
cd /usr/local/src/freeswitch
./configure
apt-get install libperl-dev
make perlmod
make perlmod-install
returns 0 but they don't do anything
p*-phpmod
cd /usr/local/src/freeswitch
apt-get install php5-dev
./configure
apt-get install libonig-dev
apt-get install libdb-dev
apt-get install libqdbm-dev
apt-get install php5
cd libs/esl
make phpmod
make phpmod-install *** fails
#edit /etc/php5/cli/php.ini
enable_dl = Off
cd php
php single_command.php version
p*-luamod
apt-get install lua5.1
#version 5.2 won't work
cd ../lua
#make the following edits
diff --git a/libs/esl/lua/Makefile b/libs/esl/lua/Makefile
index c33853b..b1169db 100644
--- a/libs/esl/lua/Makefile
+++ b/libs/esl/lua/Makefile
@@ -1,5 +1,5 @@
-LOCAL_CFLAGS=
-LOCAL_LDFLAGS=-llua -lpthread
+LOCAL_CFLAGS=-I /usr/include/lua5.1
+LOCAL_LDFLAGS=-llua5.1 -lpthread
 WRAP_GCC_WARNING_SILENCE=-Wno-unused-function

 all: ESL.so
diff --git a/libs/esl/lua/single_command.lua
b/libs/esl/lua/single_command.lua
index bff4b32..e58716a 100755
--- a/libs/esl/lua/single_command.lua
+++ b/libs/esl/lua/single_command.lua
@@ -5,6 +5,6 @@ local command = arg[1];
 table.remove(arg, 1);
 local args = table.concat(arg, " ");

-local con = ESL.ESLconnection("localhost", "8021", "ClueCon");
+local con = ESL.ESLconnection("127.0.0.1", "8021", "ClueCon");
 print(e:getBody());
 cd ..
 make lua
 cd lua
 lua single_command.lua
p-pymod
cd ..
apt-get install python2.7-dev
make pymod
make pymod-install
python python/single_command.py -c version
p*-tclmod
apt-get install tcl8.5-dev
#make the following edits
diff --git a/libs/esl/tcl/Makefile b/libs/esl/tcl/Makefile
index 85b1fa1..0f04ae5 100644
--- a/libs/esl/tcl/Makefile
+++ b/libs/esl/tcl/Makefile
@@ -1,5 +1,5 @@
-LOCAL_CFLAGS=
-LOCAL_LDFLAGS=-ltcl
+LOCAL_CFLAGS=-I /usr/include/tcl8.5/
+LOCAL_LDFLAGS=-ltcl8.5
 WRAP_GCC_WARNING_SILENCE=-Wno-unused-function

 all: ESL.so
make tclmod
tclsh tcl/single_command.tcl version
p-rubymod
apt-get install ruby1.9.1-dev
make rubymod
make rubymod-install
ruby ruby/single_command.rb version
p*-javamod
apt-get install openjdk-6-jdk
#make these changes
root at debian-minimal:/usr/local/src/freeswitch/libs/esl/java# diff -c
Makefile.saf Makefile
*** Makefile.saf 2014-10-09 02:04:00.998746019 -0400
--- Makefile 2014-10-09 02:04:51.050116788 -0400
***************
*** 1,4 ****
! LOCAL_CFLAGS=-I../src/include -I/usr/java/jdk1.6.0_14/include
-I/usr/java/jdk1.6.0_14/include/linux
-I/usr/lib/jvm/java-6-openjdk/include/ -I/usr/lib/jvm/java/include
-I/usr/lib/jvm/java/include/linux
  GCC_WARNING_JUNK=-w
  CLASSES=org/freeswitch/esl/*

--- 1,4 ----
! LOCAL_CFLAGS=-I../src/include -I/usr/java/jdk1.6.0_14/include
-I/usr/java/jdk1.6.0_14/include/linux
-I/usr/lib/jvm/java-6-openjdk/include/ -I/usr/lib/jvm/java/include
-I/usr/lib/jvm/java/include/linux -I
/usr/lib/jvm/java-6-openjdk-amd64/include/
  GCC_WARNING_JUNK=-w
  CLASSES=org/freeswitch/esl/*
make javamod
*no test application for this
?-managedmod
not tested
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-docs/attachments/20141010/4cda5e45/attachment-0001.html 


Join us at ClueCon 2014 Aug 4-7, 2014
More information about the Freeswitch-docs mailing list