[asterisk-commits] file: trunk r370116 - /trunk/res/res_xmpp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 16 11:54:59 CDT 2012


Author: file
Date: Mon Jul 16 11:54:55 2012
New Revision: 370116

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=370116
Log:
Add missing namespace for old non-SASL based authentication.

Modified:
    trunk/res/res_xmpp.c

Modified: trunk/res/res_xmpp.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_xmpp.c?view=diff&rev=370116&r1=370115&r2=370116
==============================================================================
--- trunk/res/res_xmpp.c (original)
+++ trunk/res/res_xmpp.c Mon Jul 16 11:54:55 2012
@@ -2497,6 +2497,7 @@
 	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);




More information about the asterisk-commits mailing list