I tried jabberd2 instead of ejabbered. I'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: [<?xml version='1.0'?><stream:stream xmlns='jabber:component:accept' to='<a href="http://xmpp-sip1.smithmicro.com">xmpp-sip1.smithmicro.com</a>' version='1.0' xmlns:stream='<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>'>]<br>
Jun 19 18:15:17 [23297] DBG:xmpp:xmpp_component_child_process: server read<br>[<?xml version='1.0'?><stream:stream xmlns:stream='<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>' xmlns='jabber:component:accept' from='<a href="http://xmpp-sip1.smithmicro.com">xmpp-sip1.smithmicro.com</a>' version='1.0' id='74sz3r30je58kxp62j5yewa4urgnoduwhmwke0ly'>]<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 [<handshake>ac60984ee8d1f850c98bb63ab00f0b82d9eced0e</handshake>]<br>
Jun 19 18:15:17 [23297] DBG:xmpp:xmpp_component_child_process: server read<br>[<stream:features xmlns:stream='<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>'><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism></mechanisms></stream:features>]<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>[<stream:error xmlns:stream='<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>'><not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>hash didn't match, auth failed</text></stream:error></stream:stream>]<br>
<br><br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 3:44 PM, mani sivaraman <span dir="ltr"><<a href="mailto:mani.opensips@gmail.com">mani.opensips@gmail.com</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;">
HI Anca<br>Thanks for your reply. Here is the setup I'm trying to establish (attached). All I'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"><<a href="mailto:anca@opensips.org" target="_blank">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;">
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> <mailto:<a href="mailto:sip%253Amsivaraman@sips01.smithmicro.com" target="_blank">sip%3Amsivaraman@sips01.smithmicro.com</a>>] to=[sip:mani_openfire*<a href="http://dsdev-xmpp.smsi.com" target="_blank">dsdev-xmpp.smsi.com</a> <<a href="http://dsdev-xmpp.smsi.com" target="_blank">http://dsdev-xmpp.smsi.com</a>>@<a href="http://sip-xmpp.smithmicro.com" target="_blank">sip-xmpp.smithmicro.com</a> <<a href="http://sip-xmpp.smithmicro.com" target="_blank">http://sip-xmpp.smithmicro.com</a>>] body=[hi]<br>
Jun 18 14:28:48 [26322] DBG:xmpp:xode_send: xode_send [<message id='smsiUA_372474835-534838778' from='msivaraman*<a href="http://sips01.smithmicro.com" target="_blank">sips01.smithmicro.com</a> <<a href="http://sips01.smithmicro.com" target="_blank">http://sips01.smithmicro.com</a>>@<a href="http://xmpp-sip.smithmicro.com" target="_blank">xmpp-sip.smithmicro.com</a> <<a href="http://xmpp-sip.smithmicro.com" target="_blank">http://xmpp-sip.smithmicro.com</a>>' to='<a href="mailto:mani_openfire@dsdev-xmpp.smsi.com" target="_blank">mani_openfire@dsdev-xmpp.smsi.com</a> <mailto:<a href="mailto:mani_openfire@dsdev-xmpp.smsi.com" target="_blank">mani_openfire@dsdev-xmpp.smsi.com</a>>' type='chat'><body>hi</body></message>]<div>
<br>
Jun 18 14:28:48 [26322] DBG:xmpp:xmpp_component_child_process: server read<br></div>
[<message type='error' to='msivaraman*<a href="http://sips01.smithmicro.com" target="_blank">sips01.smithmicro.com</a> <<a href="http://sips01.smithmicro.com" target="_blank">http://sips01.smithmicro.com</a>>@<a href="http://xmpp-sip.smithmicro.com" target="_blank">xmpp-sip.smithmicro.com</a> <<a href="http://xmpp-sip.smithmicro.com" target="_blank">http://xmpp-sip.smithmicro.com</a>>' from='<a href="mailto:mani_openfire@dsdev-xmpp.smsi.com" target="_blank">mani_openfire@dsdev-xmpp.smsi.com</a> <mailto:<a href="mailto:mani_openfire@dsdev-xmpp.smsi.com" target="_blank">mani_openfire@dsdev-xmpp.smsi.com</a>>' id='smsiUA_372474835-534838778'><body>hi</body><error code='400' type='modify'><bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></message>]<div>
<br>
<br>
Could any one please help.<br>
<br>
<br></div><div>
On Thu, Jun 18, 2009 at 2:43 PM, mani sivaraman <<a href="mailto:mani.opensips@gmail.com" target="_blank">mani.opensips@gmail.com</a> <mailto:<a href="mailto:mani.opensips@gmail.com" target="_blank">mani.opensips@gmail.com</a>>> 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>
<<a href="mailto:mani.opensips@gmail.com" target="_blank">mani.opensips@gmail.com</a> <mailto:<a href="mailto:mani.opensips@gmail.com" target="_blank">mani.opensips@gmail.com</a>>> wrote:<br>
<br>
I'm new to opensips. I'm trying to setup sip-xmpp gateway<br>
using the "component" 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> <<a href="http://sips01.mydomain.com" target="_blank">http://sips01.mydomain.com</a>> - 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> <<a href="http://sip-xmpp.mydoamin.com" target="_blank">http://sip-xmpp.mydoamin.com</a>> - for<br>
gateway sip domain<br>
<a href="http://xmpp.mydomain.com" target="_blank">xmpp.mydomain.com</a> <<a href="http://xmpp.mydomain.com" target="_blank">http://xmpp.mydomain.com</a>> - for xmpp<br>
server<br>
<a href="http://xmpp-sip.mydomain.com" target="_blank">xmpp-sip.mydomain.com</a> <<a href="http://xmpp-sip.mydomain.com" target="_blank">http://xmpp-sip.mydomain.com</a>> - 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>
<<a href="http://openfire.mydomain.com" target="_blank">http://openfire.mydomain.com</a>>@<a href="http://sip-xmpp.mydomain.com" target="_blank">sip-xmpp.mydomain.com</a><br>
<<a href="http://sip-xmpp.mydomain.com" target="_blank">http://sip-xmpp.mydomain.com</a>><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'm attaching the opensips.cfg for ref. Could any one please<br>
point out what I'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>