From wli.maillist at gmail.com Wed Feb 4 17:58:14 2009 From: wli.maillist at gmail.com (Wei Li) Date: Wed, 4 Feb 2009 15:58:14 -0800 Subject: [BOSH] BOSH Digest, Vol 8, Issue 5 In-Reply-To: References: Message-ID: <4182ba800902041558s540844f3o716f2808f2222bdf@mail.gmail.com> Hi Artur, Many thanks for your reply. So does it support the Script Syntax for BOSH (XEP-0252, http://xmpp.org/extensions/xep-0252.html)? I tried with xmpp4js (a javascript xmpp library), but no luck. Because of the same origin policy, I can't really use the xmlhttprequest to connet. Thanks, Wei Date: Fri, 30 Jan 2009 09:27:17 +0100 > From: Artur Hefczyc > Subject: Re: [BOSH] Is there any publicly available jabber server with > BOSH support? > To: Bidirectional Streams Over Synchronous HTTP > Message-ID: <192AC779-FB55-46BA-A9C0-209CE189CFC4 at tigase.org> > Content-Type: text/plain; charset=US-ASCII; format=flowed > > If you are looking for a server for tests have a look here: > http://xmpp-test.tigase.org/ > > Artur > > On 30 Jan 2009, at 08:44, Wei Li wrote: > > > Hi all, > > > > I'm wondering whether there is any publicly available jabber server > > supporting BOSH? > > > > Thanks, > > > > Wei > > Artur > -- > Artur Hefczyc > http://www.tigase.org/ > http://artur.hefczyc.net/ > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.jabber.org/pipermail/bosh/attachments/20090204/e5fc8427/attachment.htm From gnauck at ag-software.de Thu Feb 5 00:53:09 2009 From: gnauck at ag-software.de (Alexander Gnauck) Date: Thu, 05 Feb 2009 07:53:09 +0100 Subject: [BOSH] BOSH Digest, Vol 8, Issue 5 In-Reply-To: <4182ba800902041558s540844f3o716f2808f2222bdf@mail.gmail.com> References: <4182ba800902041558s540844f3o716f2808f2222bdf@mail.gmail.com> Message-ID: <57b919b92fd08cd8a8add09210d72ca5@localhost> > I tried with xmpp4js > (a javascript xmpp library), but no luck. Because of the same origin > policy, I can't really use the xmlhttprequest to connet. Because most browsers don't allow cross domain requests the domain of the Bosh Uri must be the same as the domain where your webpage was loaded from. There are many different ways to achieve this, the easiest one is probably proxying on the webserver if the domains are different. Best Regards, Alex From imoracle.3n8inb at no-mx.jabberforum.org Sat Feb 7 05:07:24 2009 From: imoracle.3n8inb at no-mx.jabberforum.org (imoracle) Date: Sat, 7 Feb 2009 12:07:24 +0100 Subject: [BOSH] New to BOSH implementation - Need some Help and Clarification Message-ID: Hi, I am relatively to bosh implementation. I am trying to include bosh support to my xmpp client library however I am facing problem in the initial few steps itself. I have a local ejabberd server installed with http-bind enabled. Opening http://localhost:5280/http-bind/ in the browser prints this on the screen: Code: -------------------- Ejabberd mod_http_bind v1.2 An implementation of XMPP over BOSH (XEP-0206) 0 sessions found. Sponsored by mabber. -------------------- Now for implementation I send a session initiating stream like this: SENDING >>>> Code: -------------------- -------------------- In reply I get this from the server: RECEIVE <<<< Code: -------------------- -------------------- Now as per http://xmpp.org/extensions/xep-0206.html : Code: -------------------- -If no element is included in the connection manager's session creation response, then the client SHOULD send empty request elements until it receives a response containing a element.- -------------------- Hence I am trying to send: SENDING >>>> Code: -------------------- -------------------- but I get no response. Am I sending a wrong stream the second time round? Can someone if possible paste a series of streams which are sent to and received from the bosh server? Thanks in advance, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1426 From steve at zeank.in-berlin.de Sat Feb 7 08:12:42 2009 From: steve at zeank.in-berlin.de (Stefan Strigler) Date: Sat, 7 Feb 2009 15:12:42 +0100 Subject: [BOSH] New to BOSH implementation - Need some Help and Clarification In-Reply-To: References: Message-ID: Hi, Am 07.02.2009 um 12:07 schrieb imoracle: > I have a local ejabberd server installed with http-bind enabled. > Opening http://localhost:5280/http-bind/ in the browser prints this on > the screen: > > Code: > -------------------- > > Ejabberd mod_http_bind v1.2 > An implementation of XMPP over BOSH (XEP-0206) > 0 sessions found. > Sponsored by mabber. > > -------------------- Seems you're using a quite outdated version of the http-bind module. Please consider an upgrade to the latest version of ejabberd which should contain various fixes for http-bind. Cheers, Steve From imoracle.3n8ykn at no-mx.jabberforum.org Sat Feb 7 10:51:19 2009 From: imoracle.3n8ykn at no-mx.jabberforum.org (imoracle) Date: Sat, 7 Feb 2009 17:51:19 +0100 Subject: [BOSH] New to BOSH implementation - Need some Help and Clarification References: Message-ID: Hi, I installed the latest version of ejabberd-2.0.3 and now I have a http-bind module of version "Ejabberd mod_http_bind v1.2" However even now I don't see the jabber server sending any attribute when I send in the initial session stream. The code sends >>>> Code: -------------------- -------------------- It receives <<<< Code: -------------------- -------------------- Also I tried sending empty stanza's like this: Code: -------------------- -------------------- but I get nothing from ejabberd server. Can someone kindly help me with the series of stanza or streams that needs to be exchanged? Regards, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1426 From steve at zeank.in-berlin.de Sat Feb 7 11:12:20 2009 From: steve at zeank.in-berlin.de (Stefan Strigler) Date: Sat, 7 Feb 2009 18:12:20 +0100 Subject: [BOSH] New to BOSH implementation - Need some Help and Clarification In-Reply-To: References: Message-ID: <69A8857F-FD23-4CDE-A619-CCD3688A28D8@zeank.in-berlin.de> Hi, Am 07.02.2009 um 17:51 schrieb imoracle: > However even now I don't see the jabber server sending any > attribute when I send in the initial session stream. :( That's a little bit strange, I've never seen this behaviour before. Does your server send stream headers for raw socket connects? > Also I tried sending empty stanza's like this: > > Code: > -------------------- > > > Empty body stanzas need to have a 'sid' attribute (the one you got from the server as the response to your first request) and a 'rid' attribute. In your example it would have to be: Please note: You shouldn't start with a rid of 1 for security reasons (see the XEP for a detailled explanation why). Cheers, Steve From imoracle.3n92jz at no-mx.jabberforum.org Sat Feb 7 12:17:20 2009 From: imoracle.3n92jz at no-mx.jabberforum.org (imoracle) Date: Sat, 7 Feb 2009 19:17:20 +0100 Subject: [BOSH] New to BOSH implementation - Need some Help and Clarification References: <69A8857F-FD23-4CDE-A619-CCD3688A28D8@zeank.in-berlin.de> Message-ID: Yeah strange and I don't know what to do :( Here are the logs which get generated by my code: Code: -------------------- 2009-02-07 18:15:05 Sending Body>> 2009-02-07 18:15:05 Received Body<< 2009-02-07 18:15:06 Sending Body>> -------------------- I am just hoping for some miracle :( Thanks, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1426 From gnauck at ag-software.de Sun Feb 8 06:57:18 2009 From: gnauck at ag-software.de (Alexander Gnauck) Date: Sun, 8 Feb 2009 13:57:18 +0100 Subject: [BOSH] New to BOSH implementation - Need some Help and Clarification In-Reply-To: References: <69A8857F-FD23-4CDE-A619-CCD3688A28D8@zeank.in-berlin.de> Message-ID: <000b01c989ec$c6a3cac0$53eb6040$@de> > Yeah strange and I don't know what to do :( Here are the logs which get > generated by my code: With how many http connections are you working? I had similar problems when using 2 connections and opened a 2nd connection to early. Alex From imoracle.3nakho at no-mx.jabberforum.org Sun Feb 8 07:42:22 2009 From: imoracle.3nakho at no-mx.jabberforum.org (imoracle) Date: Sun, 8 Feb 2009 14:42:22 +0100 Subject: [BOSH] New to BOSH implementation - Need some Help and Clarification References: <69A8857F-FD23-4CDE-A619-CCD3688A28D8@zeank.in-berlin.de> <000b01c989ec$c6a3cac0$53eb6040$@de> Message-ID: Hi, Currently I am building the very basic session initiating function for my library. These are the initial settings: Code: -------------------- /* Initialize variables to be sent initially while initiating connection */ $this->content = "text/xml; charset=utf-8"; $this->hold = 1; $this->wait = 300; $this->xmppVersion = 1.6; $this->secure = "true"; /* Initialize variables which will be send by server while initiating connection */ $this->inactivity = 30; $this->polling = 2; $this->requests = 2; -------------------- I am doing nothing great as of now but simply sending the initial stream to the ejabberd server: Code: -------------------- $body = ""; $body .= "connecthost."' "; $body .= "wait='".$this->wait."' rid='".$this->getRid()."' route='xmpp:".$this->connectserver.":".$this->connectport."' secure='$this->secure' "; $body .= "ver='".$this->xmppVersion."' xmlns:xmpp='urn:xmpp:xbosh' xmpp:version='".$this->xmppVersion."'/>"; $this->sendBody($body); -------------------- and then on receiving the response I look for node. If not found I simply send in this: Code: -------------------- $body = ""; $this->sendBody($body); -------------------- However I just don't see any response at all generating from the local ejabberd server. I tried installing openfire, but I am unable to identify the BOSH connection url for it. http://localhost:7070/http-bind , tried with this, but it returns back a 404 page. :( If anyone can help me out, I will be grateful :D Regards, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1426 From imoracle.3nalez at no-mx.jabberforum.org Sun Feb 8 08:02:42 2009 From: imoracle.3nalez at no-mx.jabberforum.org (imoracle) Date: Sun, 8 Feb 2009 15:02:42 +0100 Subject: [BOSH] New to BOSH implementation - Need some Help and Clarification References: <69A8857F-FD23-4CDE-A619-CCD3688A28D8@zeank.in-berlin.de> <000b01c989ec$c6a3cac0$53eb6040$@de> Message-ID: I observed the streams transfered on messenger.tigase.org site and I saw these streams being transfered to and fro: Code: -------------------- >>>> <<<< >>>> <<<< PLAINANONYMOUS -------------------- I see no difference in what I am doing and what they are doing except for a "ack" value which server returns in response to the initiating stream. Any help or pointers will be highly appreciated. *My Thoughts:* Why can't we have an xmpp driven forum for jabber ;) Regards, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1426 From imoracle.3nar2c at no-mx.jabberforum.org Sun Feb 8 10:04:58 2009 From: imoracle.3nar2c at no-mx.jabberforum.org (imoracle) Date: Sun, 8 Feb 2009 17:04:58 +0100 Subject: [BOSH] New to BOSH implementation - Need some Help and Clarification References: <69A8857F-FD23-4CDE-A619-CCD3688A28D8@zeank.in-berlin.de> <000b01c989ec$c6a3cac0$53eb6040$@de> Message-ID: I tried making a few modifications, like including newkey while initiating session and sending key further there after, however I had no success. Finally I reduced the amount of information I transfer during session creation request and here is what happens: Code: -------------------- 2009-02-08 15:57:47 Sending Body>> 2009-02-08 15:57:47 Received Body<< 2009-02-08 15:57:48 Sending Body>> 2009-02-08 15:58:18 Received Body<< -------------------- I end up getting an empty response from the server, which as per Example 5 in the document here http://xmpp.org/extensions/xep-0124.html means server has no stanza waiting or ready to be delivered. I am totally confused and foxed. I don't know where am I doing wrong. I am just at the basic step but nthing seems to work. :( -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1426 From stpeter at stpeter.im Tue Feb 10 03:55:43 2009 From: stpeter at stpeter.im (Peter Saint-Andre) Date: Tue, 10 Feb 2009 10:55:43 +0100 Subject: [BOSH] Brussels report Message-ID: <49914F1F.7070700@stpeter.im> At the XMPP Summit yesterday, we talked about a few items of interest to BOSH implementors: 1. Nathan Fritz raised the issue of session collisions, which they've seen at Seesmic. As far as I know, no conclusions were reached on this issue. Feel free to expland on this if you were part of the discussions. 2. Consensus that the current secure="true" flag on the BOSH element is useless. Jack Moffitt recommended removing this and adding a security consideration about what the BOSH connection manager should accept and not accept from the XMPP server. He and I will work on text. 3. In a hallway discussion at 2 AM one morning, Fabio Forno mentioned to me that the spec might explicitly say that a BOSH connection manager could support HTTP cookies as an optimization (support would be completely optional). I don't know if he brought this up during the meetings because I was roving around from group to group. 4. I mentioned that writing the BOSH section of the XMPP book had helped me grok BOSH in fullness, so I may adjust the spec to reflect that new understanding. What am I missing? /psa [ written en route from Brussels, delivery times may vary :) ] -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 6751 bytes Desc: S/MIME Cryptographic Signature Url : http://mail.jabber.org/pipermail/bosh/attachments/20090210/2351a2b2/attachment.bin From imoracle.3nfltz at no-mx.jabberforum.org Wed Feb 11 00:59:10 2009 From: imoracle.3nfltz at no-mx.jabberforum.org (imoracle) Date: Wed, 11 Feb 2009 07:59:10 +0100 Subject: [BOSH] New to BOSH implementation - Need some Help and Clarification References: <69A8857F-FD23-4CDE-A619-CCD3688A28D8@zeank.in-berlin.de> <000b01c989ec$c6a3cac0$53eb6040$@de> Message-ID: Any help on the issue ? Plzzz :( -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1426 From steve at zeank.in-berlin.de Wed Feb 11 02:07:56 2009 From: steve at zeank.in-berlin.de (Stefan Strigler) Date: Wed, 11 Feb 2009 09:07:56 +0100 Subject: [BOSH] New to BOSH implementation - Need some Help and Clarification In-Reply-To: References: <69A8857F-FD23-4CDE-A619-CCD3688A28D8@zeank.in-berlin.de> Message-ID: <844FF5E4-5236-4C4A-BD3A-6570AE448090@zeank.in-berlin.de> Hi again, sorry for not having a closer look right before, I guess I know what's your problem related too now. Am 07.02.2009 um 19:17 schrieb imoracle: > 2009-02-07 18:15:05 > Sending Body>> > to='localhost' wait='300' rid='27840' route='xmpp:localhost:5222' > secure='true' ver='1.6' xmlns:xmpp='urn:xmpp:xbosh' xmpp:version='1.6'/ > > > Here's an example from JSJaC: The relevant bit is that you have to set xmpp:version to '1.0' not '1.6'. 'ver' is the version of the BOSH protocol while xmpp:version denotes the version of the xmpp protocol to be used. Cheers, Steve From gnauck at ag-software.de Wed Feb 11 02:13:31 2009 From: gnauck at ag-software.de (Alexander Gnauck) Date: Wed, 11 Feb 2009 09:13:31 +0100 Subject: [BOSH] Brussels report Message-ID: > 2. Consensus that the current secure="true" flag on the BOSH > element is useless. Jack Moffitt recommended removing this and adding a > security consideration about what the BOSH connection manager should > accept and not accept from the XMPP server. He and I will work on text. I was at the Operators group while you discussed BOSH. Could somebody elaborate why the secure flag is useless? Is only the attribute useless or the complete key stuff we use for security now when we are not on https. Alex From winfried at tilanus.com Wed Feb 11 05:48:17 2009 From: winfried at tilanus.com (Winfried Tilanus) Date: Wed, 11 Feb 2009 12:48:17 +0100 Subject: [BOSH] Brussels report In-Reply-To: <49914F1F.7070700@stpeter.im> References: <49914F1F.7070700@stpeter.im> Message-ID: <4992BB01.7090607@tilanus.com> On 02/10/2009 10:55 AM, Peter Saint-Andre wrote: Hi! > 1. Nathan Fritz raised the issue of session collisions, which they've > seen at Seesmic. As far as I know, no conclusions were reached on this > issue. Feel free to expland on this if you were part of the discussions. If I remember correctly, the conclusion was to take it to this list to explore the problem further. My understanding of this problem is this: Most BOSH-pages behave like an application that logs on (with all the SASL stuff and more) when you open the page. On pages like these, a reload results in a new login, opening a new tab of the same page results in a second connection. But not at Seesmic, there they decided to store the state of BOSH in cookies. This to make it possible to visit another page and return to your old session. When a second tab is opened this results in two BOSH connections to the same session. This results in unpredictable behaviour of the session manager: pubsub pushes are distributed iteratively or randomly over the different tabs. As a workaround the tigase sessionmanager now closes the first read connection if a second one is opened at the same time (I hope I say this correctly). This workaround has a disadvantage: it looks like a good way to enable session-hijacking. An other possible solution that was discussed was giving each tab an own resource, but it was not clear if this was an option in Seesmics situation. More additions are welcome. > 3. In a hallway discussion at 2 AM one morning, Fabio Forno mentioned to > me that the spec might explicitly say that a BOSH connection manager > could support HTTP cookies as an optimization (support would be > completely optional). I don't know if he brought this up during the > meetings because I was roving around from group to group. This was not discussed during the meeting. > What am I missing? Another hallway discussion on off-beat times that was not discussed in the group, was on JSON over XMPP/BOSH. Does somebody feel the need to discuss it here? best wishes, Winfried -- http://www.tilanus.com xmpp:winfried at jabber.xs4all.nl tel. 015-3613996 / 06-23303960 fax. 015-3614406 From winfried at tilanus.com Wed Feb 11 05:59:19 2009 From: winfried at tilanus.com (Winfried Tilanus) Date: Wed, 11 Feb 2009 12:59:19 +0100 Subject: [BOSH] Brussels report In-Reply-To: References: Message-ID: <4992BD97.9020807@tilanus.com> On 02/11/2009 09:13 AM, Alexander Gnauck wrote: >> 2. Consensus that the current secure="true" flag on the BOSH >> element is useless. Jack Moffitt recommended removing this and adding a >> security consideration about what the BOSH connection manager should >> accept and not accept from the XMPP server. He and I will work on text. > > I was at the Operators group while you discussed BOSH. > Could somebody elaborate why the secure flag is useless? > Is only the attribute useless or the complete key stuff we use for security > now when we are not on https. Only the attribute is useless. To be short: when it is set to true, we rely fully on trusting the CM that the connection from the CM to the XMPP server indeed is secured. We have no way of verifying that. It is better not to put this trust in the CM and always assume an insecure channel. So the flag should better be set to false (or to "the CM is lying"). Winfried -- http://www.tilanus.com xmpp:winfried at jabber.xs4all.nl tel. 015-3613996 / 06-23303960 fax. 015-3614406 From dave at cridland.net Wed Feb 11 07:00:13 2009 From: dave at cridland.net (Dave Cridland) Date: Wed, 11 Feb 2009 13:00:13 +0000 Subject: [BOSH] Brussels report In-Reply-To: References: Message-ID: <23846.1234357213.086208@peirce.dave.cridland.net> On Wed Feb 11 08:13:31 2009, Alexander Gnauck wrote: > > 2. Consensus that the current secure="true" flag on the BOSH > > > element is useless. Jack Moffitt recommended removing this and > adding a > > security consideration about what the BOSH connection manager > should > > accept and not accept from the XMPP server. He and I will work on > text. > > I was at the Operators group while you discussed BOSH. > Could somebody elaborate why the secure flag is useless? > Is only the attribute useless or the complete key stuff we use for > security > now when we are not on https. Jack mentioned it in the main session, I think, too. Situation is that I can run up a BOSH server which is not server-specific, and then a BOSH client cannot verify what has been tested in terms of the BOSH C2S connection and what's been ignored - in particular, a BOSH client cannot authenticate the XMPP server via TLS, only the BOSH server. It's not that the attribute is useless, it's more that the attribute says very little, and implies a lot of trust, as I understood things. Personally, I think it's useful by its absence - the lack of the flag indicates that the BOSH server couldn't setup an authenticated TLS session, which is almost certainly a bad thing. The presence of it doesn't mean that it could, just that it's not actively complaining about it. Dave. -- Dave Cridland - mailto:dave at cridland.net - xmpp:dwd at dave.cridland.net - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/ - http://dave.cridland.net/ Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade From imoracle.3ng2wz at no-mx.jabberforum.org Wed Feb 11 07:08:21 2009 From: imoracle.3ng2wz at no-mx.jabberforum.org (imoracle) Date: Wed, 11 Feb 2009 14:08:21 +0100 Subject: [BOSH] New to BOSH implementation - Need some Help and Clarification References: <69A8857F-FD23-4CDE-A619-CCD3688A28D8@zeank.in-berlin.de> <844FF5E4-5236-4C4A-BD3A-6570AE448090@zeank.in-berlin.de> Message-ID: Man i just saw my first stream:features response Code: -------------------- DIGEST-MD5PLAIN -------------------- But I am really furious that I wasted such a long time for this stupid problem. Never cared to have a look at the versions while kept changing all other irrelevant stuff. Thanks again, So here I go, If I face another problem, will catch hold of you ;) Regards, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1426 From artur.hefczyc at tigase.org Wed Feb 11 07:43:20 2009 From: artur.hefczyc at tigase.org (Artur Hefczyc) Date: Wed, 11 Feb 2009 13:43:20 +0000 Subject: [BOSH] Brussels report In-Reply-To: <49914F1F.7070700@stpeter.im> References: <49914F1F.7070700@stpeter.im> Message-ID: Unfortunately I couldn't take part in the session as I was talking about a security at the time. However I have implemented a Tigase Bosh component and have also experienced a few problems which have been solved in one or another way. Let me elaborate on the session collision issue a bit to make it more clear as I think I am the only one who really tested it and know what exactly is going on. First of all in a standard Bosh use case when we precisely stick to the Bosh spec there is no session collision. The session collision is related to the issue with page-reload handling. Normally when the web page with JS client is reloaded the client has no way to remember anything and it starts fresh and tries to reconnect, re-login and other re... actions. This however causes several problems: 1. If there were chat windows open all the chat history is lost 2. On the busy installations each page reload causes have load on the server as the client reconnects, loads the roster, refreshes presence status and so on..... To workaround above problems the client stored SID and RID in cookies and on page reload it reads the cookie and tries to connect to the old Bosh session. The user roster, presence information and old chats content can be loaded using the Tigase Bosh cache extension described here: http://projects.tigase.org/server/trac/wiki/BoshSessionCache The new problems of course appears on the opening a second/third tab/window in the browser. In each new tab/window the JS client "thinks" it was a page reload and tries to connect to the old session. The Bosh server receives a new connection from the client and tries to close other waiting connection. Then the client on the OLD tab opens new connection and the Bosh server closes connection for the NEW tab. This causes problem on the client side that you never know in which TAB the new messages end-up. But there is even bigger problem on the server side because the it causes high load by the Bosh server continuously closing opening Bosh connection. (Assuming we don't use keep-alive). The problem therefore must be solved on the server side and I think this is the only place where it can be resolved. This is because it is actually possible to detect session conflict on the Bosh server side. Both JS clients fighting with each other for an access to the Bosh session have own RID counters therefore every new Bosh request from one client is repeated with the same RID by the other client. It is possible to detect this on the server side and terminate one of the clients. This is what Tigase tries to do and this also works quite well. Artur So far so good, it works quite well in most cases. On 10 Feb 2009, at 09:55, Peter Saint-Andre wrote: > At the XMPP Summit yesterday, we talked about a few items of > interest to > BOSH implementors: > > 1. Nathan Fritz raised the issue of session collisions, which they've > seen at Seesmic. As far as I know, no conclusions were reached on this > issue. Feel free to expland on this if you were part of the > discussions. > > 2. Consensus that the current secure="true" flag on the BOSH > element is useless. Jack Moffitt recommended removing this and > adding a > security consideration about what the BOSH connection manager should > accept and not accept from the XMPP server. He and I will work on > text. > > 3. In a hallway discussion at 2 AM one morning, Fabio Forno > mentioned to > me that the spec might explicitly say that a BOSH connection manager > could support HTTP cookies as an optimization (support would be > completely optional). I don't know if he brought this up during the > meetings because I was roving around from group to group. > > 4. I mentioned that writing the BOSH section of the XMPP book had > helped > me grok BOSH in fullness, so I may adjust the spec to reflect that new > understanding. > > What am I missing? > > /psa > > [ written en route from Brussels, delivery times may vary :) ] > Artur -- Artur Hefczyc http://www.tigase.org/ http://artur.hefczyc.net/ From imoracle.3ng5bo at no-mx.jabberforum.org Wed Feb 11 08:00:54 2009 From: imoracle.3ng5bo at no-mx.jabberforum.org (imoracle) Date: Wed, 11 Feb 2009 15:00:54 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server Message-ID: Hi, I have just been able to get my first bosh implementation working. It seems to be going fine as far as talking to the local ejabberd server is concerned. However I will be more interested in talking to gtalk, yahoo, msn servers. I know there is something called transports which I need to apply but I really don't know much about them. Can someone give me a head start on atleast how can I get my library talking to the google servers? Regards, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1446 From winfried at tilanus.com Wed Feb 11 09:17:07 2009 From: winfried at tilanus.com (Winfried Tilanus) Date: Wed, 11 Feb 2009 16:17:07 +0100 Subject: [BOSH] Brussels report In-Reply-To: References: <49914F1F.7070700@stpeter.im> Message-ID: <4992EBF3.605@tilanus.com> On 02/11/2009 Artur Hefczyc wrote: Hi, > The problem therefore must be solved on the server side and I think > this is the only place where it can be resolved. I can come up with a scenario where this is solved client-side: - the client stores a cookie that indicates if a session is active - when starting a new session it should be set to 'true' - when unloading the page (unload event) the cookie is set to 'false' - at session start, the scripts should detect if the cookie is set to true. If so, a new session with another resource must be started. Otherwise the old session can be continued. Still, from an abuse point of view, such a facility in the server might be useful (see below). > This is because it is actually possible to detect session conflict on the > Bosh server side. > Both JS clients fighting with each other for an access to the Bosh session > have own RID counters therefore every new Bosh request from one client > is repeated with the same RID by the other client. > > It is possible to detect this on the server side and terminate one of the > clients. This is what Tigase tries to do and this also works quite > well. I suppose you terminate the newest client, not the oldest? In the old (non-BOSH) version of HelpIM I had some similar problems. In that client I stored a session id in the URL. Sending the URL to somebody else by e.g. IM (sic) results in two bouncing sessions on two different locations. I have seen this kind of abuse several times. Replicating the cookies to another browser is a bit harder then replicating an URL, but still doable. Terminating the second (new) client might prevent this. greetings, Winfried -- http://www.tilanus.com xmpp:winfried at jabber.xs4all.nl tel. 015-3613996 / 06-23303960 fax. 015-3614406 From artur.hefczyc at tigase.org Wed Feb 11 11:45:38 2009 From: artur.hefczyc at tigase.org (Artur Hefczyc) Date: Wed, 11 Feb 2009 17:45:38 +0000 Subject: [BOSH] Brussels report In-Reply-To: <4992EBF3.605@tilanus.com> References: <49914F1F.7070700@stpeter.im> <4992EBF3.605@tilanus.com> Message-ID: <9681A3CA-1989-4755-9E70-C930E294D88B@tigase.org> Hi, >> The problem therefore must be solved on the server side and I think >> this is the only place where it can be resolved. > > I can come up with a scenario where this is solved client-side: I know that this can be solved on the client side too. However since I can not be sure if all web clients can work this out I need a mechanism to detect this on the server side too. > - the client stores a cookie that indicates if a session is active > - when starting a new session it should be set to 'true' > - when unloading the page (unload event) the cookie is set to 'false' > - at session start, the scripts should detect if the cookie is set to > true. If so, a new session with another resource must be started. > Otherwise the old session can be continued. Yes, I think this is a good idea. It also opens opportunities to a few more nice features on the client side..... > Still, from an abuse point of view, such a facility in the server > might > be useful (see below). Indeed. > I suppose you terminate the newest client, not the oldest? In the old I terminate the oldest client because a normal use-case scenario is that the user opens a new tab or window and still wants to be able to use the client. Terminating the newest client would make it impossible. > (non-BOSH) version of HelpIM I had some similar problems. In that > client > I stored a session id in the URL. Sending the URL to somebody else by > e.g. IM (sic) results in two bouncing sessions on two different > locations. I have seen this kind of abuse several times. Replicating > the > cookies to another browser is a bit harder then replicating an URL, > but > still doable. Terminating the second (new) client might prevent this. Hm, this is a problem indeed, but I believe that this actually is a client side problem to solve. Artur -- Artur Hefczyc http://www.tigase.org/ http://artur.hefczyc.net/ From zhancaibao at gmail.com Wed Feb 11 19:51:08 2009 From: zhancaibao at gmail.com (Zhan Caibao) Date: Thu, 12 Feb 2009 09:51:08 +0800 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server In-Reply-To: References: Message-ID: <80f809f10902111751q2dc178fdg1082e0922f0e9c32@mail.gmail.com> Talking to gtalk is s2s issue and using transport to yahoo or msn.s2s is a server-side subject. You should support register and login transport for talk to yahoo or msn in you library. 2009/2/11 imoracle > > Hi, > > I have just been able to get my first bosh implementation working. It > seems to be going fine as far as talking to the local ejabberd server is > concerned. However I will be more interested in talking to gtalk, yahoo, > msn servers. > > I know there is something called transports which I need to apply but I > really don't know much about them. Can someone give me a head start on > atleast how can I get my library talking to the google servers? > > Regards, > Abhinav > > > -- > imoracle > > ------------------------------------ > JAXL - Jabber XMPP Library in PHP > http://code.google.com/p/jaxl > ------------------------------------ > ------------------------------------------------------------------------ > imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 > View this thread: http://www.jabberforum.org/showthread.php?t=1446 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.jabber.org/pipermail/bosh/attachments/20090212/ef5232d5/attachment.htm From imoracle.3nhc5b at no-mx.jabberforum.org Wed Feb 11 23:25:22 2009 From: imoracle.3nhc5b at no-mx.jabberforum.org (imoracle) Date: Thu, 12 Feb 2009 06:25:22 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server References: <80f809f10902111751q2dc178fdg1082e0922f0e9c32@mail.gmail.com> Message-ID: Hi, Yeah I am aware that I will need to support login and register transport, but I don't know how can I configure my EJabberd server to do the necessary talking with the gtalk, yahoo and msn servers. What are the packages I need to install, what are the configuration settings I need to change? These are a few questions I am confused over. Regards, Abhinav Zhan Caibao;6533 Wrote: > Talking to gtalk is s2s issue and using transport to yahoo or msn.s2s is > a > server-side subject. > You should support register and login transport for talk to yahoo or > msn in > you library. > > 2009/2/11 imoracle > > > > > Hi, > > > > I have just been able to get my first bosh implementation working. > It > > seems to be going fine as far as talking to the local ejabberd server > is > > concerned. However I will be more interested in talking to gtalk, > yahoo, > > msn servers. > > > > I know there is something called transports which I need to apply but > I > > really don't know much about them. Can someone give me a head start > on > > atleast how can I get my library talking to the google servers? > > > > Regards, > > Abhinav > > > > > > -- > > imoracle > > > > ------------------------------------ > > JAXL - Jabber XMPP Library in PHP > > http://code.google.com/p/jaxl > > ------------------------------------ > > > ------------------------------------------------------------------------ > > imoracle's Profile: > http://www.jabberforum.org/member.php?userid=17412 > > View this thread: http://www.jabberforum.org/showthread.php?t=1446 > > > > -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1446 From gnauck at ag-software.de Thu Feb 12 01:09:46 2009 From: gnauck at ag-software.de (Alexander Gnauck) Date: Thu, 12 Feb 2009 08:09:46 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server In-Reply-To: References: <80f809f10902111751q2dc178fdg1082e0922f0e9c32@mail.gmail.com> Message-ID: > Hi, Yeah I am aware that I will need to support login and register > transport, but I don't know how can I configure my EJabberd server to do > the necessary talking with the gtalk, yahoo and msn servers. > What are the packages I need to install, what are the configuration > settings I need to change? These are a few questions I am confused > over. you have to install additional software and configure it with your ejabberd server. But this is off topic on this mailing list. You should try another mailing list to discuss this problems. Alex -- Alexander Gnauck http://www.ag-software.de xmpp:gnauck at jabber.org From winfried at tilanus.com Thu Feb 12 04:28:09 2009 From: winfried at tilanus.com (Winfried Tilanus) Date: Thu, 12 Feb 2009 11:28:09 +0100 Subject: [BOSH] Brussels report In-Reply-To: <9681A3CA-1989-4755-9E70-C930E294D88B@tigase.org> References: <49914F1F.7070700@stpeter.im> <4992EBF3.605@tilanus.com> <9681A3CA-1989-4755-9E70-C930E294D88B@tigase.org> Message-ID: <4993F9B9.9000007@tilanus.com> On 02/11/2009 Artur Hefczyc wrote: Hi, > > I suppose you terminate the newest client, not the oldest? In the old > > I terminate the oldest client because a normal use-case scenario > is that the user opens a new tab or window and still wants to be able > to use the client. Terminating the newest client would make it impossible. In a normal use-case scenario, we have BOSH-clients we have written ourselves. So we can add the logic to handle opening a new tab the way we like. So I think it is best to handle this case client side. > > (non-BOSH) version of HelpIM I had some similar problems. In that client > > I stored a session id in the URL. Sending the URL to somebody else by > > e.g. IM (sic) results in two bouncing sessions on two different > > locations. I have seen this kind of abuse several times. Replicating the > > cookies to another browser is a bit harder then replicating an URL, but > > still doable. Terminating the second (new) client might prevent this. > > Hm, this is a problem indeed, but I believe that this actually is a client side > problem to solve. When we are talking about an abusive client here, so we can't rely on the client to avoid collisions / bouncing / hijacking. With some kind of script debugger it is usually easy to modify the behaviour of your scripts. So I believe this is the case we should handle server-side. greetings, Winfried -- http://www.tilanus.com xmpp:winfried at jabber.xs4all.nl tel. 015-3613996 / 06-23303960 fax. 015-3614406 From imoracle.3nhyez at no-mx.jabberforum.org Thu Feb 12 07:27:06 2009 From: imoracle.3nhyez at no-mx.jabberforum.org (imoracle) Date: Thu, 12 Feb 2009 14:27:06 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server References: <80f809f10902111751q2dc178fdg1082e0922f0e9c32@mail.gmail.com> Message-ID: Hi, I would like to know the additional plugins and softwares i need to install. Also, I am really not sure which mailing list will have a solution to this. I don't see any appropriate list by name..... Can one of the admins move this to an appropriate list. Thanks. Abhi -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1446 From zhancaibao at gmail.com Thu Feb 12 09:09:30 2009 From: zhancaibao at gmail.com (Zhan Caibao) Date: Thu, 12 Feb 2009 23:09:30 +0800 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server In-Reply-To: References: <80f809f10902111751q2dc178fdg1082e0922f0e9c32@mail.gmail.com> Message-ID: <80f809f10902120709l66f5af50yffdaa04630b1e80a@mail.gmail.com> Please take a look at ejabberd's document and it describes how to install msn transport and others. 2009/2/12 imoracle > > Hi, > > I would like to know the additional plugins and softwares i need to > install. > > Also, I am really not sure which mailing list will have a solution to > this. I don't see any appropriate list by name..... > > Can one of the admins move this to an appropriate list. Thanks. Abhi > > > -- > imoracle > > ------------------------------------ > JAXL - Jabber XMPP Library in PHP > http://code.google.com/p/jaxl > ------------------------------------ > ------------------------------------------------------------------------ > imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 > View this thread: http://www.jabberforum.org/showthread.php?t=1446 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.jabber.org/pipermail/bosh/attachments/20090212/a0666fa4/attachment.htm From imoracle.3nk81i at no-mx.jabberforum.org Fri Feb 13 12:50:28 2009 From: imoracle.3nk81i at no-mx.jabberforum.org (imoracle) Date: Fri, 13 Feb 2009 19:50:28 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server References: <80f809f10902111751q2dc178fdg1082e0922f0e9c32@mail.gmail.com> <80f809f10902120709l66f5af50yffdaa04630b1e80a@mail.gmail.com> Message-ID: I am particularly interested in connected to gtalk servers only. And on ejabberd server I can see no documentation for configuring gtalk servers. Can someone give me some insight on this? Thanks, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1446 From collin at collingrady.com Fri Feb 13 13:13:56 2009 From: collin at collingrady.com (Collin Grady) Date: Fri, 13 Feb 2009 11:13:56 -0800 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server In-Reply-To: References: <80f809f10902111751q2dc178fdg1082e0922f0e9c32@mail.gmail.com> <80f809f10902120709l66f5af50yffdaa04630b1e80a@mail.gmail.com> Message-ID: Stop looking for it as a specific service - you need only enable s2s, since gtalk uses jabber. On Fri, Feb 13, 2009 at 10:50 AM, imoracle wrote: > > I am particularly interested in connected to gtalk servers only. And on > ejabberd server I can see no documentation for configuring gtalk > servers. > > Can someone give me some insight on this? > > Thanks, > Abhinav > > > -- > imoracle > > ------------------------------------ > JAXL - Jabber XMPP Library in PHP > http://code.google.com/p/jaxl > ------------------------------------ > ------------------------------------------------------------------------ > imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 > View this thread: http://www.jabberforum.org/showthread.php?t=1446 > > -- Collin Grady From imoracle.3nkbk0 at no-mx.jabberforum.org Fri Feb 13 14:05:33 2009 From: imoracle.3nkbk0 at no-mx.jabberforum.org (imoracle) Date: Fri, 13 Feb 2009 21:05:33 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server References: <80f809f10902111751q2dc178fdg1082e0922f0e9c32@mail.gmail.com><80f809f10902120709l66f5af50yffdaa04630b1e80a@mail.gmail.com> Message-ID: Hi, I made the above config changes i.e. Code: -------------------- {s2s_use_starttls, true}. {s2s_certfile, "C:\\Program Files\\ejabberd-2.0.3\\conf\\server.pem"}. {s2s_default_policy, allow}. {{s2s_host, "gmail.com"}, allow}. -------------------- Then I opened up the C:\Program Files\ejabberd-2.0.3\conf\inetrc and it now looks like this: Code: -------------------- {nameserver, {208,67,222,222}}. {nameserver, {208,67,220,220}}. {registry, win32}. -------------------- And finally I opened the C:\WINDOWS\system32\drivers\etc\hosts and it looks like this: Code: -------------------- 127.0.0.1 localhost 127.0.0.1 localhost.localdomain 66.249.91.83 gmail.com -------------------- Now when I try to connect to gmail servers using bosh client library, I see following streams being transfered: Code: -------------------- 2009-02-13 19:58:41 Sending Body>> 2009-02-13 19:58:41 Received Body<< -------------------- And the ejabberd log file show the following, which suggest it gets an unknown-host error: Code: -------------------- =INFO REPORT==== 2009-02-14 01:28:41 === I(<0.268.0>:ejabberd_listener:116) : (#Port<0.403>) Accepted connection {{127,0,0,1},51098} -> {{127,0,0,1},5280} =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.261.0>:ejabberd_http:121) : S: [{["admin"],ejabberd_web_admin}, {["http-bind"],mod_http_bind}, {["http-poll"],ejabberd_http_poll}] =INFO REPORT==== 2009-02-14 01:28:41 === I(<0.261.0>:ejabberd_http:123) : started: {gen_tcp,#Port<0.403>} =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.349.0>:ejabberd_http:224) : (#Port<0.403>) http query: 'POST' /http-bind =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.349.0>:ejabberd_http:338) : client data: "" =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.349.0>:ejabberd_http:263) : ["http-bind"] matches ["http-bind"] =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.349.0>:mod_http_bind:47) : Incoming data: =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.349.0>:ejabberd_http_bind:1007) : --- incoming data --- --- END --- =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.351.0>:ejabberd_http_bind:220) : started: {"a11ab7a65c446e7fcde634a63af818212d49515a", [], {{127,0,0,1},51098}} =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.349.0>:ejabberd_http_bind:138) : got pid: <0.351.0> =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.349.0>:ejabberd_http_bind:752) : http-put =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.351.0>:ejabberd_http_bind:638) : -- SaveKey: 495cf36f55dc030209e79164a69f297a5c7ccd10 =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.351.0>:ejabberd_http_bind:699) : really sending now: =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.352.0>:ejabberd_receiver:306) : Received XML on stream = "" =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.353.0>:ejabberd_c2s:1346) : Send XML on stream = "" =INFO REPORT==== 2009-02-14 01:28:41 === D(<0.351.0>:ejabberd_http_bind:544) : terminate: deleting session a11ab7a65c446e7fcde634a63af818212d49515a -------------------- I am still quite new to bosh, and have little idea of what can i do next. If someone can please help me achieve this, I will be more than happy :D Thanks in advance, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1446 From gnauck at ag-software.de Fri Feb 13 14:15:52 2009 From: gnauck at ag-software.de (Alexander Gnauck) Date: Fri, 13 Feb 2009 21:15:52 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server In-Reply-To: References: <80f809f10902111751q2dc178fdg1082e0922f0e9c32@mail.gmail.com><80f809f10902120709l66f5af50yffdaa04630b1e80a@mail.gmail.com> Message-ID: <4995D4F8.5080505@ag-software.de> imoracle schrieb: > I am still quite new to bosh, and have little idea of what can i do > next. If someone can please help me achieve this, I will be more than > happy :D I don't think the ejabberd's BOSH component allows routing to other servers. Please correct me if I'm wrong. Take a look at punjab, I think this is what you are looking for. Regards, Alex -- Alexander Gnauck http://www.ag-software.de xmpp:gnauck at jabber.org From imoracle.3nkdgb at no-mx.jabberforum.org Fri Feb 13 14:46:22 2009 From: imoracle.3nkdgb at no-mx.jabberforum.org (imoracle) Date: Fri, 13 Feb 2009 21:46:22 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server References: <80f809f10902111751q2dc178fdg1082e0922f0e9c32@mail.gmail.com><80f809f10902120709l66f5af50yffdaa04630b1e80a@mail.gmail.com> <4995D4F8.5080505@ag-software.de> Message-ID: Oh is it....I was under the impression that sites like jwchat.org and messenger.tigase.org are all using ejabberd in the backend to connect me to gmail servers. I will surely take a look at punjab, have only heard abt it yet. But can someone with experience in bosh throw some light on this one? Thanks, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1446 From mwild1 at gmail.com Fri Feb 13 15:56:54 2009 From: mwild1 at gmail.com (Matthew Wild) Date: Fri, 13 Feb 2009 21:56:54 +0000 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server In-Reply-To: References: <80f809f10902120709l66f5af50yffdaa04630b1e80a@mail.gmail.com> <4995D4F8.5080505@ag-software.de> Message-ID: <4db9cacb0902131356m69d828c0k1761067ffc0852f9@mail.gmail.com> On Fri, Feb 13, 2009 at 8:46 PM, imoracle wrote: > > Oh is it....I was under the impression that sites like jwchat.org and > messenger.tigase.org are all using ejabberd in the backend to connect me > to gmail servers. > > I will surely take a look at punjab, have only heard abt it yet. But > can someone with experience in bosh throw some light on this one? > What Alex said is correct, you can only connect to your ejabberd instance using ejabberd's BOSH module. If you want to log into other servers then take a look at one of the standalone CMs: http://xmpp.org/tech/bosh.shtml#impl-cm If any site allows you to log into a server other than their own, they are most likely using one of the above. Matthew. From imoracle.3nl30b at no-mx.jabberforum.org Fri Feb 13 23:58:47 2009 From: imoracle.3nl30b at no-mx.jabberforum.org (imoracle) Date: Sat, 14 Feb 2009 06:58:47 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server References: <80f809f10902120709l66f5af50yffdaa04630b1e80a@mail.gmail.com><4995D4F8.5080505@ag-software.de> <4db9cacb0902131356m69d828c0k1761067ffc0852f9@mail.gmail.com> Message-ID: Strange enough, I thought when I open the following url on my browser: http://localhost:5280/http-bind/, I can see the following being echoed on the browser. EJABBERD MOD_HTTP_BIND V1.2 AN IMPLEMENTATION OF XMPP OVER BOSH (XEP-0206) And I guess this is enough for my code to connect to gtalk servers using locally installed ejabberd. I went through the link you gave: http://xmpp.org/tech/bosh.shtml#impl-cm and I guess all of them listed there do the same stuff which is being done by mod_http_bind of ejabberd. Correct me if I am wrong, meanwhile I am having a look at the listed connection managers. Thanks and Regards, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1446 From gnauck at ag-software.de Sat Feb 14 05:31:27 2009 From: gnauck at ag-software.de (Alexander Gnauck) Date: Sat, 14 Feb 2009 12:31:27 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server In-Reply-To: References: <80f809f10902120709l66f5af50yffdaa04630b1e80a@mail.gmail.com><4995D4F8.5080505@ag-software.de> <4db9cacb0902131356m69d828c0k1761067ffc0852f9@mail.gmail.com> Message-ID: <4996AB8F.4040008@ag-software.de> imoracle schrieb: > Strange enough, I thought when I open the following url on my browser: > http://localhost:5280/http-bind/, I can see the following being echoed > on the browser. > > EJABBERD MOD_HTTP_BIND V1.2 > AN IMPLEMENTATION OF XMPP OVER BOSH (XEP-0206) > > And I guess this is enough for my code to connect to gtalk servers > using locally installed ejabberd. no its not, ejabberd does not support the route. The idea ofthe ejaberd BOSH component is to allow you to connect only to the domains this ejabberd server is hosting. > I went through the link you gave: > http://xmpp.org/tech/bosh.shtml#impl-cm > > and I guess all of them listed there do the same stuff which is being > done by mod_http_bind of ejabberd. Correct me if I am wrong, meanwhile I > am having a look at the listed connection managers. you are wrong, this are stand alone connection managers which support routing. And this is what you are looking for. For your use case you need no xmpp server, you only need a stand alone connection manager which supports the route attribute. Regards, Alex -- Alexander Gnauck http://www.ag-software.de xmpp:gnauck at jabber.org From imoracle.3o0qcb at no-mx.jabberforum.org Sun Feb 22 10:46:33 2009 From: imoracle.3o0qcb at no-mx.jabberforum.org (imoracle) Date: Sun, 22 Feb 2009 17:46:33 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server References: <80f809f10902120709l66f5af50yffdaa04630b1e80a@mail.gmail.com><4995D4F8.5080505@ag-software.de> <4db9cacb0902131356m69d828c0k1761067ffc0852f9@mail.gmail.com> <4996AB8F.4040008@ag-software.de> Message-ID: I am trying my library with Punjab and the likes so that I can connect to gtalk and yahoo servers using that, but however I wonder why do we have ejabberd documentation pages like this: http://www.ejabberd.im/yahoo-transport-2 http://www.ejabberd.im/google-talk Doesn't these documentations mean tht if configured properly, ejabberd can help you in talking to other servers too i.e. s2s connections. Regards, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1446 From mwild1 at gmail.com Sun Feb 22 11:30:29 2009 From: mwild1 at gmail.com (Matthew Wild) Date: Sun, 22 Feb 2009 17:30:29 +0000 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server In-Reply-To: References: <4995D4F8.5080505@ag-software.de> <4db9cacb0902131356m69d828c0k1761067ffc0852f9@mail.gmail.com> <4996AB8F.4040008@ag-software.de> Message-ID: <4db9cacb0902220930y4fb03b04qc2a1883f262eb11c@mail.gmail.com> On Sun, Feb 22, 2009 at 4:46 PM, imoracle wrote: > > I am trying my library with Punjab and the likes so that I can connect > to gtalk and yahoo servers using that, but however I wonder why do we > have ejabberd documentation pages like this: > > http://www.ejabberd.im/yahoo-transport-2 > http://www.ejabberd.im/google-talk > > Doesn't these documentations mean tht if configured properly, ejabberd > can help you in talking to other servers too i.e. s2s connections. > There's a difference between *connecting* to a remote server, and *logging into* a remote server. You indicated that you wanted to log into remote servers. If you only want to send messages from local users using BOSH to remote users on other servers, ejabberd's mod_bosh is fine. If you want to allow your BOSH users to *log into* their own accounts other servers, you need to use punjab, or another connection manager (ejabberd is of no use if you aren't using it for logging into). Hope this helps, Matthew. From imoracle.3o2acz at no-mx.jabberforum.org Mon Feb 23 06:56:53 2009 From: imoracle.3o2acz at no-mx.jabberforum.org (imoracle) Date: Mon, 23 Feb 2009 13:56:53 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server References: <4995D4F8.5080505@ag-software.de><4db9cacb0902131356m69d828c0k1761067ffc0852f9@mail.gmail.com><4996AB8F.4040008@ag-software.de> <4db9cacb0902220930y4fb03b04qc2a1883f262eb11c@mail.gmail.com> Message-ID: Hi, Thanks for your guidance. From your post, I understand this: 1. Ejabberd can help me send messages to other server users (e.g. google talk), while I will be logged in as local user e.g. abhinav at localhost 2. However if i want to connect (log) into the messenger, using my gmail credentials and want to send messages as gmail user, then I need something like Punjab. Correct me if I am wrong, Thanks and Regards, Abhinav -- imoracle ------------------------------------ JAXL - Jabber XMPP Library in PHP http://code.google.com/p/jaxl ------------------------------------ ------------------------------------------------------------------------ imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412 View this thread: http://www.jabberforum.org/showthread.php?t=1446 From gnauck at ag-software.de Mon Feb 23 07:14:38 2009 From: gnauck at ag-software.de (Alexander Gnauck) Date: Mon, 23 Feb 2009 14:14:38 +0100 Subject: [BOSH] How to talk to Gtalk servers using BOSH - EJabberd Server In-Reply-To: References: <4995D4F8.5080505@ag-software.de> <4db9cacb0902131356m69d828c0k1761067ffc0852f9@mail.gmail.com> <4996AB8F.4040008@ag-software.de> <4db9cacb0902220930y4fb03b04qc2a1883f262eb11c@mail.gmail.com> Message-ID: > 1. Ejabberd can help me send messages to other server users (e.g. > google talk), while I will be logged in as local user e.g. > abhinav at localhost > 2. However if i want to connect (log) into the messenger, using my > gmail credentials and want to send messages as gmail user, then I need > something like Punjab. > > Correct me if I am wrong, correct Alex -- Alexander Gnauck http://www.ag-software.de xmpp:gnauck at jabber.org From jason at kuam.com Thu Feb 26 05:55:59 2009 From: jason at kuam.com (Jason Salas) Date: Thu, 26 Feb 2009 06:55:59 -0500 Subject: [BOSH] Framework-agnostic hooks for XMPP components Message-ID: <3e37ca1e$1b449486$74998a68$@com> I've been thinking about something: how can custom business objects in shared assemblies/libraries/components/etc. within the context of a multiplatform application, wherein XMPP is used, be preserved? In other words, if an app uses .NET or J2EE or Python, a truly componentized hierarchy should be available so a component can leverage messaging/presence data and not be bound over HTTP, XMPP, TCP. It's worth taking a serious look at making sure we make a consistent set of outlets for any web framework or one-off project to hook into as a means of marshaling data over common logical tiers and over desktop, mobile, web, e-mail, RIA, SMS, XMPP. Thoughts? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.jabber.org/pipermail/bosh/attachments/20090226/28f89b6d/attachment.htm