[OpenSIPS-Users] XMPP Issue

JayaPrakash jp.manchu at gmail.com
Tue Mar 31 14:40:24 CEST 2009


Hi Anca,

As you said, 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



More information about the Users mailing list