I am looking at creating a jsm module to transcribe all chats...

copied "mod_example.c" created "mod_transcript.c"... cut most of it out...
------------------------------------------------------------
#include "jsm.h"
mreturn mod_transcript_server(mapi m, void *arg)
{
    printf("----> TEST: in mod_transcript_server\n");
    return M_HANDLED;
}

void mod_transcript(jsmi si)
{
  printf("----> TEST: in mod_transcript\n");
  js_mapi_register(si,e_SERVER,mod_transcript_server,NULL);
}
------------------------------------------------------------

modified jabber.xml. added the following to <load main="jsm"> section:
<mod_transcript>./jsm/jsm.so</mod_transcript>


"./jabberd/jabberd" outputs:
----> TEST: in mod_transcript

okay so far...

QUESTION:
How do I get it so that mod_transcript is instantiated upon all message
arrivals... I thought (and CLEARLY I AM WRONG) that all messages pass
through all the jsm modules, and each module decides whether or not to act
on it... This does not appear to be the case, because I never see
"----> TEST: in mod_transcript_server" in any transactions...

What do I have to do to register mod_transcript with all traffic (or at
least "chat" traffic?)

tia!


                                        -alex

-----------------------------------------------------------------
Alexander N. Spitzer                    Email: [EMAIL PROTECTED]
Unix Systems Engineer                   Phone: 617.349.9361
http://www.3plex.com                    eFax : 509.752.4680

_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev

Reply via email to