Hello,

i receive many error on the failure route like this “ t_should_relay_response(): ERROR: t_should_relay_response: status rewrite by UAS: stored: 500, received: 487” . Do you know why ?

 

My version of Kamailio is the 4.1.2  and the code is this:

 

failure_route[MANAGE_FAILURE] {

 

                if (t_is_canceled()) {

                               exit;

                }             

               

                revert_uri();

                if (!cr_next_domain("$avp(s:carrier)", "$avp(s:domain)", "$rU", "$avp(s:host)", "$T_reply_code", "$avp(s:domain)")) {

                               exit;

                }

                if (!cr_route("$avp(s:carrier)", "$avp(s:domain)", "$rU", "$rU", "call_id")) {

                               exit;

                }

                $avp(s:host)= $rd;

               

                t_on_failure("MANAGE_FAILURE");

                t_on_branch("MANAGE_BRANCH");

                append_branch();

                if (!t_relay()) {

                               exit;

                }

}

 

 

Thanks to all