[Kamailio-Users] How to add Retry-After header in 503 response

Henning Westerholt henning.westerholt at 1und1.de
Thu Nov 27 13:38:09 CET 2008


On Thursday 27 November 2008, Alex Hermann wrote:
> is there a way to add a Retry-After header to a 503 response i'm sending
> out using t_reply?
>
> Use case: t_relay creates an internal 408 on timeout. From failure-route, i
> want to pass it upstream as 503 with retry-after header. Changing the reply
> to 503 using t_reply works, but how to add the header?
>
> The reply obviously doens't pass through any reply_route.

Hi Alex,

have you tried using append_to_reply("Retry-After: 120\n"); before the 
sl_send_reply or t_reply?

Cheers,

Henning




More information about the Users mailing list