Hi Ross,
You can replace the negative replies only in failure route:
failure_route[xx] {
if (t_check_status("404") {
t_reply("503","Error");
exit;
}
}
Of course, the test can involve the check of a header from the received
reply.....
Regards,
Bogdan
Ross McKillop wrote:
> Is there any way to rewrite the SIP status code in an onreply_route ?
>
> e.g. if the destination returns a 404, remap it to 503 or similar in the reply
>
> Alternatively is it possible (in the onreply_route) to change the reply status
> based on the contents of another header.
>
> Regards,
> Ross
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users