aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_jabber.c
diff options
context:
space:
mode:
authorphsultan <phsultan@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-06 14:20:54 +0000
committerphsultan <phsultan@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-06 14:20:54 +0000
commit99e66192c442fffea6a26c918250439f794a2965 (patch)
tree5072463c58b5c127fd86bf7bfd5bbaec7ef034c0 /res/res_jabber.c
parent348b34d836c65a46bdd097e3a3cf84d315cd74dd (diff)
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. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81650 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_jabber.c')
-rw-r--r--res/res_jabber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_jabber.c b/res/res_jabber.c
index 722a8bbb1..8b83731d6 100644
--- a/res/res_jabber.c
+++ b/res/res_jabber.c
@@ -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");