If I wanted to take jabberd and add a tag which cc's all presence and messages to a server component, please let me know if what I'm planning on doing makes sense:
(this is all for 1.4.2)

I want to make a <src>/jabberd/base/base_carboncopy.c

Then put a <carboncopy>some_jid_or_internal_component_id</carboncopy>

high up in the sessions service, so it sees everything.
 <service id="sessions">
   <host><jabberd:cmdline flag="h">localhost</jabberd:cmdline></host>
    <carboncopy>mycomponent.localhost</carboncopy>
.....
 

In base_carboncopy.c I want to do this: (this is the part I'd like some advice on:
result base_forward_deliver(instance id, dpacket p, void* arg){
 
    if my packet is a message, or presence
    copy it, wrap in route tag, and deliver to component which is defined in the config.
}
 

Any advice?
Thanks
-Dov
 

--
This communication is intended for the addressee(s) and may contain confidential and legally privileged information.  We do not waive confidentiality or privilege by mistransmission.  If you have received this communication in error, any use, dissemination, printing or copying is strictly prohibited; please destroy all electronic and paper copies and notify the sender immediately.
 

begin:vcard 
n:Katz;Dov
tel;work:+1 (212) 762-2171
x-mozilla-html:FALSE
url:http://www.morganstanley.com
org:<img src="http://www.morganstanley.com/img/morgan.gif";> ;Information Technology
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;750 7th Avenue=0D=0A34th Floor;New York;NY;10019;
fn:Dov Katz
end:vcard


Reply via email to