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.