India and Pakistan have agreed to extend the validity of the Agreement on Sri Kartarpur Sahib Corridor for a period of five years.