[svn-commits] phsultan: branch 1.4 r81650 - /branches/1.4/res/res_jabber.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Sep 6 09:20:54 CDT 2007


Author: phsultan
Date: Thu Sep  6 09:20:54 2007
New Revision: 81650

URL: http://svn.digium.com/view/asterisk?view=rev&rev=81650
Log:
According to both RFC 3920 - section 9.1.2 - and Google's XMPP server
complaint, if set, the 'from' attribute must be set to the user's full
JID.

Modified:
    branches/1.4/res/res_jabber.c

Modified: branches/1.4/res/res_jabber.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_jabber.c?view=diff&rev=81650&r1=81649&r2=81650
==============================================================================
--- branches/1.4/res/res_jabber.c (original)
+++ branches/1.4/res/res_jabber.c Thu Sep  6 09:20:54 2007
@@ -1324,7 +1324,7 @@
 			if(query && iq)  {
 				iks_insert_attrib(iq, "type", "get");
 				iks_insert_attrib(iq, "to", pak->from->full);
-				iks_insert_attrib(iq,"from",iks_find_attrib(pak->x,"to"));
+				iks_insert_attrib(iq,"from", client->jid->full);
 				iks_insert_attrib(iq, "id", client->mid);
 				ast_aji_increment_mid(client->mid);
 				iks_insert_attrib(query, "xmlns", "http://jabber.org/protocol/disco#info");




More information about the svn-commits mailing list