equal
deleted
inserted
replaced
54 -- Warn the original connection that is was not verified successfully |
54 -- Warn the original connection that is was not verified successfully |
55 log("warn", "dialback for "..(origin.dialback_verifying.from_host or "(unknown)").." failed"); |
55 log("warn", "dialback for "..(origin.dialback_verifying.from_host or "(unknown)").." failed"); |
56 valid = "invalid"; |
56 valid = "invalid"; |
57 end |
57 end |
58 if not origin.dialback_verifying.sends2s then |
58 if not origin.dialback_verifying.sends2s then |
59 log("warn", "Incoming s2s session was closed in the meantime, so we can't notify it of the db result"); |
59 log("warn", "Incoming s2s session %s was closed in the meantime, so we can't notify it of the db result", tostring(origin.dialback_verifying):match("%w+$")); |
60 else |
60 else |
61 origin.dialback_verifying.sends2s(format("<db:result from='%s' to='%s' id='%s' type='%s'>%s</db:result>", |
61 origin.dialback_verifying.sends2s(format("<db:result from='%s' to='%s' id='%s' type='%s'>%s</db:result>", |
62 attr.from, attr.to, attr.id, valid, origin.dialback_verifying.dialback_key)); |
62 attr.from, attr.to, attr.id, valid, origin.dialback_verifying.dialback_key)); |
63 end |
63 end |
64 end |
64 end |