Dialogue, not war, is the way forward: army