Q: I see these error message in the CLI, what is wrong? "res_jabber.c:1504 aji_recv_loop: JABBER: socket read error" and "res_jabber.c:482 aji_act_hook: gnuTLS not installed."
A1: I had installed iksemel (XML parsing library for Jabber) from an rpm package, and i guess it had been compiled without GNUTLS being included. i wrote a test program calling a gnutls function call and it failed. So I downloaded iksemel source, compiled it and ran the same test program again, and this time it returned the int value from the function call that i was expecting. Now, "jabber show connected" shows the google talk account as connected.
A2: I was getting a similar problem on ubuntu. It keep saying GnuTLS not installed. After much debugging, we checked the config.log for iksemel-1.2 and observed that the following:
checking for libgnutls-config
checking for libgnutls - version >= 0.1.0
were failing. The fix was to download the source for libgnuTLS and issue a recompile
A3: This works for me, during iksemel source compilation, specify the --with-gnutls option in ./configure.
./configure --with-gnutls
make
make check
make install
A4: This is my testing. Create test.c
$vi test.c
#include <stdlib.h>
#include <stdio.h>
#include <iksemel.h>
int main()
{
printf("test iks_has_tls\n\r");
if(iks_has_tls())
printf("iks_has_tls is 1\n\r");
else
printf("iks_has_tls is 0\n\r");
return 0;
}
$gcc -liksemel -o test test.c
run ./test if out iks_has_tls is 0, then gnutls need recompile .
check for your have the following modules - chan_gtalk, res_jabber and chan_jingle
Then follow the links to add the corresponding config
How many GV accounts you have? Better to have several more to test.
You can use your GV linked to OBi110 to call asterisk server作者: 角色 時間: 2011-9-23 22:56
本帖最後由 角色 於 2011-9-23 23:24 編輯
Thanks for your advice.
I have three GV accounts and only one GV is installed in my OBi110 device.
Good, you can test out incoming and outgoing calls作者: 角色 時間: 2011-9-23 23:28
Do I need to re-compile the Asterisk source code to get the GV function working?
YH作者: bubblestar 時間: 2011-9-24 00:12
If you have installed all the modules mentioned by ckleea C-hing before compilation of Asterisk, it is not necessary to re-compile again.作者: 角色 時間: 2011-9-24 09:20
I am able to install libssl-dev which does not exist using yum. Therefore I am not able to enable chan_gtalk and res_jabber. If you know how to install Asterisk 1.8, please let me know.
YH作者: ckleea 時間: 2011-9-24 09:53
A bit surprised that your chan_gtalk and res_jabber not enable. They are required.
Step 1:
command: cd /usr/src/asterisk/asterisk-complete
Step 2:
# Non-members may check out a read-only working copy anonymously over HTTP.
command: svn checkout http://iksemel.googlecode.com/svn/trunk/ iksemel-read-only
Step 3:
Read the README and follow the instruction
Step 4:
Change to Asterisk directory, run ./configure command, and make menuselect. You are able to see the chan_gtalk and res_jabber