An attempt to route to a gateway failed. Could not route to Gateway %1, the attempt failed with response code: %2 (CallID: ...

An attempt to route to a gateway failed.

Could not route to Gateway %1, the attempt failed with response code: %2 (CallID: %3).
Failure occurrences: %4, since %5.
Cause: A gateway failed to respond to a request within allotted time or was unable to route the request due to some error.
Resolution:
Check whether the specified gateway is up and is properly configured.