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, [&quot;<a href="http://dev.ongobiz.com">dev.ongobiz.com</a>&quot;], [{password, &quot;secret&quot;}]}<br>                           ]}<br>
The xmpp_host name is specified as follow, in ejabberd.cfg file.<br>{hosts, [&quot;<a href="http://dev.ongobiz.com">dev.ongobiz.com</a>&quot;]}.<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(&quot;presence|presence_xml&quot;, &quot;db_url&quot;, &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;)<br>modparam(&quot;presence_xml&quot;, &quot;force_active&quot;, 1)<br>modparam(&quot;presence&quot;, &quot;server_address&quot;, &quot;sip:<a href="http://192.168.1.130:5060">192.168.1.130:5060</a>&quot;)<br>
<br>#---------Pua and pua_xmpp params.-------------<br>modparam(&quot;pua&quot;, &quot;db_url&quot;, &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;)<br>modparam(&quot;pua_xmpp&quot;, &quot;server_address&quot;, &quot;sip:<a href="http://192.168.1.130:5060">192.168.1.130:5060</a>&quot;)<br>
<br># -- xmpp parameters --<br>modparam(&quot;xmpp&quot;, &quot;domain_separator&quot;, &quot;*&quot;)<br>modparam(&quot;xmpp&quot;, &quot;gateway_domain&quot;, &quot;<a href="http://dev.ongobiz.com">dev.ongobiz.com</a>&quot;)<br>
modparam(&quot;xmpp&quot;, &quot;xmpp_domain&quot;, &quot;<a href="http://dev.ongobiz.com">dev.ongobiz.com</a>&quot;)<br>modparam(&quot;xmpp&quot;, &quot;xmpp_host&quot;, &quot;<a href="http://dev.ongobiz.com">dev.ongobiz.com</a>&quot;)<br>
modparam(&quot;xmpp&quot;, &quot;backend&quot;, &quot;component&quot;)<br>modparam(&quot;xmpp&quot;, &quot;xmpp_port&quot;, 5347)<br>modparam(&quot;xmpp&quot;, &quot;xmpp_password&quot;, &quot;secret&quot;)<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, [&quot;<a href="http://dev.ongobiz.com">dev.ongobiz.com</a>&quot;]}.)<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">&lt;<a href="mailto:anca@opensips.org">anca@opensips.org</a>&gt;</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> &lt;<a href="http://192.168.1.130:5060" target="_blank">http://192.168.1.130:5060</a>&gt;<div class="im"><br>
loadmodule &quot;xmpp.so&quot;<br>
# -- xmpp parameters --<br>
modparam(&quot;xmpp&quot;, &quot;domain_separator&quot;, &quot;*&quot;)<br></div>
modparam(&quot;xmpp&quot;, &quot;gateway_domain&quot;, &quot;<a href="http://my_host_name.com" target="_blank">my_host_name.com</a> &lt;<a href="http://my_host_name.com" target="_blank">http://my_host_name.com</a>&gt;&quot;)<br>

modparam(&quot;xmpp&quot;, &quot;xmpp_domain&quot;, &quot;<a href="http://my_host_name.com" target="_blank">my_host_name.com</a> &lt;<a href="http://my_host_name.com" target="_blank">http://my_host_name.com</a>&gt;&quot;)<br>

modparam(&quot;xmpp&quot;, &quot;xmpp_host&quot;, &quot;<a href="http://my_host_name.com" target="_blank">my_host_name.com</a> &lt;<a href="http://my_host_name.com" target="_blank">http://my_host_name.com</a>&gt;&quot;)<div class="im">
<br>
modparam(&quot;xmpp&quot;, &quot;backend&quot;, &quot;component&quot;)<br>
modparam(&quot;xmpp&quot;, &quot;xmpp_port&quot;, 5347)<br>
modparam(&quot;xmpp&quot;, &quot;xmpp_password&quot;, &quot;secret&quot;)<br>
<br>
#------------XMPP related at route -----------------------------<br>
        if (method == &quot;MESSAGE&quot;) {<br>
                log(&quot;*** xmpp-handled MESSAGE message.\n&quot;);<br>
                if (xmpp_send_message()) {<br>
                        t_reply(&quot;200&quot;, &quot;Accepted&quot;);<br>
                } else {<br>
                        t_reply(&quot;404&quot;, &quot;Not found&quot;);<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 &quot;xmpp_host&quot;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, [&quot;<a href="http://my_host_name.com" target="_blank">my_host_name.com</a> &lt;<a href="http://my_host_name.com" target="_blank">http://my_host_name.com</a>&gt;&quot;]}.<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>