Hi Mani, 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 xmpp.smsi.com but in the message the to uri has domain dsdev-xmpp.smsi.com.
regards, Anca mani sivaraman wrote: > 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. > > > Jun 18 14:28:48 [26322] DBG:xmpp:xmpp_component_child_process: got > pipe cmd 2 > Jun 18 14:28:48 [26322] DBG:xmpp:do_send_message_component: > do_send_message_component from=[sip:[email protected] > <mailto:sip%[email protected]>] > to=[sip:mani_openfire*dsdev-xmpp.smsi.com > <http://dsdev-xmpp.smsi.com>@sip-xmpp.smithmicro.com > <http://sip-xmpp.smithmicro.com>] body=[hi] > Jun 18 14:28:48 [26322] DBG:xmpp:xode_send: xode_send [<message > id='smsiUA_372474835-534838778' from='msivaraman*sips01.smithmicro.com > <http://sips01.smithmicro.com>@xmpp-sip.smithmicro.com > <http://xmpp-sip.smithmicro.com>' > to='[email protected] > <mailto:[email protected]>' > type='chat'><body>hi</body></message>] > Jun 18 14:28:48 [26322] DBG:xmpp:xmpp_component_child_process: server read > [<message type='error' to='msivaraman*sips01.smithmicro.com > <http://sips01.smithmicro.com>@xmpp-sip.smithmicro.com > <http://xmpp-sip.smithmicro.com>' > from='[email protected] > <mailto:[email protected]>' > id='smsiUA_372474835-534838778'><body>hi</body><error code='400' > type='modify'><bad-request > xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></message>] > > Could any one please help. > > > On Thu, Jun 18, 2009 at 2:43 PM, mani sivaraman > <[email protected] <mailto:[email protected]>> wrote: > > I have the full detailed debug console out of opensips, while > trying to add an xmpp buddy to my sip client connected to > opensips. Seems like I get the NOTIFY for the new xmpp buddy > added, but blank xml body. The message is not reaching the > openfire xmpp clinet. > > Could any one look at the output log and tell me what is missing ? > Thanks you very much > > > > On Thu, Jun 18, 2009 at 10:56 AM, mani sivaraman > <[email protected] <mailto:[email protected]>> wrote: > > I'm new to opensips. I'm trying to setup sip-xmpp gateway > using the "component" mode with a local ejabbered server. I > followed the opensips.cfg found in link > > http://www.opensips.org/Resources/PuaXmppConfig > > I have 3 domains defined for my opensips server. > > sips01.mydomain.com <http://sips01.mydomain.com> - primary > opensips dns/domain defined in my sql doamin table > sip-xmpp.mydoamin.com <http://sip-xmpp.mydoamin.com> - for > gateway sip domain > xmpp.mydomain.com <http://xmpp.mydomain.com> - for xmpp > server > xmpp-sip.mydomain.com <http://xmpp-sip.mydomain.com> - for > xmpp component of opensips > > I have configured the same according to the link. config above. > > I have all these 4 domain in /etc/hosts file. The first > primary domain is the only one on dns look up. > > I have ejabbered server listenening on port 5347, I also see > my opensips ESTABLISHED connetion to port 5347 of ejabbered. > > Testing: > ------------ > I logged into opensips with a sip/presence client and added an > xmpp buddy to the sip contact list with the following format. > The xmpp buddy is on an openfire server. > so the buddy added was like > > mani_openfire*openfire.mydomain.com > <http://openfire.mydomain.com>@sip-xmpp.mydomain.com > <http://sip-xmpp.mydomain.com> > > I see opensips sending SUBSCRIBE to mani_openfire and got > NOTIFY for the same. But there is no body in the NOTIFY. Says > subscription state = active. I do not see any communication to > the openfire server however, if I do a tcpdump. > > When I try to send a message to the openfire buddy, I get 200 > OK, but the MESSAGE never gets through to the openfire server > buddy. > > I'm attaching the opensips.cfg for ref. Could any one please > point out what I'm doing wrong. I do not seeing any error when > testing. Still MESSAGE is not working bet sip and xmpp. > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
