Two Koreas restore military hotline amid cross-border talks