Diff

plugins/mod_dialback.lua @ 260:182f0c895676

Now outgoing s2s sessions are associated with their from_host, fixes #15
author Matthew Wild <mwild1@gmail.com>
date Fri, 14 Nov 2008 02:54:56 +0000
parent 259:1485d272400d
child 347:fba39fda0879
line wrap: on
line diff
--- a/plugins/mod_dialback.lua	Fri Nov 14 02:41:37 2008 +0000
+++ b/plugins/mod_dialback.lua	Fri Nov 14 02:54:56 2008 +0000
@@ -39,7 +39,7 @@
 		send_s2s(origin.to_host, origin.from_host,
 			format("<db:verify from='%s' to='%s' id='%s'>%s</db:verify>", origin.to_host, origin.from_host,
 				origin.streamid, origin.dialback_key));
-		hosts[origin.from_host].dialback_verifying = origin;
+		hosts[origin.to_host].s2sout[origin.from_host].dialback_verifying = origin;
 	end);
 
 add_handler({ "s2sout_unauthed", "s2sout" }, "verify", xmlns_dialback,