ALICE sends a "603 Decline" to our DC request, so we need to fallback to a

Wed, 26 May 2010 23:15:06 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Wed, 26 May 2010 23:15:06 +0000
changeset 30348
8fb6da6a7504
parent 30347
bd4ba98f4f29
child 30349
26be44d0f764

ALICE sends a "603 Decline" to our DC request, so we need to fallback to a
regular transfer in this case as well.

libpurple/protocols/msn/slp.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/msn/slp.c	Wed May 26 23:08:53 2010 +0000
+++ b/libpurple/protocols/msn/slp.c	Wed May 26 23:15:06 2010 +0000
@@ -936,6 +936,14 @@
 	purple_debug_error("msn", "Received non-OK result: %s\n",
 	                   error ? error : "Unknown");
 
+	if (type && !strcmp(type, "application/x-msnmsgr-transreqbody")) {
+		MsnDirectConn *dc = slpcall->slplink->dc;
+		if (dc) {
+			msn_dc_fallback_to_p2p(dc);
+			return;
+		}
+	}
+
 	slpcall->wasted = TRUE;
 }
 

mercurial