Company not ready to release me

I have given resignation but my company is not ready to release me. I have been working for 5 months, but company has not provided me any training nor they have provided me any work. I am just sitting idle and they are telling me that you will be deployed in a project so can't be released now. I have told them that I am ready to pay for the notice period as per contract but they are saying the contract is one sided. They can pay and release me but I can't do the same. My contract says the following- "In the event you decide to leave the services of the company, you shall be required to give ninety days notice in writing to company of your intension of doing so. company reserves the discretion either to relieve you only at the end of ninety days notice period or accept your resignation at any time prior to the expiry of the notice period. Company may terminate your service by giving you ninety days notice period or salary[ consolidated (basic) salary] in lieu of notice period." Now I want to know that is one sided contract valid? And if it what are the options I have now? I cannot serve the notice period and I am ready to pay.