Re: not able to integrate facebook book XMPP chat using punjab

115 views
Skip to first unread message
Message has been deleted

Christopher Zorn

unread,
Feb 12, 2012, 1:02:06 PM2/12/12
to punja...@googlegroups.com
This looks like you failed to connect to the remote host. I do not see the initial bosh session initiation, the host may be incorrect.

On Tue, Feb 7, 2012 at 10:27 AM, ntimesc <nti...@gmail.com> wrote:
When i am trying to integrate facebook with my own configured punjab
on http://notiontrix.com:5280/xmpp-http-bind
but i am getting following error , i am using strophe to connect with
the facebook XMPP chat client using following code

   var conn = new Strophe.Connection(
       'http://notiontrix.com:5280/xmpp-http-bind');
i want to configer my BOSH service exactly same as jack moffitt did on
http://bosh.metajack.im:5280/xmpp-httpbind
as this is working nicely on facebook xmpp chat integration

please help someone over this



2012-02-07 23:35:25+0530 [-]

       RETURN HTTPB 1328637925.88:
2012-02-07 23:35:25+0530 [-] <body xmlns='http://jabber.org/protocol/
httpbind' inactivity='60' secure='true' authid='5F4F5440'
content='text/xml; charset=utf-8' window='3' polling='15'
sid='77f771a7f1cb1e6acbfd7d7039e333c38fdf7e89' requests='2' wait='300'/
>
2012-02-07 23:35:25+0530 [-] 123.237.106.74 - - [07/Feb/2012:18:05:25
+0000] "POST /xmpp-http-bind HTTP/1.1" 200 228 "http://
www.notiontrix.com/xmpp/communicator.html" "Mozilla/5.0 (Windows NT
5.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/
535.7"
2012-02-07 23:35:57+0530 [-] SID:
77f771a7f1cb1e6acbfd7d7039e333c38fdf7e89 => SEND: ' '
2012-02-07 23:35:57+0530 [XmlStream,client] connect ERROR: [Failure
instance: Traceback (failure with no frames): <class
'twisted.internet.error.ConnectionDone'>: Connection was closed
cleanly.
       ]
2012-02-07 23:35:57+0530 [XmlStream,client] Stopping factory
<punjab.session.Session object at 0x8dc306c>
2012-02-07 23:36:06+0530 [-] SID:
726c2911a32d4fa5fd5ca201d51165ec9fe4562b => SEND: ' '
2012-02-07 23:36:06+0530 [-] SESSION -> Terminate
2012-02-07 23:36:06+0530 [-] expire
(726c2911a32d4fa5fd5ca201d51165ec9fe4562b)
2012-02-07 23:36:06+0530 [-] 1
2012-02-07 23:36:06+0530 [-] SID:
726c2911a32d4fa5fd5ca201d51165ec9fe4562b => SEND: '</stream:stream>'
2012-02-07 23:36:06+0530 [XmlStream,client] connect ERROR: [Failure
instance: Traceback (failure with no frames): <class
'twisted.internet.error.ConnectionDone'>: Connection was closed
cleanly.
       ]
2012-02-07 23:36:06+0530 [XmlStream,client] Stopping factory
<punjab.session.Session object at 0x8db660c>
2012-02-07 23:36:42+0530 [HTTPChannel,4,50.23.217.200] 50.23.217.200 -
- [07/Feb/2012:18:06:42 +0000] "GET /xmpp-http-bind HTTP/1.1" 200 170
"-" "-"
2012-02-07 23:36:57+0530 [-] SID:
77f771a7f1cb1e6acbfd7d7039e333c38fdf7e89 => SEND: ' '
2012-02-07 23:36:57+0530 [-] SESSION -> Terminate
2012-02-07 23:36:57+0530 [-] expire
(77f771a7f1cb1e6acbfd7d7039e333c38fdf7e89)
2012-02-07 23:36:57+0530 [-] 0
2012-02-07 23:36:57+0530 [-] SID:
77f771a7f1cb1e6acbfd7d7039e333c38fdf7e89 => SEND: '</stream:stream>'
2012-02-07 23:41:43+0530 [HTTPChannel,6,50.23.217.200] 50.23.217.200 -
- [07/Feb/2012:18:11:42 +0000] "GET /xmpp-http-bind HTTP/1.1" 200 170
"-" "-"
2012-02-07 23:46:44+0530 [HTTPChannel,10,50.23.217.200] 50.23.217.200
- - [07/Feb/2012:18:16:44 +0000] "GET /xmpp-http-bind HTTP/1.1" 200
170 "-" "-"

--
You received this message because you are subscribed to the Google Groups "Punjab" group.
To post to this group, send email to punja...@googlegroups.com.
To unsubscribe from this group, send email to punjab-xmpp...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/punjab-xmpp?hl=en.


Message has been deleted

Christopher Zorn

unread,
Feb 15, 2012, 1:36:52 PM2/15/12
to punja...@googlegroups.com
I mean the xmpp host. This is sent to the connection manager on session creation. I think it should be chat.facebook.com for facebook. 

On Wed, Feb 15, 2012 at 8:11 AM, ntimesc <nti...@gmail.com> wrote:
THe host link is correct  http://notiontrix.com:5280/xmpp-http-bind
on this link ejabber is running but i dont know what should i make so
that i runs like

http://bosh.metajack.im:5280/xmpp-httpbind


On Feb 12, 11:02 pm, Christopher Zorn <christopher.z...@gmail.com>

wrote:
> This looks like you failed to connect to the remote host. I do not see the
> initial bosh session initiation, the host may be incorrect.
>
>
>
>
>
>
>
> On Tue, Feb 7, 2012 at 10:27 AM, ntimesc <ntim...@gmail.com> wrote:
> > When i am trying to integrate facebook with my own configured punjab

ntimesc

unread,
Feb 16, 2012, 2:34:08 PM2/16/12
to Punjab
sorry , i didnt get you can you please explain me with an example ,
its a request

On Feb 15, 11:36 pm, Christopher Zorn <christopher.z...@gmail.com>
wrote:

Robert Wolff

unread,
Mar 2, 2012, 8:29:25 PM3/2/12
to punja...@googlegroups.com
I am having a similar problem. It appears to me that it is due to NOT having SSL/TLS and certs/keys enabled in punjab.tac. I found some advice elsewhere, but it seems a little incomplete.... here's the other advice...

Can someone fill in the gaps here? I've got my private key and cert. Check. I think 'site' is from the line in the original punjab.tac that says site  = server.Site(root) ... check... now for PORT... 443 ??

from twisted.internet import reactor, ssl

# original tac file from punjab.tac

sslContext = ssl.DefaultOpenSSLContextFactory(
'/path/to/privkey.pem',
'/path/to/cacert.pem',
)
reactor.listenSSL(
port, # integer port
site, # the site object from punjab.tac
contextFactory = sslContext,
)


On Tuesday, February 7, 2012 10:27:55 AM UTC-8, ntimesc wrote:
When i am trying to integrate facebook with my own configured punjab
on http://notiontrix.com:5280/xmpp-http-bind
Reply all
Reply to author
Forward
0 new messages