Honestly, have you consulted an attorney? Most will do the first meeting for free and be able to give you a straightforward answer on how to proceed. I would imagine that you would be able to restructure the agreement to continue paying off the loan incrementally, but I don't know all the details of your situation. It would be important that you have all documenation of all interactions and transactions with the collection agency and from your student loans... You can be sure of one thing... they will not be dismissed and you will have to pay them off. Bankruptcy doesn't fix student loans... they are almost impossible to get rid of.
Hope this helps.