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:opensip...@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:opensip...@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


On Tue, Mar 31, 2009 at 3:48 PM, Anca Vamanu <[email protected]> wrote:

> JayaPrakash wrote:
>
>> Hi All,
>>
>> I installed Opensips 1.5. I enabled XMPP module in component mode.
>> Jabber server (ejabberd 2.0.1) is running in the same machine.
>> I am trying to communicate between Opensips and Jabber server.
>> Opensips is configured with XMPP as described below.
>>
>> **********************************************************************************
>> listen=udp:192.168.1.130:5060 <http://192.168.1.130:5060>
>> loadmodule "xmpp.so"
>> # -- xmpp parameters --
>> modparam("xmpp", "domain_separator", "*")
>> modparam("xmpp", "gateway_domain", "my_host_name.com <
>> http://my_host_name.com>")
>> modparam("xmpp", "xmpp_domain", "my_host_name.com <
>> http://my_host_name.com>")
>> modparam("xmpp", "xmpp_host", "my_host_name.com <http://my_host_name.com
>> >")
>> modparam("xmpp", "backend", "component")
>> modparam("xmpp", "xmpp_port", 5347)
>> modparam("xmpp", "xmpp_password", "secret")
>>
>> #------------XMPP related at route -----------------------------
>>        if (method == "MESSAGE") {
>>                log("*** xmpp-handled MESSAGE message.\n");
>>                if (xmpp_send_message()) {
>>                        t_reply("200", "Accepted");
>>                } else {
>>                        t_reply("404", "Not found");
>>                }
>>                return;
>>        }
>>
>> *************************************************************************************
>> When the server is running it is keep on throwing the following error.
>>  ERROR:xmpp:net_connect: connect() failed: Connection refused
>>
>> Coming to jabber server (here it is ejabberd), it is able to allow
>> connections from outer xmpp servers.(It is able to connect to Gtalk and
>> communicate with it)
>> Can you please give me a suggesion to fix this issue.
>>
>> Thanks
>> Jp
>>
>>
>
> As I have mentioned in the other e-mail, the "xmpp_host"parameter must be
> set to the host of the jabber server.
> For example, for setting the host of the ejabber server you have to edit
> the /etc/ejabberd/ejabberd.cfg and pun in the Hostname section your domain
> name:
>
> %% Hostname
> {hosts, ["my_host_name.com <http://my_host_name.com>"]}.
>
> regards,
> Anca Vamanu
>
>  ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to