Skip to Content
Menu
This question has been flagged
5 Replies
6827 Views

Has anyone here used the Openerp Freeswitch Connector. I am unable to locate a dependency called ESL. 

It appears it is dependent on an ESL module. The problem I am seeing is that I can't find any such module out there unless I install Freeswitch on the same server that Odoo is running on. I currently have FS on another server and Odoo on a separate one.

Can anyone assist me in this?

Thanks!

Avatar
Discard
Best Answer

Best to follow first

 apt-get install python-dev 

then 

git clone http://git@github.com/gurteshwar/freeswitch-esl-python

Cloning into 'freeswitch-esl-python'...

remote: Counting objects: 54, done.

remote: Total 54 (delta 0), reused 0 (delta 0)

Unpacking objects: 100% (54/54), done.

Checking connectivity... done.

root@solengize:~# cd freeswitch-esl-python

root@solengize:~/freeswitch-esl-python# python setup.py install


then

pip install gevent

ip install gevent_socketio.


All package works fine.

Avatar
Discard
Best Answer

Here is the link to install ESL: https://github.com/gurteshwar/freeswitch-esl-python

Avatar
Discard
Author Best Answer

Thank you very much Med. Would you happen to know how to get it installed on Ubuntu 14.04? For some reason it refuses to install.

Here's the error below:

root@solengize:~# git clone http://git@github.com/gurteshwar/freeswitch-esl-python
Cloning into 'freeswitch-esl-python'...
remote: Counting objects: 54, done.
remote: Total 54 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (54/54), done.
Checking connectivity... done.
root@solengize:~# cd freeswitch-esl-python
root@solengize:~/freeswitch-esl-python# python setup.py install
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'pymodules'
  warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/freeswitchESL
copying freeswitchESL/__init__.py -> build/lib.linux-x86_64-2.7/freeswitchESL
copying freeswitchESL/ESL.py -> build/lib.linux-x86_64-2.7/freeswitchESL
running build_ext
building '_ESL' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/swig
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iinclude/ -I/usr/include/python2.7 -c swig/esl_wrap.cpp -o build/temp.linux-x86_64-2.7/swig/esl_wrap.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
swig/esl_wrap.cpp:141:20: fatal error: Python.h: No such file or directory
 #include <Python.h>
                    ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
root@solengize:~/freeswitch-esl-python#

 

Avatar
Discard

What is the error message ?

apt-get install python-dev, Add this resolve your problem