MUC working With mode filter

Guys hi,

I am try?ng to connect to my MUC at conference.myserver.org

but ? am also using mod_filter which allows only admins can send and get messages and also it only allows admins to see the presence of users.

this however keeps me away from entering my clients to the MUC as soon as ? allow every one to message and everyone to share presence it work can anyone help me on this ?

my modfilter config is as fallows

{acl, ex3server, {server_glob, "*myserver.org"}}.

{access, mod_filter_presence, 
    [{allow, admin},
     {restrict_ex3, ex3server}]}.

{access, mod_filter_iq,
    [{allow, admin},
     {restrict_ex3, ex3server}]}.

{access, mod_filter_message,
    [{allow, admin},
     {restrict_ex3, ex3server}]}.

{access, mod_filter,
    [{allow, admin},
     {restrict_ex3, ex3server}]}.

{access, restrict_ex3,
    [{allow, admin},
     {deny, all}]}.

i would appreciate anyhelp.

I've updated mod_filter.erl

I've updated mod_filter.erl in the Bugzilla page. Now it seems to work as you want with this configuration:

%% This matches any MUC JID of the local server
{acl, ex3muc, {server, "conference.localhost"}}.

%% This matches any JID of the local server
{acl, ex3server, {server_glob, "*localhost"}}.

%% Admins can send/receive Presence/Message to/from everybody
%% MUC entities can send/receive Presence/Message to/from everybody
%% Non-admins can send/receive Presence/Message to/from MUC
%% Anything else is denied
{access, mod_filter_presence,
    [{allow, admin},
     {allow, ex3muc},
     {restrict_ex3, ex3server}]}.
{access, mod_filter_message,
    [{allow, admin},
     {allow, ex3muc},
     {restrict_ex3, ex3server}]}.

%% Everybody can send/receive IQ to/from everybody
{access, mod_filter_iq,
    [{allow, all}]}.

%% In general, everybody can send/receive to/from everybody
{access, mod_filter,
    [{allow, all}]}.

{access, restrict_ex3,
    [{allow, admin},
     {allow, ex3muc},
     {deny, all}]}.
Syndicate content