In this paper we propose a novel algorithm to restore calls upon node failure in all-optical networks. Our proposal aims to restore the maximum of lightpaths disrupted by each node failure. The algorithm performs a path restoration looking for the route that presents the higher optical signal-to-noise ratio (OSNR). We compared our proposal to three other well known approaches in the literature. We observed that our proposal obtained lower failure rates in the restoration process for three different studied scenarios considering several physical layer impairments