muhammad mohsin | 1 Apr 2011 09:43
Favicon

Ejabberd + Bandersnatch Presence table not being updated

AsallamOallaikum

I have setup bandersnatch + ejabberd 2.1.6, I found it only can record the message into the message table, the user and presence tables stay empty. Do I need to do some extra configuration to set that up?

Have a nice Day

Regards;

 

Mohammad Mohsin Khalid

Engineer

Information Technology Department

TradeKey (Pvt) Ltd

 

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
bekanosky | 1 Apr 2011 15:46
Picon

Re: Requirement to connect to GoogleTalk

On 03/30/2011 06:45 AM, Kaiduan Xie wrote:
> Hi, all,
>
> What are the set-up/requirements necessary in order to inter-connect
> with GoogleTalk/Gmail? To be specific, how to generate the certificate
> and set up DNS? Ejabberd 2.1.6 is used as the server.
>
> Please share your experience.

i don't need any special setup to connecting ejabberd with gtalk

>
> Thanks,
>
> /Kaiduan
> _______________________________________________
> ejabberd mailing list
> ejabberd <at> jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
Mickaël Rémond | 1 Apr 2011 18:32
Favicon
Gravatar

Re: Ejabberd + Bandersnatch Presence table not being updated

Hello,


2011/4/1 muhammad mohsin <muhammad.mohsin <at> tradekey.com>

AsallamOallaikum

I have setup bandersnatch + ejabberd 2.1.6, I found it only can record the message into the message table, the user and presence tables stay empty. Do I need to do some extra configuration to set that up?

I guess this is a question on bandersnatch.
Did you try asking the bandersnatch developer.

-- 
Mickaël Rémond
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Badlop | 1 Apr 2011 21:20
Picon

Re: mod_admin_extra compile option - where to put code, includes

2011/3/30 Daniel Dormont <dan <at> greywallsoftware.com>:
> in a separate terminal running ejabberdctl debug, I do
>
>> l(mod_muc_admin).
>
> and this works fine. But if I could replace the latter with a simple ejabberdctl command,
> that would be swell.

When you overwrite beam files, you can update them in the running
ejabberd node using the WebAdmin, or:
$ ejabberdctl update_list
$ ejabberdctl update mod_admin_extra
Updated: []

---
Badlop
ProcessOne
Daniel Dormont | 1 Apr 2011 22:04
Favicon

ejabberdctl update error (was Re: mod_admin_extra compile option - where to put code, includes)

Ah, thanks. When I tried it via the web admin, at least in the case of the specific module I was trying to modify
(mod_muc_admin) it didn't seem to take. That is, it looked like the previous version of the code was still
being called from my testing (of the web admin UI itself). I hadn't realized the "update" command was meant
to reload/restart modules. I tried it just now though and got this:

=INFO REPORT==== 1-Apr-2011::15:56:25 ===
D(<4838.11946.0>:ejabberd_commands:314) : Executing command ejabberd_admin:update with Args=["mod_muc_admin"]
** at node ejabberd <at> danslaptop **
Problem 'error {badmatch,false}' occurred executing the command.
Stacktrace: [{ejabberd_update,get_current_version,1},
             {ejabberd_update,'-get_updated_beams/1-fun-0-',1},
             {lists,'-filter/2-lc$^0/1-0-',2},
             {ejabberd_update,update_info,2},
             {ejabberd_update,update,1},
             {ejabberd_admin,update_module,1},
             {ejabberd_ctl,call_command,3},
             {ejabberd_ctl,try_call_command,3}]

Whereas, running l(mod_muc_admin) from the debug window worked fine.

cheers
dan

On Apr 1, 2011, at 3:20 PM, Badlop wrote:

> 2011/3/30 Daniel Dormont <dan <at> greywallsoftware.com>:
>> in a separate terminal running ejabberdctl debug, I do
>> 
>>> l(mod_muc_admin).
>> 
>> and this works fine. But if I could replace the latter with a simple ejabberdctl command,
>> that would be swell.
> 
> 
> When you overwrite beam files, you can update them in the running
> ejabberd node using the WebAdmin, or:
> $ ejabberdctl update_list
> $ ejabberdctl update mod_admin_extra
> Updated: []
> 
> 
> ---
> Badlop
> ProcessOne
> _______________________________________________
> ejabberd mailing list
> ejabberd <at> jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
jasper@clinct.nl | 4 Apr 2011 10:48
Picon
Favicon

Retrieving all the items from a pubsub Collection

Hey all,

I'm using the pubsub-plug-in 'dag' to build up a hierarchy of collections and nodes in xmpp, but while subscriptions on collections result in receiving items from one of the underlying nodes, trying to manually retrieve the underlying items fails.

According to http://xmpp.org/extensions/xep-0248.html#retrieve-items, item retrieval should have the following behavior:
"When an entity requests items on a collection node the service SHOULD return the items on any leaf nodes associated with it subject to the access model of the collection node."

However, if I send the following stanza:

<iq type='get' from='123 <at> server/resource' to='pubsub.server.com' id='items1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <items node='/home/server/user'/>
  </pubsub>
</iq>

=> Nothing is retrieved:

<iq xmlns='jabber:client' from='pubsub.server.com' to='123 <at> server/resource' id='items1' type='result'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<items node='/home/server/user'/>
</pubsub>
</iq>

While:

<iq type='get' from='123 <at> server/resource' to='pubsub.server.com' id='items1'>
  <query xmlns='http://jabber.org/protocol/disco#items' node='/home/server/user'>
  </query>
</iq>

=> Retrieves only the collections directly under this collection:

<iq xmlns='jabber:client' from='pubsub.server.com' to='123 <at> server/resource' id='items1' type='result'>
<query xmlns='http://jabber.org/protocol/disco#items' node='/home/server/user'>
<item jid='pubsub.server.com' node='/home/server/user/collectionA'/>
<item jid='pubsub.server.com' node='/home/server/user/collectionB'/>
<item jid='pubsub.server.com' node='/home/server/user/collectionC'/>
<item jid='pubsub.server.com' node='/home/server/user/collectionD'/>
</query>
</iq>

Am I missing a config somewhere, or is this not implemented in eJabberd?

Thanks in Advance!

Jasper Hartong


_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Mohsin | 4 Apr 2011 10:15
Favicon

Re: external component

Daniel Dormont <dan <at> greywallsoftware.com> writes:

> 
> Hi all,
> 
> I'm starting to develop an external component using the Java Whack and Tinder
APIs.
> 
> I have managed to register the component using the service listener and I have
it configured as a "logger"
> under mod_service_log. Packets are being delivered correctly, but I see that
the packet is enclosed in a
> "route" tag before it's sent out. May I ask why that's done?
> 
> I'm asking because as best I can tell this "route" tag isn't part of the XMPP
standard and the Java APIs choke
> on the packet. I'm working on modifying them to unwrap the "route" tag but I
was wondering if there's a way to
> tell mod_service_log not to send it in the first place.
> 
> thanks,
> Dan
> 

Hi Dan;

I want to know how to got your service to listen to the ejabberd as I have been
trygin to do this in java also by listening on port 5526, I am not that good at
java and i want to knwo how to register my service my ejabberd conf is :

{5526, ejabberd_service, [{ip, {10, 0, 3, 164}}, {access, all}, 
                  {hosts, ["trademate.ejabberd"]},
[{password, "secret"}]]},

{mod_service_log,[{loggers, ["trademate.ejabberd"]}]},

I know tha ti must resister "trademate.ejabberd" somehow but i dont know how,
can you please guide me here and see if i am configuring the module right

Ragards;
Mohsin
Daniel Dormont | 4 Apr 2011 16:28
Favicon

Re: external component

Moshin,

This isn't really specific to ejabberd but here is a snippet of the code I am using to connect using an
external component. The class should implement org.xmpp.component.Component;

        try {
            ExternalComponentManager _mgr = new ExternalComponentManager(xmppServer, xmppPort);
            _mgr.setSecretKey(componentJid, secretKey);
            _mgr.addComponent(componentJid, this);
        } catch (ComponentException e) {
            log.error("Error setting up external component " + componentJid, e);
        }

The rest of the logic is in the processPacket method.

You really should read this blog post:
http://oneminutedistraction.wordpress.com/2010/10/08/developing-xmpp-components-the-service-2/
and note that both the Whack and Tinder libraries are required. I recommend building the latest version of
Whack from Subversion and using the JARs - including Tinder - that come in the build/lib/dist and
build/lib/merge subdirectories of the Whack distribution. I also recommend using Maven because Whack
has a *lot* of dependencies for a fairly simple API.

Dan

On Apr 4, 2011, at 4:15 AM, Mohsin wrote:

> Daniel Dormont <dan <at> greywallsoftware.com> writes:
> 
>> 
>> Hi all,
>> 
>> I'm starting to develop an external component using the Java Whack and Tinder
> APIs.
>> 
>> I have managed to register the component using the service listener and I have
> it configured as a "logger"
>> under mod_service_log. Packets are being delivered correctly, but I see that
> the packet is enclosed in a
>> "route" tag before it's sent out. May I ask why that's done?
>> 
>> I'm asking because as best I can tell this "route" tag isn't part of the XMPP
> standard and the Java APIs choke
>> on the packet. I'm working on modifying them to unwrap the "route" tag but I
> was wondering if there's a way to
>> tell mod_service_log not to send it in the first place.
>> 
>> thanks,
>> Dan
>> 
> 
> 
> Hi Dan;
> 
> I want to know how to got your service to listen to the ejabberd as I have been
> trygin to do this in java also by listening on port 5526, I am not that good at
> java and i want to knwo how to register my service my ejabberd conf is :
> 
> {5526, ejabberd_service, [{ip, {10, 0, 3, 164}}, {access, all}, 
>                  {hosts, ["trademate.ejabberd"]},
> [{password, "secret"}]]},
> 
> {mod_service_log,[{loggers, ["trademate.ejabberd"]}]},
> 
> I know tha ti must resister "trademate.ejabberd" somehow but i dont know how,
> can you please guide me here and see if i am configuring the module right
> 
> Ragards;
> Mohsin
> 
> _______________________________________________
> ejabberd mailing list
> ejabberd <at> jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
Badlop | 5 Apr 2011 01:22
Picon

Re: Ejabberd + Bandersnatch Presence table not being updated

2011/4/1 muhammad mohsin <muhammad.mohsin <at> tradekey.com>:
> I have setup bandersnatch + ejabberd 2.1.6, I found it only can record the
> message into the message table, the user and presence tables stay empty. Do
> I need to do some extra configuration to set that up?

No configuration changes in ejabberd.

I made this change:

--- a/src/mod_service_log.erl
+++ b/src/mod_service_log.erl
 <at>  <at>  -68,6 +68,7  <at>  <at>  log_packet(From, To, {xmlelement, Name, Attrs, Els}, Host) ->
     FixedPacket = {xmlelement, Name, NewAttrs, Els},
     lists:foreach(
       fun(Logger) ->
+             ?INFO_MSG("I'll log to Logger ~p~nPacket: ~p", [Logger,
FixedPacket]),
              ejabberd_router:route(
                ServerJID,
                #jid{user = "", server = Logger, resource = "",

When a user changes his presence, an INFO_MSG is added to ejabberd.log

---
Badlop
ProcessOne
David Banes | 5 Apr 2011 10:37
Gravatar

Re: ejabberd Digest, Vol 93, Issue 3

Nice...

On 05/04/2011, at 9:00 AM, ejabberd-request <at> jabber.ru wrote:

> Message: 4
> Date: Mon, 4 Apr 2011 21:33:47 +0200
> From: Julien Genestoux <julien.genestoux <at> gmail.com>
> To: ejabberd <at> jabber.ru, 	"Jabber/XMPP software development list"
> 	<jdev <at> jabber.org>
> Subject: [ejabberd] Websockets module for Ejabberd
> Message-ID: <BANLkTingp87mVGUtZWHk91=Q3oWB-Uk0YA <at> mail.gmail.com>
> Content-Type: text/plain; charset="koi8-r"
> 
> Hey!
> 
> We released today an Module for ejabberd that allows the use of Websockets
> to connect to the server.
> We believe it's going to be quite useful for a lot of people.
> It's way too early, but I think this even belongs to the core.
> 
> Feel free to let us know what you think!
> http://blog.superfeedr.com/xmpp-over-websockets/
> 
> Thanks,

--------------------------------------------------------------------------------------------------------
Email Filtering by Cleartext, Carbon Minimised  - www.cleartext.com
--------------------------------------------------------------------------------------------------------

Gmane