Hi,

    thanks for this way.
    I hastly changed my config to integrate a listener write in Perl but I
encounter a pb with config in "jabber.xml".

<service id="sniffer">
    <host>myserver</host>
    <host>sniffer.myserver</host>
    <accept>
        <ip/>
        <port>myport</port>
        <secret>secret</secret>
    </accept>
</service>

when I set <host>myserver</host>  I get an error during user's connection :
20020812T16:28:59: [notice] (myserver): bouncing a routed packet to
myuser@myserver from 20@c2s/8105460:
Unable to deliver, destination unknown

when I set <host>localhost</host> and <host>sniffer.localhost</host> all work
fine, but "sniffer" don't receive fragment. It see them only when "to"  JID is
"...@localhost".
<service id="sniffer">
    <host>localhost</host>
    <host>sniffer.localhost</host>
    <accept>
        <ip/>
        <port>myport</port>
        <secret>secret</secret>
    </accept>
</service>

I don't understand where is the mistake...
Any help?

Sylvain

Jean-Louis Seguineau /EXC/TEC a �crit :

> Hey,
>
> That's easy ! And it has nothing to do with whatever language you use. It
> does it requires to write a JSM module as long as your component is only
> meant to process the received packets and not interfere with the JSM
> processing. This can be applied to build a kind of packet "sniffer" and
> allow you to count, record, monitor, etc...
>
> You just need to declare a service in your jabber.xml so to receive a copy
> of all packets going through the server.
>
> <service id="sniffer.myserver">
>     <host>myserver</host>
>     <host>myjpolld.myserver</host>
>     <host>sniffer.myserver</host>
> ....
>   plus any aother internal JID that you want to monitor
>
>     <accept>
>         <ip/>
>         <port>myport</port>
>         <secret>secret</secret>
>     </accept>
> </service>
>
> Then the sniffer component will receive a copy of all traffic for the
> <host>s. The component can sit on another server as any component can.
>
> There is no way that I jnow of to separate the packets types before they are
> sent to the component. But you can either make one component per packet type
> and filter the input, or make a filter component that in turn direct the
> right packet type to a specific processor component.
>
> Hope it helps
>
> Jean-Louis
>
> ----- Original Message -----
> >
> > Message: 3
> > Date: Sun, 11 Aug 2002 12:48:49 +0200
> > From: "Sylvain Roberdeau" <[EMAIL PROTECTED]>
> > Organization: Terra Virtual
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JDEV] Creating a presence server component?
> > Reply-To: [EMAIL PROTECTED]
> >
> > Hi,
> >
> >      sorry if I was not clear :)
> >     I hope to create an "element" for Jabber server which can intercept
> > <presence>, <message> and <iq> and apply some specific process. For
> example, log
> > all data with a specific structure, file repartition, SNMP messages,
> MRTG...
> >     I haven't a good grip on C to build all with this language and I want
> to
> > split process in a separate Jabberd (to avoid overload)
> >     The only way if find it's to build a JSM Module which send specific
> message
> > to a service (write in Java, Perl, Python,...)
> >     Jabberd ->JSM module -> Service
> >     The constraint is to create a specific message structure between JSM
> Module
> > and Service (maybe with <x> namespace).
> >
> >     I was looking for an other way :  build a specific service which can
> receive
> > all blocks in a separate server. I don't kown if it's possible and I guess
> there
> > are some limitations (presence = avalaible or unavalaible, none other by
> > example).
> >
> >     If somebody knows an other solution than the first...
> >
> > Sylvain
> >
>
> _______________________________________________
> jdev mailing list
> [EMAIL PROTECTED]
> http://mailman.jabber.org/listinfo/jdev
begin:vcard 
n:Roberdeau;Sylvain
tel;fax:(33) 1 47 66 55 54
tel;work:(33) 1 47 66 55 50
x-mozilla-html:FALSE
url:http://www.terravirtual.net
org:<img SRC="http://www.terravirtual.net/Logo/ani.gif"; height=60 width=80><br><img SRC="http://www.terravirtual.net/logo/logo.gif"; BORDER=0 height=19 width=100>
adr:;;73, rue de Saussure;PARIS;;75017;France
version:2.1
email;internet:[EMAIL PROTECTED]
title:Directeur G�n�ral
fn:Sylvain Roberdeau
end:vcard

Reply via email to