converse.js kolab/roundcube

dsp3 info at dsp3.org
Fri Nov 7 16:52:08 CET 2014


I have managed to configure converse to work within roundcube/kolab, but 
there is some unusual behaviour regarding chats. My converse (0.83) 
config.inc.php contains the following:

$rcmail_config['converse_xmpp_bosh_prebind_url']= function($args) {
         return 'http://localhost:5280/http-bind';
         # return sprintf('http://%s/http-bind', $_SERVER['HTTP_HOST']);
         # return sprintf('http://%s/http-bind', $args['host']);
};

$rcmail_config['converse_xmpp_bosh_url']= function($args) {
         return '/http-bind';
};

$rcmail_config['converse_xmpp_hostname']= function($args) {
   list($user,$host) = explode('@', $args['user']);
   return $host;
         # return preg_replace('/^.*@/', '', $args['user']);
         # return $args['host'];
};

$rcmail_config['converse_xmpp_username']= function($args) {
   return $_SESSION['kolab_uid'];
         # return preg_replace('/@.*$/', '', $args['user']);
};

The first issue is if a user logs in with their primary email address, 
converse uses one of the secondary email addresses as the UID. This 
isn't always desirable as email1 and email2 are treated as separate 
users by ejabberd.
The second issue involves multiple chat boxes opening during 
conversations. Sending messages to an external client results in 
multiple chat boxes opening in roundcube. When initiating OTR, this can 
lead to 3 or 4 extra boxes appearing. Messages can be sent via OTR in 
converse, but replies aren't received. Just shows other user typing.

If anyone has any insight into making converse more functional, I'd be 
glad to hear from them.

-- 
http://www.dsp3.org
info at dsp3.org
GPG Key: ACF0A7E6


More information about the users mailing list