Open thundergreen opened 8 years ago
I. Edit /path_to_ejabberd/conf/ejabberd.yml and add:
- port: 5349 module: ejabberd_service hosts: "whatsapp.xmpp": password: "random_password"
II. Edit /etc/spectrum2/transports/whatsapp.cfg. Main things:
frontend=xmpp server_mode=0 jid = whatsapp.xmpp password = random_password port = 5349 protocol=prpl-whatsapp
Other config on your taste.
III. Start ejabberd, spectrum2 and enjoy
Well..this ist exactly what and how I did it. For some reasons it crashes after trying to write immediately @Myppomeu do u successfully have this running? Maybe we could make a short troubleshoot?
What logs (of spectrum and backend) says? Can you see transport in your xmpp client? Does you write correct ip's in config? In my case ejabberd and spectrum2 installed in same LXC container and runs under root. Maybe your user have not necessary file permissions? Meybe apparmor or selinux prevents?
I successfully run my LXC container today.
The transport runs ... I can add contacts as well but then suddenly when trying wo write to someone it crashes ..I also posted the backend log here .. Issue here:
Any idea? https://github.com/davidgfnet/whatsapp-purple/issues/379
[service] user = spectrum group = spectrum
jid = whatsapp.emevth.no-ip.biz
server = 127.0.0.1 password = xxxxxxx port = 5347
backend_host = localhost backend=/usr/local/bin/spectrum2_libpurple_backend
users_per_backend = 10 protocol=prpl-whatsapp more_resources = 1
admin_jid = thorsten@emevth.no-ip.biz
[identity] name = WhatsApp purple Transport type = xmpp category = gateway
[logging] config = /etc/spectrum2/logging.cfg backend_config = /etc/spectrum2/backend-logging.cfg
[database]
Front-end xmpp? Which version of spectrum are u running?
With other transport (telegram-purple) I was not able to add contact and write to someone first. Can you ask someone to write you first and check spectrum backend log at this time with tail -f logfile? Maybe your sqlite database was previosly used by transwat (other whatsapp transport)? In my case I faced with this. Do you select database file in [database] section in transport config? I'm using Spectrum2 2.02. Documentation says that you have to choose frontend. Also check following plural strings in your log:
20599: 2016-02-17 20:02:50,602 INFO libpurple: certificate:CertificateScheme x509 requested but not found. 20599: 2016-02-17 20:02:50,603 INFO libpurple: certificate:CertificatePool x509, tls_peers requested but not found.
Can u show me your whole config? I think I messed something off
[service] frontend=xmpp server_mode=0 jid = whatsapp.xmpp password = my_password server = 127.0.0.1 port = 5349 backend_host = 127.0.0.1 users_per_backend=10 backend=/usr/bin/spectrum2_libpurple_backend protocol=prpl-whatsapp
[identity] name=Whatsapp Transport type=whatsapp
[logging] config = /etc/spectrum2/logging.cfg backend_config = /etc/spectrum2/backend-logging.cfg
[database] type = sqlite3 database = /var/lib/spectrum2/$jid/whatsap-purple_transport.sql
[registration] enable_public_registration=1
Do you configure your transport?
I use transwhat again ;) thanks anyway
Thorsten Fröhlich Am 22.02.2016 13:23 schrieb "Myppomeu" notifications@github.com:
Do you configure your transport?
— Reply to this email directly or view it on GitHub https://github.com/davidgfnet/whatsapp-purple/issues/378#issuecomment-187151290 .
@thundergreen is transwhat working currently?
@genesis231 it is working, but accounts blocks quickly
It's not usable ATM no
Thorsten Fröhlich Am 04.05.2016 16:23 schrieb "Myppomeu" notifications@github.com:
@genesis231 https://github.com/genesis231 it is working, but accounts blocks quickly
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/davidgfnet/whatsapp-purple/issues/378#issuecomment-216880935
Hi Guys. Just want to know if someone knows how to run this transport as a component for a xmpp server (ejabberd)