[ejabberd] mod_archive : how to retrieve archived message

Delfim Machado dbcm at co.sapo.pt
Fri May 9 21:42:55 MSD 2008


On May 9, 2008, at 18:31 , Arup Malakar wrote:

> On Fri, May 9, 2008 at 10:10 PM, Delfim Machado <dbcm at co.sapo.pt>  
> wrote:
> Hello, try with http://www.xmpp.org/extensions/xep-0136.html#ns
>
> Thanks Delfim it is working as expected now. I actually was going to  
> the url to look for xmlns rather
> then using it in the iq query :-) That is why I  ended up using "urn:xmpp:archive 
> " which seems to be
> the final xmlns for xep-0136.
>
> Here is the iq query I am sending now:
>
> <iq type='get' id='xyz1'>
>   <list xmlns='http://www.xmpp.org/extensions/xep-0136.html#ns'
>         with='xyz at bizense.selfip.com'>
>     <set xmlns='http://jabber.org/protocol/rsm'>
>       <max>30</max>
>     </set>
>   </list>
> </iq>
>
> I am getting result as expected.
>
> -define(NS_ARCHIVE,
>         "http://www.xmpp.org/extensions/xep-0136.html#ns").
>
>     gen_iq_handler:add_iq_handler(ejabberd_sm, Host, ?NS_ARCHIVE, ? 
> MODULE, process_iq, IQDisc),
>     gen_iq_handler:add_iq_handler(ejabberd_local, Host, ? 
> NS_ARCHIVE, ?MODULE, process_local_iq, IQDisc),
>
> Where shall we the add the above configuration (ejabberd.cfg ?), and  
> why is it required?

It's not required, this is the code in the mod_archive_odbc that only  
replies to http://www.xmpp.org/extensions/xep-0136.html#ns and not urn:xmpp:archive

I'll read the XEP, maybe the patch would be easy to do :)


>
>
> --
> Regards,
> Arup Malakar
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd

--
Delfim Machado - dbcm at sl.pt

Aqui há tudo do melhor, Messaging, ISP e VoIP, é só escolher. - http://www.sapo.pt/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jabber.ru/pipermail/ejabberd/attachments/20080509/9719a770/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2724 bytes
Desc: not available
Url : http://lists.jabber.ru/pipermail/ejabberd/attachments/20080509/9719a770/attachment.bin 


More information about the ejabberd mailing list