[Users] drop() and final replies
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Tue Jul 11 12:59:36 CEST 2006
Hi Andreas,
for re-writing the negative final replies, use the failure route:
failure_route[x] {
if (t_check_status("302")) {
t_reply("480", "Something");
exit;
}
}
regards,
bogdan
Andreas Granig wrote:
> Hi,
>
> The docs state that if drop() is called in onreply_route[], any
> provisional replies are discarded. How about final replies?
>
> What I want to achieve is to rewrite some reply codes, like:
>
> onreply_route[x] {
> if(status=="302") {
> t_reply("480", "Something");
> drop();
> }
> }
>
> Would this work as intended?
>
> Thanks,
> Andy
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
More information about the sr-users
mailing list