Procedure in certain cases of contempt and Procedure where Court considers that case should not be dealt with under Section 345 are defined under Section 345 and 346 of CRPC 1973. Provision under these sections are:
Section 345 of CRPC "Procedure in certain cases of contempt"
(1) When any such offence as is described in Section 175, Section 178, Section 179, Section 180, or Section 228 of the Indian Penal Code (45 of 1860), is committed in the view or presence of any Civil, Criminal, or Revenue Court, the Court may cause the offender to be detained in custody, and may, at any time before the rising of the Court or the same day, take cognizance of the offence and, after giving the offender a reasonable opportunity of showing cause why he should not be punished under this section, sentence offender to fine not exceeding two hundred rupees, and, in default of payment of fine, to simple imprisonment for a term which may extend to one month, unless such fine be sooner paid.
(2) In every such case the Court shall record the fact
constituting the offence, with the statement (if any) made
by the offender, as well as the finding and sentence.
(3) If the offence is under Section 228 of the Indian Penal
Code (45 of 1860), the record shall show the nature and
stage of the judicial proceeding in which the Court
interrupted or insulted was sitting, and the nature of the
interruption or insult
Section 346 of CRPC "Procedure where Court considers that case should not be dealt with under Section 345"
(1) If the Court in any case considers that a person
accused of any of the offences referred to in Section 345
and committed in its view or presence should be imprisoned
otherwise than in default of payment of fine, or that a fine
exceeding two hundred rupees should be imposed upon him, or
such Court is for any other reason of opinion that the case
should not be disposed of under Section 345, such Court,
after recording the facts constituting the offence and the
statement of the accused as hereinbefore provided, may
forward the case to a Magistrate having jurisdiction to try
the same, and may require security to be given for the
appearance of such person before such Magistrate, or if
sufficient security is not given, shall forward such person
in custody to such Magistrate.
(2) The Magistrate to whom any case is forwarded under this
section shall proceed to deal with, as far as may be, as if
it were instituted on a police report.
PROVISIONS AS TO ACCUSED PERSONS OF UNSOUND MIND
PROVISIONS AS TO OFFENCES AFFECTING THE ADMINISTRATION OF JUSTICE