Hi Anca,<br><br>As you said, ejabberd is configured to connect to opensips in component mode at port 5347, as described below.<br> {5347, ejabberd_service, [<br> {access, all},<br> {shaper_rule, fast},<br>
{ip, {127, 0, 0, 1}},<br> {hosts, ["<a href="http://dev.ongobiz.com">dev.ongobiz.com</a>"], [{password, "secret"}]}<br> ]}<br>
The xmpp_host name is specified as follow, in ejabberd.cfg file.<br>{hosts, ["<a href="http://dev.ongobiz.com">dev.ongobiz.com</a>"]}.<br><br>Now ejabberd is running.<br>Opensips is configured with the following params of XMPP and pua_xmpp modules.<br>
********************************************************************************************************************<br># ----- presence params -----<br>/* uncomment the following lines if you want to enable presence */<br>
modparam("presence|presence_xml", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")<br>modparam("presence_xml", "force_active", 1)<br>modparam("presence", "server_address", "sip:<a href="http://192.168.1.130:5060">192.168.1.130:5060</a>")<br>
<br>#---------Pua and pua_xmpp params.-------------<br>modparam("pua", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")<br>modparam("pua_xmpp", "server_address", "sip:<a href="http://192.168.1.130:5060">192.168.1.130:5060</a>")<br>
<br># -- xmpp parameters --<br>modparam("xmpp", "domain_separator", "*")<br>modparam("xmpp", "gateway_domain", "<a href="http://dev.ongobiz.com">dev.ongobiz.com</a>")<br>
modparam("xmpp", "xmpp_domain", "<a href="http://dev.ongobiz.com">dev.ongobiz.com</a>")<br>modparam("xmpp", "xmpp_host", "<a href="http://dev.ongobiz.com">dev.ongobiz.com</a>")<br>
modparam("xmpp", "backend", "component")<br>modparam("xmpp", "xmpp_port", 5347)<br>modparam("xmpp", "xmpp_password", "secret")<br>****************************************************************************************************************<br>
above, <a href="http://dev.ongobiz.com">dev.ongobiz.com</a> is the host name of my machine. So gateway_domain and xmpp_domain will be similar.<br>xmpp_host is taken from above config file of ejabbed.({hosts, ["<a href="http://dev.ongobiz.com">dev.ongobiz.com</a>"]}.)<br>
Even now, opensips is saying that connection with ejabbed is refused.<br><br>ERROR:xmpp:net_connect: connect() failed: Connection refused<br><br>From ejabberd server side, there is no log information relating to connection between these two servers.<br>
<br clear="all">Thanks<br>JayaPrakash<br>
<br><br><div class="gmail_quote">On Tue, Mar 31, 2009 at 3:48 PM, Anca Vamanu <span dir="ltr"><<a href="mailto:anca@opensips.org">anca@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
JayaPrakash wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi All,<br>
<br>
I installed Opensips 1.5. I enabled XMPP module in component mode.<br>
Jabber server (ejabberd 2.0.1) is running in the same machine.<br>
I am trying to communicate between Opensips and Jabber server.<br>
Opensips is configured with XMPP as described below.<br>
**********************************************************************************<br></div>
listen=udp:<a href="http://192.168.1.130:5060" target="_blank">192.168.1.130:5060</a> <<a href="http://192.168.1.130:5060" target="_blank">http://192.168.1.130:5060</a>><div class="im"><br>
loadmodule "xmpp.so"<br>
# -- xmpp parameters --<br>
modparam("xmpp", "domain_separator", "*")<br></div>
modparam("xmpp", "gateway_domain", "<a href="http://my_host_name.com" target="_blank">my_host_name.com</a> <<a href="http://my_host_name.com" target="_blank">http://my_host_name.com</a>>")<br>
modparam("xmpp", "xmpp_domain", "<a href="http://my_host_name.com" target="_blank">my_host_name.com</a> <<a href="http://my_host_name.com" target="_blank">http://my_host_name.com</a>>")<br>
modparam("xmpp", "xmpp_host", "<a href="http://my_host_name.com" target="_blank">my_host_name.com</a> <<a href="http://my_host_name.com" target="_blank">http://my_host_name.com</a>>")<div class="im">
<br>
modparam("xmpp", "backend", "component")<br>
modparam("xmpp", "xmpp_port", 5347)<br>
modparam("xmpp", "xmpp_password", "secret")<br>
<br>
#------------XMPP related at route -----------------------------<br>
if (method == "MESSAGE") {<br>
log("*** xmpp-handled MESSAGE message.\n");<br>
if (xmpp_send_message()) {<br>
t_reply("200", "Accepted");<br>
} else {<br>
t_reply("404", "Not found");<br>
}<br>
return;<br>
}<br>
*************************************************************************************<br>
When the server is running it is keep on throwing the following error.<br>
ERROR:xmpp:net_connect: connect() failed: Connection refused<br>
<br>
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)<br>
Can you please give me a suggesion to fix this issue.<br>
<br>
Thanks<br>
Jp<br>
<br>
</div></blockquote>
<br>
As I have mentioned in the other e-mail, the "xmpp_host"parameter must be set to the host of the jabber server.<br>
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:<br>
<br>
%% Hostname<br>
{hosts, ["<a href="http://my_host_name.com" target="_blank">my_host_name.com</a> <<a href="http://my_host_name.com" target="_blank">http://my_host_name.com</a>>"]}.<br>
<br>
regards,<br>
Anca Vamanu<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br>