jajcus / jggtrans Goto Github PK
View Code? Open in Web Editor NEWJabber to GaduGadu gateway ('transport')
Home Page: http://jggtrans.jajcus.net/
License: GNU General Public License v2.0
Jabber to GaduGadu gateway ('transport')
Home Page: http://jggtrans.jajcus.net/
License: GNU General Public License v2.0
A small patch to make "gr" behave as stated in XEP-0144. Also a small bug considering groups seems fixed.
Hey,
Not quite as bug on jggtrans side but more like incompatibility with newest libgadu.
In short - compile and runs ok (as no crash or any that stuff) but roster list shows offline users with description as online.
Downgrading libgadu to 1.9.1 (minimal required) solved problem.
Po dodaniu kontaktu trzeba wylogować się z transportu żeby zobaczyć status kontaktu dodanego :/
Cześć,
Od kilku dni przestał mi działać transport, działalo kilka lat, nic nie zmieniałem i teraz w ogóle nie chce.
Używałem co prawda starszej wersji - 2.2.4+libgadu 1.9.0,
ale przekompilowałem teraz libgadu 1.11.2 + jggtrans aktualny kod z gita i bez zmian.
Pod tcpdumpem widzę, że się łączy do serwera, wymana kilku pakietów i koniec połączenia.
Log z -d 10 -D 10:
2013-10-10 10:43:47 Debug: Zmiana statusu gg na 32770
** gg_change_status(0x1e91590, 32770);
** gg_send_packet(0x1e91590, 0x38, ...);
2013-10-10 10:43:47 Debug: gg_notify_ex(0x1e91590,0x1e916f0,0x1e9a600,45)
** gg_notify_ex(0x1e91590, 0x1e916f0, 0x1e9a600, 45);
** gg_send_packet(0x1e91590, 0x10, ...);
2013-10-10 10:43:47 Debug: OUT:
** gg_event_free(0x1e9a750);
2013-10-10 10:43:47 Debug: io handler kończy...
2013-10-10 10:43:47 Debug: Sprawdzanie warunków błedów...
2013-10-10 10:43:47 Debug: obserwowanie fd (gg_debug_level=10)...
** gg_watch_fd(0x1e91590);
** gg_recv_packet(0x1e91590);
2013-10-10 10:43:47 Uwaga: Connection broken. Session of [email protected]/Pandion ,[GGnumber: ....]
Jakieś pomysły? U mnie się coś popsuło, czy GG zaczęło coś wykrywać i blokować?
Może przynajmniej ktoś da znać, że u niego nadal działa to będę wiedział, żeby kombinować u siebie (choć na razie pomysłów mi brak).
Dzięki.
None
Używam ejabberd 2.1.5 + jggtrans. Przy próbie zarejestrowania się w kontakcie dostaję
Nie zapisuję użytkownika '[email protected]' - konto nie potwierdzone
Próbowałem i na wersji 2.2.2 i 2.2.4 (obie ciągnięte z githuba).
OS: FreeBSD 8.3
jggtrans: git (20130510)
Pakiety: gettext-0.18.1.1_1 libiconv-1.14_1 glib-2.34.3 pcre-8.32 pl-libgadu-1.11.2,1 libidn-1.26 expat-2.0.1_2 pkgconf-0.9.2_1
Po kompilacji najnowszego jggtrans wraz z pakietami wymienionymi wyżej, nie można uruchomić transportu w tle (wiesza się). Ubić można tylko przez 'kill -9', na 'kill -TERM' nie reaguje. Po odpaleniu na pierwszym planie (-f) pracuje poprawnie.
For some reason, the transport does not automatically login after registration and after login to the Jabber account. Can this be fixed so that I can make a video tutorial for Coccinella?
None
None
Bardzo by mi się przydała obsługa rozmów grupowych w transporcie.
Witam!
W tej chwili nawet jak mam u siebie na rosterze znajomych i wlaczona friends-only nikt nie widzi mojego statusu. Dopiero wylaczenie powoduje, ze znajomi widza moj status.
Czy da sie cos z tym zrobic?
Pozdrawiam,
PioDer
2013-10-21 11:51:50 Tworzenie sesji dla '[email protected]/Dom'
2013-10-21 11:51:50 Uwaga: Trying to log in on server 0
2013-10-21 11:51:50 Udane logowanie dla [email protected]/Dom, [numer GG: 5507607]
2013-10-21 11:51:50 Uwaga: Connection broken. Session of [email protected]/Dom ,[GGnumber: 5507607]
2013-10-21 11:51:50 Usuwanie sesji dla '[email protected]/Dom
Problem widoczny od jakiegoś czasu, dla wersji 2.2.4 (taka jest w Gentoo). Niestety jest problemy przy autogen.sh z 2.2.6 i nie mogę sprawdzić czy najnowsza też ma problem.
Serwer Jabbera to ejabberd, chociaż przedtem działało to poprawnie.
Had to manually edit configure.ac line:
+#AC_CONFIG_FILES([Makefile src/Makefile po/Makefile.in po/Makefile.in])
AC_CONFIG_FILES([Makefile src/Makefile po/Makefile.in])
Removed additional repetition of po/Makefile.in
Before removing the error was:
After removing autogen.sh, configure and make passed correctly.
Aby działało get roster...
{{{
--- src/message.c.orig 2009-12-31 02:47:03.000000000 +0100
+++ src/message.c 2009-12-31 02:50:42.000000000 +0100
@@ -208,7 +208,7 @@
xmlnode_put_attrib(msg,"to",s->user->jid);
n=xmlnode_insert_tag(msg,"body");
roster=xmlnode_insert_tag(msg,"x");
body=g_strdup("");
results=g_strsplit(e->event.userlist.reply,"\r\n",0);
@@ -228,6 +228,7 @@
uin=atoi(cinfo[6]);
item=xmlnode_insert_tag(roster,"item");
xmlnode_put_attrib(item,"action","add");
t=g_strconcat(body,"\n",NULL);
g_free(body);
}}}
Przy przechodzeniu na status offline z opisem na jabberze, transport nie ustawia takiego samego opisu w sieci GaduGadu.
{{{
[email protected]:# make
make all-recursive
Making all in libxode
Making all in include
make all-am
Making all in src
Making all in libgadu
/usr/local/bin/gmake all-recursive
Making all in lib
gmake[1]: Wej¶cie do katalogu /stuff/jggtrans-2.2.2/libgadu/lib' gmake[1]: Nie ma nic do zrobienia w
all'.
gmake[1]: Opuszczenie katalogu /stuff/jggtrans-2.2.2/libgadu/lib' gmake[1]: Wej¶cie do katalogu
/stuff/jggtrans-2.2.2/libgadu'
gmake[1]: Nie ma nic do zrobienia w all-am'. gmake[1]: Opuszczenie katalogu
/stuff/jggtrans-2.2.2/libgadu'
Making all in src
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../libgadu/lib -I/usr/local/include -I../libxode/include -I/usr/local/include -DVERSION=""2.2.2"" -DSYSCONFDIR=""/usr/local/etc"" -DLOCALEDIR=""/usr/local/share/locale"" -g -O2 -Wall -MT jggtrans-acl.o -MD -MP -MF ".deps/jggtrans-acl.Tpo" -c -o jggtrans-acl.o test -f 'acl.c' || echo './'
acl.c; then mv -f ".deps/jggtrans-acl.Tpo" ".deps/jggtrans-acl.Po"; else rm -f ".deps/jggtrans-acl.Tpo"; exit 1; fi
In file included from acl.c:21:
conf.h:23: error: syntax error before "config"
conf.h:23: warning: type defaults to int' in declaration of
config'
conf.h:23: warning: data definition has no type or storage class
acl.c: In function acl_init': acl.c:35: error: syntax error before "node" acl.c:41: error:
node' undeclared (first use in this function)
acl.c:41: error: (Each undeclared identifier is reported only once
acl.c:41: error: for each function it appears in.)
acl.c:41: warning: implicit declaration of function xmlnode_get_tag' acl.c:44: warning: implicit declaration of function
xmlnode_get_firstchild'
acl.c:44: warning: implicit declaration of function xmlnode_get_nextsibling' acl.c:45: warning: implicit declaration of function
xmlnode_get_name'
acl.c:45: warning: assignment makes pointer from integer without a cast
acl.c:50: warning: implicit declaration of function xmlnode_get_attrib' acl.c:50: warning: assignment makes pointer from integer without a cast acl.c:52: warning: assignment makes pointer from integer without a cast acl.c: At top level: acl.c:76: error: syntax error before "xmlnode" acl.c: In function
acl_is_allowed':
acl.c:80: error: syntax error before "x"
acl.c:83: error: from' undeclared (first use in this function) acl.c:91: error:
x' undeclared (first use in this function)
acl.c:91: warning: implicit declaration of function xmlnode_new_tag' acl.c:92: warning: implicit declaration of function
xmlnode_insert_tag_node'
acl.c:92: error: node' undeclared (first use in this function) acl.c:103: warning: implicit declaration of function
xmlnode_free'
*** Error code 1
Stop in /stuff/jggtrans-2.2.2/src.
*** Error code 1
Stop in /stuff/jggtrans-2.2.2.
*** Error code 1
Stop in /stuff/jggtrans-2.2.2.
}}}
[http://www.combor.net/config.log]
Przydatny feature, gdy ktoś korzysta w domu z GG, a w pracy z przyczyn niezależnych musi/chce z Jabbera. Gdy zmieni hasło w domu czy też gdzie indziej np. przez webgadu czy też natywnego klienta GG, to mozliwość korzystania z konta przez jabbera zyskuje dopiero po ingerencji administratora i zmianie hasła w pliku użytkownika (w spoolu transportu) na serwerze.
Przy pomocy tych dwóch stron można pobrac więcej informacji do wizytówki (np. kraj, województwo) i obrazek ewentualny.
http://generacja.gadu-gadu.pl/pictureView.php?user=9999999
http://generacja.gadu-gadu.pl/accountView.php?user=9999999
Z tego co widze to te stronki nie wymagają zalogowania do generacji żeby działały. :D
Nie za bardzo znam się na konstrukcji transportu, ale przy logicznym buforowaniu tego może to mieć sens.
Zgłaszam błąd upstreamowi:)
https://bugs.gentoo.org/show_bug.cgi?id=409555
ggtransport is killed by hardened-kernel, in dmesg I can find:
[705011.307357] jggtrans[46908] trap int3 ip:2cfb4bd1e7c sp:3aede48f840 error:0
[705011.307377] grsec: From 62.121.127.119: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for usr/sbin/jggtrans[jggtrans:46908] uid/euid:0/0 gid/egid:0/0, parent /bin/bash[bash:44975] uid/euid:0/0 gid/egid:0/0
With pl_PL.utf8 locale:
gdb /usr/sbin/jggtrans
GNU gdb (Gentoo 7.3.1 p2) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
http://bugs.gentoo.org/...
Reading symbols from /usr/sbin/jggtrans...Reading symbols from /usr/lib64/debug/usr/sbin/jggtrans.debug...done.
done.
(gdb) run
Starting program: /usr/sbin/jggtrans
2012-03-24 15:05:50 Błąd krytyczny: Nie można załadować konfiga!
Program received signal SIGTRAP, Trace/breakpoint trap.
0x0000034eb5d05e7c in ?? ()
(gdb) bt
#0 0x0000034eb5d05e7c in ?? ()
#1 0x0000000000000006 in ?? ()
#2 0x0000000000000005 in ?? ()
#3 0x000000000b17391f in ?? ()
#4 0x0000000000000001 in ?? ()
#5 0x0000006cf1954e82 in local_translate (str=0x34eb52fbcac "\203=\365\377\060") at main.c:267
#6 0x0000000000000000 in ?? ()
(gdb) bt full
#0 0x0000034eb5d05e7c in ?? ()
No symbol table info available.
#1 0x0000000000000006 in ?? ()
No symbol table info available.
#2 0x0000000000000005 in ?? ()
No symbol table info available.
#3 0x000000000b17391f in ?? ()
No symbol table info available.
#4 0x0000000000000001 in ?? ()
No symbol table info available.
#5 0x0000006cf1954e82 in local_translate (str=0x34eb52fbcac "\203=\365\377\060") at main.c:267
lc_ctype = 0x5 <Address 0x5 out of bounds>
lc_messages = 0x6 <Address 0x6 out of bounds>
td_codeset = 0xb17391f <Address 0xb17391f out of bounds>
ret = 0x34eb5d06219 "1\300\017\266T$\030\351\002\376\377\377D\211\305H\213\005!\310."
#6 0x0000000000000000 in ?? ()
No symbol table info available.
With en_US.utf8 locale:
LC_ALL=en_US.utf.8 LANG=en gdb /usr/sbin/jggtrans
GNU gdb (Gentoo 7.3.1 p2) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
http://bugs.gentoo.org/...
Reading symbols from /usr/sbin/jggtrans...Reading symbols from /usr/lib64/debug/usr/sbin/jggtrans.debug...done.
done.
(gdb) run
Starting program: /usr/sbin/jggtrans
2012-03-24 15:07:28 Fatal error: Couldn't load config!
Program received signal SIGTRAP, Trace/breakpoint trap.
0x000003271b45ae7c in ?? ()
(gdb) bt
#0 0x000003271b45ae7c in ?? ()
#1 0x0000032700000006 in ?? ()
#2 0x0000000000000005 in ?? ()
#3 0x0000000000000000 in ?? ()
(gdb) bt full
#0 0x000003271b45ae7c in ?? ()
No symbol table info available.
#1 0x0000032700000006 in ?? ()
No symbol table info available.
#2 0x0000000000000005 in ?? ()
No symbol table info available.
#3 0x0000000000000000 in ?? ()
No symbol table info available.
None
{{{
[email protected]:# make
make all-recursive
Making all in libxode
Making all in include
make all-am
Making all in src
Making all in libgadu
/usr/local/bin/gmake all-recursive
Making all in lib
gmake[1]: Wej¶cie do katalogu /stuff/jggtrans-2.2.2/libgadu/lib' gmake[1]: Nie ma nic do zrobienia w
all'.
gmake[1]: Opuszczenie katalogu /stuff/jggtrans-2.2.2/libgadu/lib' gmake[1]: Wej¶cie do katalogu
/stuff/jggtrans-2.2.2/libgadu'
gmake[1]: Nie ma nic do zrobienia w all-am'. gmake[1]: Opuszczenie katalogu
/stuff/jggtrans-2.2.2/libgadu'
Making all in src
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I../libgadu/lib -I/usr/local/include -I../libxode/include -I/usr/local/include -DVERSION=""2.2.2"" -DSYSCONFDIR=""/usr/local/etc"" -DLOCALEDIR=""/usr/local/share/locale"" -g -O2 -Wall -MT jggtrans-acl.o -MD -MP -MF ".deps/jggtrans-acl.Tpo" -c -o jggtrans-acl.o test -f 'acl.c' || echo './'
acl.c; then mv -f ".deps/jggtrans-acl.Tpo" ".deps/jggtrans-acl.Po"; else rm -f ".deps/jggtrans-acl.Tpo"; exit 1; fi
In file included from acl.c:21:
conf.h:23: error: syntax error before "config"
conf.h:23: warning: type defaults to int' in declaration of
config'
conf.h:23: warning: data definition has no type or storage class
acl.c: In function acl_init': acl.c:35: error: syntax error before "node" acl.c:41: error:
node' undeclared (first use in this function)
acl.c:41: error: (Each undeclared identifier is reported only once
acl.c:41: error: for each function it appears in.)
acl.c:41: warning: implicit declaration of function xmlnode_get_tag' acl.c:44: warning: implicit declaration of function
xmlnode_get_firstchild'
acl.c:44: warning: implicit declaration of function xmlnode_get_nextsibling' acl.c:45: warning: implicit declaration of function
xmlnode_get_name'
acl.c:45: warning: assignment makes pointer from integer without a cast
acl.c:50: warning: implicit declaration of function xmlnode_get_attrib' acl.c:50: warning: assignment makes pointer from integer without a cast acl.c:52: warning: assignment makes pointer from integer without a cast acl.c: At top level: acl.c:76: error: syntax error before "xmlnode" acl.c: In function
acl_is_allowed':
acl.c:80: error: syntax error before "x"
acl.c:83: error: from' undeclared (first use in this function) acl.c:91: error:
x' undeclared (first use in this function)
acl.c:91: warning: implicit declaration of function xmlnode_new_tag' acl.c:92: warning: implicit declaration of function
xmlnode_insert_tag_node'
acl.c:92: error: node' undeclared (first use in this function) acl.c:103: warning: implicit declaration of function
xmlnode_free'
*** Error code 1
Stop in /stuff/jggtrans-2.2.2/src.
*** Error code 1
Stop in /stuff/jggtrans-2.2.2.
*** Error code 1
Stop in /stuff/jggtrans-2.2.2.
}}}
[http://www.combor.net/config.log]
Jest pewien problem z transportem gadu gadu i kontami Gmail. Otóż chodzi o to że jeśli uruchomi się transport na kontach gmail to nie ma możliwości rozmowy z osobami które nie mają cię na liście kontaktów, da się jakoś ten problem ominąć ?
It would be nice to see support for xml:lang in jabber-gg-transport.
None
None
Test conditions:
Steps to reproduce:
Tuż po podłączeniu przychodzi reklama GG w formie strony z javascriptem. Na szczęście moje psi wyświetla to jako tekst pochodzący od użytkownika, którego numer jest mniejszy niż 29999.
Blokowanie użytkownika, który wysłał reklamę powoduje, że reklamę wysyła następny - i tak w kółko, co podłączenie.
Przy wyszukiwaniu niektórych osób gdy jako kryterium wyszukiwania podaje się numer GG zwracane są błędne informacje (od innej osoby - innego numeru GG). Numer GG powodujący błąd podałem do prywatnej wiadomości właściciela projektu.
Sometimes unreproducable gg-transport is going to stop by its own. Message from logfile: Error: Connection to jabber server broken
This isn't possible, because jabber-server is always in a running state, so I'm sure it's the transports fault.
It would be great if jggtrans registered somewhere in XML when specific account last logged. Thanks to that we could do some cleaning of unused accounts.
As reported by Andrzej on the mailing list:
Może zanim zmergujecie - prośba o przyjrzenie się temu drugiemu. Nie wiem
dlaczego, ale ta wersja po każdym logowaniu wysyła pakiet2010-04-13 17:48:05 Debug: Szukanie sesji dla 'user1@host/psi-pedrito'
2010-04-13 17:48:05 Debug: Używam 'user1@host' jako klucza
2010-04-13 17:48:05 Debug: Sesja nie znaleziona
2010-04-13 17:48:05 Debug: OUT:wersja z xiaoka tego problemu nie ma. Sprawdzane na najnowszym ejabberd
(ale na wersj bodajze 2.0.1 tez nie dzialalo jak trzeba)
W logach tworzonych przez jggtrans [tych z /tmp/ggtrans.log] przydałby się timestamp. Po prostu.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.