Based upon what you have written about so long as your friend is incarcerated it makes no sense for him to file to dissolve the restraining order that you have written about. In order to dissolve the restraining order, he needs to be substituted in as his own attorney of record if he had a prior attorney on the restraining order matter and file the petition in state court seeking to have it dissolved and the facts warranting such.