Hi,
I try to register a xmpp-account using the strophe-register-pluging (https://github.com/metajack/strophejs-plugins/tree/master/register). It works fine with the connection manager from example “http://bosh.metajack.im:5280/xmpp-httpbind” but I cant register the account using the OpenFire connection manager. (Normal login works with both connection managers…)
Connection State Changes are 1 -> 10. 1 means “connecting” but i dont know what 10 means…
$(document).bind('connect', function (ev, data) {
console.log("Connect to XMPP-Server..."); var connection = new Strophe.Connection(
// "http://bosh.metajack.im:5280/xmpp-httpbind");
"http://localhost/http-bind"); var callback = function (status) {
if (status === Strophe.Status.REGISTER) {alert("1"+status);
connection.register.fields.username = "fghdfhg";alert("2"+status);
connection.register.fields.name = "dfgfdgfdg";
connection.register.fields.password = "dfddfgfdg";
connection.register.submit();
} else if (status === Strophe.Status.REGISTERED) {
console.log("registered!");
connection.authenticate();
} else if (status === Strophe.Status.CONNECTED) {
$(document).trigger('connected');
} else if (status === Strophe.Status.DISCONNECTED) {
console.log("Disconnected from XMPP-Server");
}
}; // connection.connect(data.jid, data.password, callback);
connection.register.connect("xyz.com", callback, 60, 1); WebChat.connection = connection; });
does someone can say me what i’m doing wrong? Is there a server configuration i have to change?