Comparison

plugins/mod_s2s/mod_s2s.lua @ 7277:7be7108cb6ed

mod_s2s: Include name of remote server when it's missing the stream ID (thanks Ge0rG)
author Kim Alvefur <zash@zash.se>
date Mon, 14 Mar 2016 13:27:02 +0100
parent 7101:f83211f4d776
child 7278:1891854b25ac
child 7449:6943b1dd4e3d
comparison
equal deleted inserted replaced
7276:30dfaf36ea6d 7277:7be7108cb6ed
361 end 361 end
362 end 362 end
363 elseif session.direction == "outgoing" then 363 elseif session.direction == "outgoing" then
364 session.notopen = nil; 364 session.notopen = nil;
365 if not attr.id then 365 if not attr.id then
366 log("error", "Stream response did not give us a stream id!"); 366 log("error", "Stream response from %s did not give us a stream id!", session.to_host);
367 session:close({ condition = "undefined-condition", text = "Missing stream ID" }); 367 session:close({ condition = "undefined-condition", text = "Missing stream ID" });
368 return; 368 return;
369 end 369 end
370 session.streamid = attr.id; 370 session.streamid = attr.id;
371 371