[OpenSIPS-Users] Convenient way to change a SIP Response Code?

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Sep 29 23:03:12 CEST 2009


Hi Jeff,

You can simply set a failure route to catch the failure of the 
transaction (via the 486) and override it with the 600 (see more on 
http://www.opensips.org/Resources/DocsCoreRoutes15#toc3).

Something like:

failure_route[1] {
if (t_check_status("486") {
t_reply("600","Get lost");
exit;
}
}

Regards,
Bogdan

Jeff Kronlage wrote:
>
> Greetings all,
>
> I am looking for a simple way to change a SIP response code.
>
> In some circumstances, I’d like to receive a 486 from a UA, and in 
> failure_route, change it to a 600 before it’s passed on to the 
> destination UA.
>
> Is there a function for this?
>
> Thanks!
>
> Jeff Kronlage
>
> Data102
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list