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("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", "localhost")<br>modparam("xmpp", "backend", "component")<br>modparam("xmpp", "xmpp_port", 5347)<br>modparam("xmpp", "xmpp_password", "secret")<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, "<a href="http://localhost.dev.ongobiz.com">localhost.dev.ongobiz.com</a>", [{password, "secret"}]}<br>
]},<br>
%<a href="http://dev.ongobiz.com">dev.ongobiz.com</a> is the host name of ejabberd_server.<br>
---------------------------------<br>
{{s2s_host, "localhost"}, allow}.<br>
---------------------------------<br>
{s2s_use_starttls, true}.<br>
{s2s_certfile, "/etc/ejabberd/ejabberd.pem"}.<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(<0.272.0>:ejabberd_listener:112) : (#Port<0.132787>)
Accepted connection {{127,0,0,1},36511} -> {{127,0,0,1},5347}<br>
<br>
=INFO REPORT==== 2009-04-01 12:26:16 ===<br>
I(<0.1428.4>:ejabberd_service:115) :
({socket_state,gen_tcp,#Port<0.132787>,<0.1427.4>})
External service connected<br>
<br>
=INFO REPORT==== 2009-04-01 12:26:16 ===<br>
I(<0.1428.4>:ejabberd_service:352) : terminated: {{invalid_domain,108},<br>
[{ejabberd_router,<br>
register_route,2},<br>
{ejabberd_service,<br>
'-wait_for_handshake/2-fun-0-',<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 <0.1428.4> terminating <br>
** Last event in was {xmlstreamelement,<br>
{xmlelement,"handshake",[],<br>
[{xmlcdata,<br>
<<"f8252dbc2163057f83924dc0a8f6f10512f6b669">>}]}}<br>
** When State == wait_for_handshake<br>
** Data == {state,{socket_state,gen_tcp,#Port<0.132787>,<0.1427.4>},<br>
ejabberd_socket,"280805813",<br>
"<a href="http://localhost.dev.ongobiz.com">localhost.dev.ongobiz.com</a>","secret",all,true}<br>
** Reason for termination = <br>
** {{invalid_domain,108},<br>
[{ejabberd_router,register_route,2},<br>
{ejabberd_service,'-wait_for_handshake/2-fun-0-',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>