Jakarta and Moscow have agreed to expand security contacts in fight against terrorism and strengthen military-technical ties, Indonesian President Joko Widodo said Wednesday.