]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
According to both RFC 3920 - section 9.1.2 - and Google's XMPP server
authorPhilippe Sultan <philippe.sultan@gmail.com>
Thu, 6 Sep 2007 14:20:54 +0000 (14:20 +0000)
committerPhilippe Sultan <philippe.sultan@gmail.com>
Thu, 6 Sep 2007 14:20:54 +0000 (14:20 +0000)
complaint, if set, the 'from' attribute must be set to the user's full
JID.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81650 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_jabber.c

index 722a8bbb1feb8cee438f6cde6b4fdec7d70cabcc..8b83731d6731902a7c653c9a44956f616fd76620 100644 (file)
@@ -1324,7 +1324,7 @@ static void aji_handle_presence(struct aji_client *client, ikspak *pak)
                        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");