Unless the parties otherwise consent, by an endorsement upon the commission, the court or judge must endorse thereon a direction as to the manner in which it must be returned, and may, in his discretion, direct that it be returned by mail or otherwise, addressed to the clerk of the court in which the action is pending, designating his name and the place where his office is kept.