23 aug 2013 kl. 08:13 skrev Steve Davies <steve@connection-telecom.com>:




On 23 August 2013 07:55, Olle E. Johansson <oej@edvina.net> wrote:
 
Please read the full documentation for t_relay. There's a lot of return codes that actually is really helpful. If it fails, read the return code and take action accordingly.

Yeah, I know I'm boring, but we do try to write proper reference documentation in this project ;-)

Hi Olle,

Where is this documentation?

Here's all that is said about return codes from t_relay in the 4.0.x module documentation  (http://kamailio.org/docs/modules/4.0.x/modules/tm.html#t_relay).  Looks like there are docs that I didn't find?

  "Returns a negative value on failure -- you may still want to send a negative reply upstream statelessly not to leave upstream UAC in lurch."


All the examples about re-routing calls are all about doing append_route out of the to_on_failure route.  Which works beautifully for "soft" failures etc.  Seems a shame this exception must be done differently?
That must be a big OOPS. (embarrassed smile on my lips).

Check here:
http://kamailio.org/docs/modules/1.5.x/tm.html#id2514020

Someone more familiar with the tm module code than I am have to upgrade the 4.0 docs and devel as well.

Thanks for pointing that out.

/O