Am 25.08.2011 16:37, schrieb Fabian Borot:
Hi,
If t_relay() fails, is it possible to retrieve the status/reason on a
variable or something?
I am using|t_grep_status("code")| and trying to catch each case that I
am interested but I was wondering if there was a better way.
One could do something like this:
If (result > 400) {
do action 1
} else {
do action 2
}
t_relay only fails if e.g. tm module failed to allocate memory. If there
are problems in forwarding the message, then usually t_relay still
returns "true" and you have to check the failure code on failure route.
regards
klaus