Seek guidance of the lawyer of your friend for better appreciation of facts / circumstances, professional advise and proceeding.
Unbelievable statement, no Magistarate shall take such action as stated by you, however, discuss with your lawyer.
However, if you (or accused) are located in Delhi/ NCR and feel, may contact me (on appointment) at:
Ch. No 647, Lawyer's Chamber Block, Dwarka Courts Complex, New Delhi-110075 email: majjagdish@yahoo.com Cell # 9891152939
you need to file application for re-calling of warranat and mean while coney the oredr of High court to the Magistrate. You should also file an application to call records from the Magistrate Court in the High Court , the proceedings will automatically halt.