How to integrate punjab with ejabberd

150 views
Skip to first unread message

pawan kumar Vishwakarma

unread,
Dec 13, 2012, 2:44:19 AM12/13/12
to punja...@googlegroups.com
Hi I have ejabberd and candy chat client running perfectly, but I wanted to use punjab as bosh connection manager so that chat client has better connection with ejabberd server. I am able to run punjab successfully but I don`t know how to integrate punjab with ejabberd, please guide me. apart from this one more doubt I have i.e. as punjab uses default port 5280 and ejabberd also uses same port 5280 because of this I am able to start any one of this ( punjab / ejabbberd ) at a time. please help me because of this my project is stuck. thank you.

Christopher Zorn

unread,
Dec 13, 2012, 1:25:50 PM12/13/12
to punja...@googlegroups.com
You have to use Punjab as the connection manager or ejabberd, or have one run on a different port. Punjab connects to port 5222 and BOSH clients connect to it via 5280. Why are you not just using the ejabberd BOSH connection manager? You are adding serialization overhead when using Punjab. 


On Wed, Dec 12, 2012 at 11:44 PM, pawan kumar Vishwakarma <pawan...@gmail.com> wrote:
Hi I have ejabberd and candy chat client running perfectly, but I wanted to use punjab as bosh connection manager so that chat client has better connection with ejabberd server. I am able to run punjab successfully but I don`t know how to integrate punjab with ejabberd, please guide me. apart from this one more doubt I have i.e. as punjab uses default port 5280 and ejabberd also uses same port 5280 because of this I am able to start any one of this ( punjab / ejabbberd ) at a time. please help me because of this my project is stuck. thank you.

--
You received this message because you are subscribed to the Google Groups "Punjab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/punjab-xmpp/-/jvVBFnxDvikJ.
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.

pawan kumar Vishwakarma

unread,
Dec 14, 2012, 3:01:51 AM12/14/12
to punja...@googlegroups.com
Hi, let me tell you that I have developed mobile application using ejabberd and candy chat client and the application is working perfectly but while chatting if any call comes then after call gets over, chat application shows "Disconnected" message. Actually I wanted to solve this problem, so I thought to use Punjab, so that even if any call comes, user`s 
session remain active. I don`t know whether I am right. please help me to integrate Punjab and ejabberd.

Below is candy chat client connection code :

              $(document).ready(function(){
core: { debug: true,autojoin:['conference.tdda-36'] },
view: { resources: '/res/' }
});
Candy.Core.connect();
});

Below is Punjab.tac :

from twisted.web import server, resource, static
from twisted.application import service, internet
from punjab.httpb  import Httpb, HttpbService

root = static.File("./html")

bosh = HttpbService(1)

root.putChild('http-bind', resource.IResource(bosh))
site  = server.Site(root)
application = service.Application("punjab")
internet.TCPServer(5281, site).setServiceParent(application)


please help me to configure.
thank you.
Reply all
Reply to author
Forward
0 new messages