resend_on_timeout of mod_stream_mgmt not working with GroupChat

Dear All,

I am trying to make mod_stream_mgmt to work with mod_mix, like when session resume is time-out, then the message should be send to offline message by this following configuration :

max_resume_timeout: 10
resume_timeout: 10
resend_on_timeout: true

But actually this only working with one-one-one chat, it does not work with GroupChat and here is the error in the log

10:17:50.233 [info] * * * ROUTE PACKET 2 : {message,<<"91E147E4-FE5C-41E0-8949-BF23B17CBA1E">>,error,<<"en">>,{jid,<<"android">>,<<"abc.com">>,<<"isse4OO3">>,<<"android">>,<<"abc.com">>,<<"isse4OO3">>},{jid,<<"719b8069-b74b-4679-96a8-7f328650500d">>,<<"conference.abc.com">>,<<"017611213">>,<<"719b8069-b74b-4679-96a8-7f328650500d">>,<<"conference.abc.com">>,<<"017611213">>},[],[{text,<<>>,<<"3">>}],<<"91E147E4-FE5C-41E0-8949-BF23B17CBA1E">>,[{mam_archived,{jid,<<"719b8069-b74b-4679-96a8-7f328650500d">>,<<"conference.abc.com">>,<<>>,<<"719b8069-b74b-4679-96a8-7f328650500d">>,<<"conference.abc.com">>,<<>>},<<"1504581399987858">>},{stanza_id,{jid,<<"719b8069-b74b-4679-96a8-7f328650500d">>,<<"conference.abc.com">>,<<>>,<<"719b8069-b74b-4679-96a8-7f328650500d">>,<<"conference.abc.com">>,<<>>},<<"1504581399987858">>},{xmlel,<<"chat">>,[],[{xmlcdata,<<"text">>}]},{delay,{1504,581400,33404},{jid,<<>>,<<"abc.com">>,<<>>,<<>>,<<"abc.com">>,<<>>},<<"Resent">>},{stanza_error,cancel,503,<<>>,'service-unavailable',{text,<<"en">>,<<"User session not found">>},[]}],#{ip => {0,0,0,0,0,65535,52112,23975}}}
ROUTE : {route,<<"conference.abc.com">>,<<"abc.com">>,<0.5107.0>,undefined}

it said the service-unavailable, and when i check the route table i see this :

[{route,<<"conference.abc.com">>,
<<"abc.com">>,<0.7855.0>,undefined},
{route,<<"echo.abc.com">>,<<"abc.com">>,
<0.7955.0>,undefined},
{route,<<"multicast.abc.com">>,
<<"abc.com">>,<0.7981.0>,undefined},
{route,<<"pubsub.abc.com">>,<<"abc.com">>,
<0.7959.0>,undefined},
{route,<<"abc.com">>,<<"abc.com">>,
<0.7822.0>,
{apply,ejabberd_local,route}},
{route,<<"mix.abc.com">>,<<"abc.com">>,
<0.7985.0>,undefined},
{route,<<"upload.abc.com">>,<<"abc.com">>,
<0.7948.0>,undefined},
{route,<<"irc.abc.com">>,<<"abc.com">>,
<0.7970.0>,undefined}]

it seems like the route for conference.abc.com is undefined, could you plz tell how to define or register the service ? or is there any other way to make stream management working with mod_mix and mod_pubsub ?

Thanks.

Syndicate content