Add missing namespace for old non-SASL based authentication.
authorJoshua Colp <jcolp@digium.com>
Mon, 16 Jul 2012 16:54:55 +0000 (16:54 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 16 Jul 2012 16:54:55 +0000 (16:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370116 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_xmpp.c

index 42d15ce..1ec10a9 100644 (file)
@@ -2497,6 +2497,7 @@ static int xmpp_client_authenticate_digest(struct ast_xmpp_client *client, struc
        iks_insert_cdata(iks_insert(query, "username"), client->jid->user, 0);
        iks_insert_cdata(iks_insert(query, "resource"), client->jid->resource, 0);
 
+       iks_insert_attrib(query, "xmlns", "jabber:iq:auth");
        snprintf(sidpass, sizeof(sidpass), "%s%s", iks_find_attrib(node, "id"), cfg->password);
        ast_sha1_hash(buf, sidpass);
        iks_insert_cdata(iks_insert(query, "digest"), buf, 0);