The two military commanders reviewed the prevailing situation along the Line of Control and International Border in J&K during a conversation over the hotline at 6 PM, the Indian Army said.
The special hotline contact was initiated by the Pakistani DGMO.
Following the conversation between Indian DGMO Lt Gen Anil Chauhan and Pakistan's Maj Gen Sahir Shamshad Mirza, the two armies issued identical statements saying both sides agreed to fully implement the 15-year-old ceasefire understanding.
"Both the DGMOs agreed to fully implement the Ceasefire Understanding of 2003 in letter and spirit forthwith and to ensure that henceforth the ceasefire will not be violated by both sides," the Indian Army said.
The Pakistan Army, in a statement, said both the DGMOs agreed to undertake sincere measures to improve the existing situation to ensure peace and avoidance of hardships to the civilians along the borders.
The LoC has been witnessing increasing hostilities in the last few months.
A total of 908 incidents of ceasefire violations by Pakistan Army were reported till today in the current year as against 860 incidents during 2017, defence sources in New Delhi said.
"It was also mutually agreed that in case of any issue, restraint will be exercised and the matter will be resolved through utilisation of existing mechanisms of hotline contacts and Border Flag Meetings at Local Commanders' Level," the Indian Army statement said.
It said the Indian Army DGMO agreed with the proposal to undertake sincere measures to improve the existing situation to ensure peace and avoidance of hardships to the civilians along the borders.
PHOTOS: Shell-shocked along the LoC
We are close to war with Pakistan
Why Pakistan wants to blow apart LoC ceasefire
Can India fight China and Pakistan simultaneously?
Why India must worry about the Pakistan threat