I could force presence priority to 0 ( or -1) on 5222 sessions, so outgoing messages wont be sent through them.
Le jeudi 27 mars 2014 18:51:52 UTC+1, Jiibii Bii a écrit : > > Finally I stay on 8.2 ( I had problems with 9.3.0 maybe because of me? I > will see later why). > > The c2sports works fine. Quite easy finally. > I manage to make a little module based on mod_stanza_counters. Ok > > But I sill have problem: > origin.conn:serverport() gives me the server port of the message source > session. > For incoming message this is what I want. > But for outgoing messages , I'd like to get the server port of the message > destination session (not the source !). > How to do this the cleanest way? > > The goal of my system is something like this: > people on 5222 have normal behavior > people on 5223 can't send and received messages, but sent and receive > presence. > So my module must reject all message from (ok for this) and to ( how?) > port 5223 > > Thanks > > -- You received this message because you are subscribed to the Google Groups "prosody-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to prosody-dev+unsubscr...@googlegroups.com. To post to this group, send email to prosody-dev@googlegroups.com. Visit this group at http://groups.google.com/group/prosody-dev. For more options, visit https://groups.google.com/d/optout.