In any kind of dispute, warring/litigating parties can, AT ANY TIME (even if the matter is before the court), can sit together to reach a mutual ground.
Thereafter, a joint petition signed by both parties should be filed before the concerned court meaning under whose territorial jurisdiction either party is living at that point of time or where the marriage was solemnised orwhere either party has a permanent residence.
There are two 'motions' where proceedings mainly involve giving statements on oath before the court and that is based on the facts enumerated in the joint petition filed by the parties. After First motion, 6 months' time is given to the parties, basically giving them time for reconciliation of differences, if possible.
A mutually agreed date for Second motion (it has to be concluded within 18 months from filing the 1st motion) is given on the first date of hearing itself. After both the motions, decree of divorce is granted and both parties get a copy (each) of the said decree along with the statements recorded in both the motions.
just a suggestion-divorce should not be used as the easy way out of a marriage which, in my opinion, is the bed-rock of our society and which needs a lot of serious commitments and understandings on both sides to sustain.