hello everyone,
I'm new to XMPP and ejabberd and I'm encountering some problems that I don't understand.
I'm making an MUC application using JAXL (PHP). I installed an ejabberd on my ubuntu Server, enabled http_bind module to enable BOSH. I'm using BOSH.
A user can log to a MUC room but when I send any message to the room, the ejabberd server return this :
[1:1382:0] 2012-01-18 22:06:46 - [[XMPPGet]]
<body xmlns='http://jabber.org/protocol/httpbind'><message xmlns='jabber:client' from='room@muc.xx.xxx.xxx.xxx' to='user@xx.xxx.xxx.xxx/resource' type='error'><body>mymessage</body><error code='503' type='cancel'><service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></message></body>
there is a service I does not enable but I don't know wich one ?
the error message in ejabberd logfile are:
=INFO REPORT==== 2012-01-18 22:56:40 ===
D(<0.495.0>:ejabberd_router:313) : route
from {jid,"user","xx.xxx.xxx.xxx","resource","user",
"xx.xxx.xxx.xxx","resource"}
to {jid,"room","muc.xx.xxx.xxx.xxx",[],"room","muc.xx.xxx.xxx.xxx",[]}
packet {xmlelement,"message",
[{"from","user@xx.xxx.xxx.xxx/resource"},
{"to","room@muc.xx.xxx.xxx.xxx"},
{"type","groupchat"}],
[{xmlelement,"body",[],[{xmlcdata,<<"message">>}]}]}
=INFO REPORT==== 2012-01-18 22:56:40 ===
D(<0.495.0>:ejabberd_s2s:252) : s2s manager
from {jid,"user","xx.xxx.xxx.xxx","resource","user",
"xx.xxx.xxx.xxx","resource"}
to {jid,"room","muc.xx.xxx.xxx.xxx",[],"room","muc.xx.xxx.xxx.xxx",[]}
packet {xmlelement,"message",
[{"from","user@xx.xxx.xxx.xxx/resource"},
{"to",[...]},
{[...],...}],
[{xmlelement,[...],...}]}
=INFO REPORT==== 2012-01-18 22:56:40 ===
D(<0.495.0>:ejabberd_s2s:287) : Finding connection for {"xx.xxx.xxx.xxx",
"muc.xx.xxx.xxx.xxx"}
=INFO REPORT==== 2012-01-18 22:56:40 ===
D(<0.495.0>:ejabberd_router:313) : route
from {jid,"room","muc.xx.xxx.xxx.xxx",[],"room","muc.xx.xxx.xxx.xxx",
[]}
to {jid,"user","xx.xxx.xxx.xxx","resource","user",
"xx.xxx.xxx.xxx","resource"}
packet {xmlelement,"message",
[{"type","error"},
{"to","user@xx.xxx.xxx.xxx/resource"},
{"from","room@muc.xx.xxx.xxx.xxx"}],
[{xmlelement,"body",[],[{xmlcdata,<<"message">>}]},
{xmlelement,"error",
[{"code","503"},{"type","cancel"}],
[{xmlelement,"service-unavailable",
[{"xmlns","urn:ietf:params:xml:ns:xmpp-stanzas"}],
[]}]}]}
=INFO REPORT==== 2012-01-18 22:56:40 ===
D(<0.495.0>:ejabberd_local:286) : local route
from {jid,"room","muc.xx.xxx.xxx.xxx",[],"room","muc.xx.xxx.xxx.xxx",
[]}
to {jid,"user","xx.xxx.xxx.xxx","resource","user",
"xx.xxx.xxx.xxx","resource"}
packet {xmlelement,"message",
[{"type","error"},{"to",[...]},{[...],...}],
[{xmlelement,[...],...},{xmlelement,...}]}
=INFO REPORT==== 2012-01-18 22:56:40 ===
D(<0.495.0>:ejabberd_sm:410) : session manager
from {jid,"room","muc.xx.xxx.xxx.xxx",[],"room","muc.xx.xxx.xxx.xxx",
[]}
to {jid,"user","xx.xxx.xxx.xxx","jaxl.1.1326923795","user",
"xx.xxx.xxx.xxx","resource"}
packet {xmlelement,"message",
[{"type","error"},{"to",[...]},{[...],...}],
[{xmlelement,[...],...},{xmlelement,...}]}
=INFO REPORT==== 2012-01-18 22:56:40 ===
D(<0.495.0>:ejabberd_sm:509) : sending to process <0.495.0>
after this, it sends to the the error message to the user..
this is a part of my ejabberd config file:
{listen,
[
{5222, ejabberd_c2s, [
{access, c2s},
{shaper, c2s_shaper},
starttls, {certfile, "/etc/ejabberd/ejabberd.pem"},
{max_stanza_size, 65536}
]},
{5280, ejabberd_http, [
%%{request_handlers,
%% [
%% {["pub", "archive"], mod_http_fileserver}
%% ]},
%%captcha,
http_bind,
http_poll,
web_admin
]}
]}.
I don't know if there is anything else to show that can help you to make me understand my error.
Thank you !