But when does t_relay() itself ever fail due to endpoint reachability issues? I think t_relay() only fails for formal reasons, like host name lookup failure, invalid address format, etc? Otherwise, it returns success; if the endpoint is not reachable, the transaction simply times out. If this is the case, branch route does get called.
Is this not the case?
On 03/08/2010 12:03 PM, Juha Heinanen wrote:
IƱaki Baz Castillo writes:
No, branch_route is not execed when t_relay() fails. In case a TCP connection is broken t_relay() returns an error ($rc is negative) and no branch_route is entered.
inaki,
i think the idea was to call set_forward_no_connect() in branch route before calling t_relay().
-- juha
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev