Hi All,<br>
I am trying to communicate Opensips server with ejabberd server.(both are located at the same machine)<br>Below, it is given how Opensips is configured.<br>*******************************************************************************<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;localhost&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>
Opensips is configured to connect to ejabberd in component mode at port 5347.<br>
ejabberd is configuered to accept connections from outer servers as shown below.<br>
*****************************************************************************************************************************<br>
{listen,<br>
 [<br>
%% Component Connection<br>
  {5347, ejabberd_service, [<br>
                           {access, all},<br>
                           {shaper_rule, fast},<br>
                           {ip, {127, 0, 0, 1}},<br>
                           {hosts, &quot;<a href="http://localhost.dev.ongobiz.com">localhost.dev.ongobiz.com</a>&quot;, [{password, &quot;secret&quot;}]}<br>
                           ]},<br>
%<a href="http://dev.ongobiz.com">dev.ongobiz.com</a> is the host name of ejabberd_server.<br>
---------------------------------<br>
{{s2s_host, &quot;localhost&quot;}, allow}.<br>
---------------------------------<br>
{s2s_use_starttls, true}.<br>
{s2s_certfile, &quot;/etc/ejabberd/ejabberd.pem&quot;}.<br>
{s2s_default_policy, allow}.<br>
---------------------------------<br>
*******************************************************************************************************************************<br>
Now Opensips is trying to connect to ejabberd.(Earlier Opensips server has thrown error, saying, connection refused. Now it is not throwing it.) <br>However, it is not connected.<br>
ejabberd log file is keep on generating the following error.<br>
<br>
=INFO REPORT==== 2009-04-01 12:26:16 ===<br>
I(&lt;0.272.0&gt;:ejabberd_listener:112) : (#Port&lt;0.132787&gt;)
Accepted connection {{127,0,0,1},36511} -&gt; {{127,0,0,1},5347}<br>
<br>
=INFO REPORT==== 2009-04-01 12:26:16 ===<br>
I(&lt;0.1428.4&gt;:ejabberd_service:115) :
({socket_state,gen_tcp,#Port&lt;0.132787&gt;,&lt;0.1427.4&gt;})
External service connected<br>
<br>
=INFO REPORT==== 2009-04-01 12:26:16 ===<br>
I(&lt;0.1428.4&gt;:ejabberd_service:352) : terminated: {{invalid_domain,108},<br>
                                                  [{ejabberd_router,<br>
                                                    register_route,2},<br>
                                                   {ejabberd_service,<br>
                                                    &#39;-wait_for_handshake/2-fun-0-&#39;,<br>
                                                    1},<br>
                                                   {lists,foreach,2},<br>
                                                   {ejabberd_service,<br>
                                                    wait_for_handshake,2},<br>
                                                   {gen_fsm,handle_msg,7},<br>
                                                   {proc_lib,init_p,5}]}<br>
<br>
=ERROR REPORT==== 2009-04-01 12:26:16 ===<br>
** State machine &lt;0.1428.4&gt; terminating <br>
** Last event in was {xmlstreamelement,<br>
                         {xmlelement,&quot;handshake&quot;,[],<br>
                             [{xmlcdata,<br>
                                  &lt;&lt;&quot;f8252dbc2163057f83924dc0a8f6f10512f6b669&quot;&gt;&gt;}]}}<br>
** When State == wait_for_handshake<br>
**      Data  == {state,{socket_state,gen_tcp,#Port&lt;0.132787&gt;,&lt;0.1427.4&gt;},<br>
                        ejabberd_socket,&quot;280805813&quot;,<br>
                        &quot;<a href="http://localhost.dev.ongobiz.com">localhost.dev.ongobiz.com</a>&quot;,&quot;secret&quot;,all,true}<br>
** Reason for termination = <br>
** {{invalid_domain,108},<br>
    [{ejabberd_router,register_route,2},<br>
     {ejabberd_service,&#39;-wait_for_handshake/2-fun-0-&#39;,1},<br>
     {lists,foreach,2},<br>
     {ejabberd_service,wait_for_handshake,2},<br>
     {gen_fsm,handle_msg,7},<br>
     {proc_lib,init_p,5}]}<br>
<br>
Will you please suggest me how to solve this issue.<br>
<br clear="all">Thanks<br>JayaPrakash<br>