Gerard BUNEL a écrit :
>
> Hello,
>
> I need some help on server side development.
> I've writen a module in replacement to the standard mod_presence
> The objective of this module is to route presence messages to a service
> So I wrote function to route some mesages
>
> void route_packet(mapi m) {
> xmlnode node = xmlnode_dup(m->packet->x);
> node = xmlnode_wrap(node, "route");
> xmlnode_put_attrib(node, "to", packet_to);
> deliver(dpacket_new(node), m->si->i);
> }
>
> The result is that sometimes the message is correctly routed, sometimes
> it is not at all and sometimes it
> seems to hang up partially the server (other messages are not sent)
where do you call your function in mod_presence ?
do you mean the callback in mod_presence are not called anymore ?
which sort of packet do you want to route to your external component ?
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev