[OpenSIPS-Users] Rewriting SIP Status in Reply

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Sep 27 16:53:38 CEST 2010


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
> Users at lists.opensips.org
> 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




More information about the Users mailing list