I tried jabberd2 instead of ejabbered. I&#39;m not able to make opensips connect to jabberd2 on component port 5347. I get handshake error when trying to connect. I configured the secret correctly in the xmpp param and jabbered2 c2s.xml<br>
<br>Coudlu any one please help.<br><br>Jun 19 18:15:17 [23297] DBG:xmpp:net_connect: connecting to 172.16.0.141:5347...<br>Jun 19 18:15:17 [23297] DBG:xmpp:net_connect: connected to 172.16.0.141:5347...<br>Jun 19 18:15:17 [23297] DBG:xmpp:net_printf: net_printf: [&lt;?xml version=&#39;1.0&#39;?&gt;&lt;stream:stream xmlns=&#39;jabber:component:accept&#39; to=&#39;<a href="http://xmpp-sip1.smithmicro.com">xmpp-sip1.smithmicro.com</a>&#39; version=&#39;1.0&#39; xmlns:stream=&#39;<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>&#39;&gt;]<br>
Jun 19 18:15:17 [23297] DBG:xmpp:xmpp_component_child_process: server read<br>[&lt;?xml version=&#39;1.0&#39;?&gt;&lt;stream:stream xmlns:stream=&#39;<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>&#39; xmlns=&#39;jabber:component:accept&#39; from=&#39;<a href="http://xmpp-sip1.smithmicro.com">xmpp-sip1.smithmicro.com</a>&#39; version=&#39;1.0&#39; id=&#39;74sz3r30je58kxp62j5yewa4urgnoduwhmwke0ly&#39;&gt;]<br>
Jun 19 18:15:17 [23297] DBG:xmpp:stream_node_callback: stream callback: 0: stream:stream<br>Jun 19 18:15:17 [23297] DBG:xmpp:xode_send: xode_send [&lt;handshake&gt;ac60984ee8d1f850c98bb63ab00f0b82d9eced0e&lt;/handshake&gt;]<br>
Jun 19 18:15:17 [23297] DBG:xmpp:xmpp_component_child_process: server read<br>[&lt;stream:features xmlns:stream=&#39;<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>&#39;&gt;&lt;mechanisms xmlns=&#39;urn:ietf:params:xml:ns:xmpp-sasl&#39;&gt;&lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;/stream:features&gt;]<br>
Jun 19 18:15:17 [23297] DBG:xmpp:stream_node_callback: stream callback: 1: stream:features<br>Jun 19 18:15:17 [23297] DBG:xmpp:xmpp_component_child_process: server read<br>[&lt;stream:error xmlns:stream=&#39;<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>&#39;&gt;&lt;not-authorized xmlns=&#39;urn:ietf:params:xml:ns:xmpp-streams&#39;/&gt;&lt;text xmlns=&#39;urn:ietf:params:xml:ns:xmpp-streams&#39;&gt;hash didn&#39;t match, auth failed&lt;/text&gt;&lt;/stream:error&gt;&lt;/stream:stream&gt;]<br>
<br><br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 3:44 PM, mani sivaraman <span dir="ltr">&lt;<a href="mailto:mani.opensips@gmail.com">mani.opensips@gmail.com</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;">
HI Anca<br>Thanks for your reply. Here is the setup I&#39;m trying to establish (attached). All I&#39;m trying to do is to make the SIMPLE Client (which is connected to opensips) talk to the Spark Client (which is connected to OPenfire xmpp server). Ejabbered is just used for intermediate translation. Right now if I disable the port 5347 on ejabbered , the C2S connection between opensips and ejabbered are broken and I can make a xmpp client connected to Ejabbered talk to the Spark Client connected to openfire. <br>

<br>Every thing becomes higely unstable if I enable the C2S ( 5347 port) of ejabbered and if opensips connects to ejabbered. This makes the ejabbered go down every 2 min and all clients connected to ejabbered lose connection and status and no message is working. The openips c2s connection to ejabbered make the system unsable. Not sure why ?<br>

<br>Any pointer ?<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 3:57 AM, Anca Vamanu <span dir="ltr">&lt;<a href="mailto:anca@opensips.org" target="_blank">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;">
Hi Mani,<br>
<br>
After googleing up your error returned by ejabber  I think that the problem is that the domain of the xmpp buddy is not the same as the domain you configured to ejabber. I see in your post that you say that the xmpp server domain in <a href="http://xmpp.smsi.com" target="_blank">xmpp.smsi.com</a> but in the message the to uri has domain <a href="http://dsdev-xmpp.smsi.com" target="_blank">dsdev-xmpp.smsi.com</a>.<br>


<br>
regards,<br>
Anca<br>
<br>
mani sivaraman 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>
I see the following XMPP message communication debug from opensips server console. The opensips gets a 400 error for sending the xmpp message to openfire.<br>
<br>
<br>
Jun 18 14:28:48 [26322] DBG:xmpp:xmpp_component_child_process: got pipe cmd 2<br></div>
Jun 18 14:28:48 [26322] DBG:xmpp:do_send_message_component: do_send_message_component from=[<a href="mailto:sip%3Amsivaraman@sips01.smithmicro.com" target="_blank">sip:msivaraman@sips01.smithmicro.com</a> &lt;mailto:<a href="mailto:sip%253Amsivaraman@sips01.smithmicro.com" target="_blank">sip%3Amsivaraman@sips01.smithmicro.com</a>&gt;] to=[sip:mani_openfire*<a href="http://dsdev-xmpp.smsi.com" target="_blank">dsdev-xmpp.smsi.com</a> &lt;<a href="http://dsdev-xmpp.smsi.com" target="_blank">http://dsdev-xmpp.smsi.com</a>&gt;@<a href="http://sip-xmpp.smithmicro.com" target="_blank">sip-xmpp.smithmicro.com</a> &lt;<a href="http://sip-xmpp.smithmicro.com" target="_blank">http://sip-xmpp.smithmicro.com</a>&gt;] body=[hi]<br>


Jun 18 14:28:48 [26322] DBG:xmpp:xode_send: xode_send [&lt;message id=&#39;smsiUA_372474835-534838778&#39; from=&#39;msivaraman*<a href="http://sips01.smithmicro.com" target="_blank">sips01.smithmicro.com</a> &lt;<a href="http://sips01.smithmicro.com" target="_blank">http://sips01.smithmicro.com</a>&gt;@<a href="http://xmpp-sip.smithmicro.com" target="_blank">xmpp-sip.smithmicro.com</a> &lt;<a href="http://xmpp-sip.smithmicro.com" target="_blank">http://xmpp-sip.smithmicro.com</a>&gt;&#39; to=&#39;<a href="mailto:mani_openfire@dsdev-xmpp.smsi.com" target="_blank">mani_openfire@dsdev-xmpp.smsi.com</a> &lt;mailto:<a href="mailto:mani_openfire@dsdev-xmpp.smsi.com" target="_blank">mani_openfire@dsdev-xmpp.smsi.com</a>&gt;&#39; type=&#39;chat&#39;&gt;&lt;body&gt;hi&lt;/body&gt;&lt;/message&gt;]<div>

<br>
Jun 18 14:28:48 [26322] DBG:xmpp:xmpp_component_child_process: server read<br></div>
[&lt;message type=&#39;error&#39; to=&#39;msivaraman*<a href="http://sips01.smithmicro.com" target="_blank">sips01.smithmicro.com</a> &lt;<a href="http://sips01.smithmicro.com" target="_blank">http://sips01.smithmicro.com</a>&gt;@<a href="http://xmpp-sip.smithmicro.com" target="_blank">xmpp-sip.smithmicro.com</a> &lt;<a href="http://xmpp-sip.smithmicro.com" target="_blank">http://xmpp-sip.smithmicro.com</a>&gt;&#39; from=&#39;<a href="mailto:mani_openfire@dsdev-xmpp.smsi.com" target="_blank">mani_openfire@dsdev-xmpp.smsi.com</a> &lt;mailto:<a href="mailto:mani_openfire@dsdev-xmpp.smsi.com" target="_blank">mani_openfire@dsdev-xmpp.smsi.com</a>&gt;&#39; id=&#39;smsiUA_372474835-534838778&#39;&gt;&lt;body&gt;hi&lt;/body&gt;&lt;error code=&#39;400&#39; type=&#39;modify&#39;&gt;&lt;bad-request xmlns=&#39;urn:ietf:params:xml:ns:xmpp-stanzas&#39;/&gt;&lt;/error&gt;&lt;/message&gt;]<div>

<br>
<br>
Could any one please help.<br>
<br>
<br></div><div>
On Thu, Jun 18, 2009 at 2:43 PM, mani sivaraman &lt;<a href="mailto:mani.opensips@gmail.com" target="_blank">mani.opensips@gmail.com</a> &lt;mailto:<a href="mailto:mani.opensips@gmail.com" target="_blank">mani.opensips@gmail.com</a>&gt;&gt; wrote:<br>


<br>
    I have the full detailed debug console out of opensips, while<br>
    trying to add an xmpp buddy to my sip client connected to<br>
    opensips. Seems like I get the NOTIFY for the new xmpp buddy<br>
    added, but blank xml body. The message is not reaching the<br>
    openfire xmpp clinet.<br>
<br>
    Could any one look at the output log and tell me what is missing ?<br>
    Thanks you very much<br>
<br>
<br>
<br>
    On Thu, Jun 18, 2009 at 10:56 AM, mani sivaraman<br></div><div>
    &lt;<a href="mailto:mani.opensips@gmail.com" target="_blank">mani.opensips@gmail.com</a> &lt;mailto:<a href="mailto:mani.opensips@gmail.com" target="_blank">mani.opensips@gmail.com</a>&gt;&gt; wrote:<br>
<br>
        I&#39;m new to opensips. I&#39;m trying to setup sip-xmpp gateway<br>
        using the &quot;component&quot; mode with a local ejabbered server. I<br>
        followed the opensips.cfg found in link<br>
<br>
        <a href="http://www.opensips.org/Resources/PuaXmppConfig" target="_blank">http://www.opensips.org/Resources/PuaXmppConfig</a><br>
<br>
        I have 3 domains defined for my opensips server.<br>
<br></div>
        <a href="http://sips01.mydomain.com" target="_blank">sips01.mydomain.com</a> &lt;<a href="http://sips01.mydomain.com" target="_blank">http://sips01.mydomain.com</a>&gt;     - primary<div><br>
        opensips dns/domain defined in my sql doamin table<br></div>
        <a href="http://sip-xmpp.mydoamin.com" target="_blank">sip-xmpp.mydoamin.com</a> &lt;<a href="http://sip-xmpp.mydoamin.com" target="_blank">http://sip-xmpp.mydoamin.com</a>&gt; - for<br>
        gateway sip domain<br>
        <a href="http://xmpp.mydomain.com" target="_blank">xmpp.mydomain.com</a> &lt;<a href="http://xmpp.mydomain.com" target="_blank">http://xmpp.mydomain.com</a>&gt;      - for xmpp<br>
        server<br>
        <a href="http://xmpp-sip.mydomain.com" target="_blank">xmpp-sip.mydomain.com</a> &lt;<a href="http://xmpp-sip.mydomain.com" target="_blank">http://xmpp-sip.mydomain.com</a>&gt; - for<div><br>
        xmpp component of opensips<br>
<br>
        I have configured the same according to the link. config above.<br>
<br>
        I have all these 4 domain in /etc/hosts file. The first<br>
        primary domain is the only one on dns look up.<br>
<br>
        I have ejabbered server listenening on port 5347, I also see<br>
        my opensips ESTABLISHED connetion to port 5347 of ejabbered.<br>
<br>
        Testing:<br>
        ------------<br>
        I logged into opensips with a sip/presence client and added an<br>
        xmpp buddy to the sip contact list with the following format.<br>
        The xmpp buddy is on an openfire server.<br>
        so the buddy added was like<br>
<br>
        mani_openfire*<a href="http://openfire.mydomain.com" target="_blank">openfire.mydomain.com</a><br></div>
        &lt;<a href="http://openfire.mydomain.com" target="_blank">http://openfire.mydomain.com</a>&gt;@<a href="http://sip-xmpp.mydomain.com" target="_blank">sip-xmpp.mydomain.com</a><br>
        &lt;<a href="http://sip-xmpp.mydomain.com" target="_blank">http://sip-xmpp.mydomain.com</a>&gt;<div><br>
<br>
        I see opensips sending SUBSCRIBE to mani_openfire and got<br>
        NOTIFY for the same. But there is no body in the NOTIFY. Says<br>
        subscription state = active. I do not see any communication to<br>
        the openfire server however, if I do a tcpdump.<br>
<br>
        When I try to send a message to the openfire buddy, I get 200<br>
        OK, but the MESSAGE never gets through to the openfire server<br>
        buddy.<br>
<br>
        I&#39;m attaching the opensips.cfg for ref. Could any one please<br>
        point out what I&#39;m doing wrong. I do not seeing any error when<br>
        testing. Still MESSAGE is not working bet sip and xmpp.<br>
<br>
<br>
<br></div>
------------------------------------------------------------------------<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>
</div></div></blockquote></div><br>