Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: soprom on June 14, 2009, 04:46:24 PM
-
Is there a way to add Jabber ressources to selintra?
-
res_jabber isn't present in the ATrpms donwload. However, there is nothing to stop you adding the module if you can grab a copy from somewhere else. It will need to be saved in /usr/lib/asterisk/modules/.
You should then be able to jabber away using custom apps, just like you did with your howler application. You will, of course, need a Jabber server to connect to. It isn't something we've done but it doesn't look too difficult. Does anyone else want to get involved in this?
Kind Regards
S
-
My setup has selintra and ejabberd on the same host (ejabberd is from contribs).
That's my definition of "unified communications" !!!!
I got myself res_jabber from a couple if RPM's, but it seems that "libiksemel.so.3" is needed.
yum install iksemel --enablerepo=smecontribs
Finally I can't get one for the current version on Centos 4:
pbx*CLI> module load res_jabber.so
[Jun 14 15:10:45] WARNING[6821]: loader.c:614 inspect_module: Module 'res_jabber.so' was not compiled with the same compile-time options as this version of Asterisk.
[Jun 14 15:10:45] WARNING[6821]: loader.c:615 inspect_module: Module 'res_jabber.so' will not be initialized as it may cause instability.
[Jun 14 15:10:45] WARNING[6821]: loader.c:653 load_resource: Module 'res_jabber.so' could not be loaded.
No idea as to where to find such a file or for asterisk-jabber...
My custom app is all ready. I'll post it when I will get jabber to work.
-
Sophie -
you can manually compile asterisk and copy the jabber resource module:
rpm -q iksemel ;jabber requires iksemel so make sure it is installed first
rpm -q ncurses-devel ;menuselect requires ncurses-devel so make sure it is installed first
cd /usr/src ;or whaterever directory you use for installs
asterisk -V ;find out what asterisk version you are running
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.X.XX.X.tar.gz ;where X.XX.X=version you use
tar -zxvf asterisk-1.X.XX.X ;where X.XX.X=version you use
cd /usr/src/asterisk-1.X.XX.X ;where X.XX.X=version you use
make clean ;optionally use when rebuilding is required
./configure
make menuselect ;select all relevant options (jabber is in Resource Modules)
make
cp res/res_jabber.so /usr/lib/asterisk/modules
-
Thanks for this procedure.
I added
yum install ncurses-devel
yum install gcc
asterisk -V returns 1.4.25.1, which is ok.
I run into a problem with ./configure :
configure: error: in `/usr/src/asterisk-1.4.25.1':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
The log has this:
configure:6059: /lib/cpp conftest.cpp
cpp: installation problem, cannot exec `cc1plus': No such file or directory
configure:6066: $? = 1
configure: failed program was:
| /* confdefs.h. */
All the errors are about "cannot exec `cc1plus'". I had to add:
yum install gcc-c++
Then, jabber is not enabled in the menu. It's there, but disabled.
From this page, http://www.voip-info.org/wiki/view/Asterisk+Speaks+with+Google+Talk (http://www.voip-info.org/wiki/view/Asterisk+Speaks+with+Google+Talk) I would believe that more sources are needed (iksemel).
-
;you're not setup to build/compile packages you need to check/install:
rpm -q gcc ;C compiler
rpm -q gcc-c++ ;C++ compiler
rpm -q make ;make/build program
rpm -q libtermcap-devel ;asterisk dependency
rpm -q zlib-devel ;might be needed for some options
;I previously mentioned the jabber dependency on iksemel
-
Thanks, but still a no-go!
menu selection shows res_jabber disabled with this footnote:
AJI - Asterisk Jabber Interface
Depends on: iksemel(E)
Can use: gnutls(E)
-
;I stated in my first reply iksemel must be installed before the asterisk compile
;if you didn't do this first go back and
make clean
./configure
make menuselect ;and see if the jabber option is available now
-
iksemel was already installed from my previous attemps...
(it was mentionned at the beginning of this thread)
-
I read that iksemel must be compiled with option: configure --with-gnutls
As I installed it from rpm, it might be the problem. I don't have the skill to investigate that.
-
I have installed:
iksemel-1.3.1
iksemel-devel-1.3.1
gnutls-1.0.20-4 0
running:
asterisk-1.4.22.2
-
I get these:
iksemel-1.2-13.el4
iksemel-devel n'est pas installé
gnutls-1.0.20-4.el4_6
asterisk-1.4.25.1-78.el4
-
I just downloaded asterisk-1.4.25.1, issued ./configure, make meuselect (jabber was available) then make... no issues.
You should investigate the dependencies issues on your machine for future reference... I have uploaded the asterisk-1.4.25.1 res_jabber.so to http://www.dannolfo.net (http://www.dannolfo.net) =>the file link is on the lower left between the *********
NOTE that this was built on a 2.6.9.78.0.22.EL kernel so it may or may not work for you.
-
I looks good now:
add DAG repo (http://wiki.contribs.org/Dag (http://wiki.contribs.org/Dag))
signal-event yum-modify
yum install iksemel-devel-1.3 --enablerepo=dag
yum install gcc gcc-c++ libtermcap-devel zlib-devel ncurses-devel
cd /usr/src
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.25.1.tar.gz
tar -zxvf asterisk-1.4.25.1
cd /usr/src/asterisk-1.4.25.1
make clean
./configure
make menuselect
make
cp res/res_jabber.so /usr/lib/asterisk/modules
yum remove gcc gcc-c++ libtermcap-devel zlib-devel ncurses-devel iksemel-devel
I'll get back to my custom app...
Many thanks to you PWDasterisk for your kind assistance.
-
res_jabber loads but asterisk can't connect:
res_jabber.c:1573 aji_recv_loop: JABBER: socket read error
This might be related to compilation options of iksemel which should be compiled along with res_jabber. Many posts on the web discuss this issue.
Probably:
I read that iksemel must be compiled with option: configure --with-gnutls
I don't have the skill to debug this, so let's edit
/etc/asterisk/modules.conf
with
noload => res_jabber.so
-
Sophie -
If you think that error is related to no compile time TLS support then don't connect asterisk to ejabberd using TLS:
in asterisk jabber.conf under the ejabberd context:
usetls=no ;don't connect using TLS for debugging purposes
usesasl=no ;use plain text authentication for debugging too
Refer to the documentation for ejabberd and tell it to NOT to connect with TLS and SASL and see what happens.
If that works then follow the wiki instructions for retrieving and compiling iksemel with gnutls or openssl support and then recompile asterisk using the previous procedure making sure you run 'make clean' or 'make distclean' first...
then turn on TLS and SASL one at a time and test... Good Luck
-
My tests were done with:
usetls=no
usesasl=no
Thanks for your help.
-
well at least asterisk is still error compatibel until v 1.8.4.3
like every thing on linux i'm used to need hours to get something working because of such unlogic behaviour :(
i wonder if really nobody got an explain and a solution ?