[ejabberd] ejabberd_component connection

JayaPrakash jp.manchu at gmail.com
Tue Mar 31 16:45:44 MSD 2009


Hi All,
ejabberd is configured to connect to opensips in component mode at port
5347, as described below.
  {5347, ejabberd_service, [
                           {access, all},
                           {shaper_rule, fast},
                           {ip, {127, 0, 0, 1}},
                           {hosts, ["dev.ongobiz.com"], [{password,
"secret"}]}
                           ]}
The xmpp_host name is specified as follow, in ejabberd.cfg file.
{hosts, ["dev.ongobiz.com"]}.

Now ejabberd is running.
Opensips is configured with the following params of XMPP and pua_xmpp
modules.
********************************************************************************************************************
# ----- presence params -----
/* uncomment the following lines if you want to enable presence */
modparam("presence|presence_xml", "db_url",
"mysql://opensips:opensipsrw@localhost/opensips")
modparam("presence_xml", "force_active", 1)
modparam("presence", "server_address", "sip:192.168.1.130:5060")

#---------Pua and pua_xmpp params.-------------
modparam("pua", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")
modparam("pua_xmpp", "server_address", "sip:192.168.1.130:5060")

# -- xmpp parameters --
modparam("xmpp", "domain_separator", "*")
modparam("xmpp", "gateway_domain", "dev.ongobiz.com")
modparam("xmpp", "xmpp_domain", "dev.ongobiz.com")
modparam("xmpp", "xmpp_host", "dev.ongobiz.com")
modparam("xmpp", "backend", "component")
modparam("xmpp", "xmpp_port", 5347)
modparam("xmpp", "xmpp_password", "secret")
****************************************************************************************************************
above, dev.ongobiz.com is the host name of my machine. So gateway_domain and
xmpp_domain will be similar.
xmpp_host is taken from above config file of ejabbed.({hosts, ["
dev.ongobiz.com"]}.)
Even now, opensips is saying that connection with ejabbed is refused.

ERROR:xmpp:net_connect: connect() failed: Connection refused

>From ejabberd server side, there is no log information relating to
connection between these two servers.

Thanks
JayaPrakash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20090331/21975de4/attachment.htm>


More information about the ejabberd mailing list