the presidents of ecuador and peruvian say they have agreed to work together to try to determine a peaceful resolve to their war - running territorial dispute .
Peru debates border region with Ecuador.