use MAXS to control your device via ejabberd(plus ssh, jingle voice talk as a bonus)

By | 2014年2月26日

Let’s see what we have got here:
A xmpp server based on ejabberd on my host: lofyer.org.
Windows client: Jitsi(Recommended), Pidgin.
(Optional)A Android client: Xabber.
MAXS on my Nexus 5 Android phone.

1. Prepare the server(Debian 7)

Change hosts and admin section to your FQDN.
Here’s a example:

Then you should restart ejabberd, and maybe a reboot is essential.

Enable Jingle(voice and video)

You need JingleNodes module on your server.

Add following content to your ejabberd.cfg in the modules section.

Enable web register(optional)

Add to ejabberd.cfg, ‘modules’ section the basic configuration:

In the ‘listen’ section enable the web page:

Use your own certificate

The port numbers you should open are: 5281(http://localhost:5281/register/) 5280(http://localhost:5280/admin) and 5222(for c2s).

Register users:

2. Pidgin and MAXS test

Pidgin: admin@lofyer.org
MAXS: myphone@lofyer.org
By the way, guarantee that there is only one running jabber client on your phone during this period.
Pidgin
Add a friend
pidgin
Shell test
shell
SMS test
SMS-SEND
And a msg to my GF.
sms-receive

发表评论

邮箱地址不会被公开。