[sr-dev] How to change the reply msg in the onreply_route
Min Wang
wang at basis-audionet.com
Wed Feb 24 21:20:09 CET 2010
Hi Andrei:
> Try the latest code on master. It was more complex than I thought, but
> now it should be possible to use t_reply() from both kinds of
> onreply_routes, even from the script.
>
> E.g.:
> onreply_route{ # main/core onreply_route
> if (some condition) {
> t_reply("600", "Denied");
> drop;
> }
> }
I did some tests on both main and tm onreply_route for 180 msg from
scripts, it works!!
> In this case you would still need your function to send the ack & bye.
>
> It will work too in the tm onreply_routes, but not for 2xx replies.
> If someone really needs to drop 2xx replies from tm onreply routes and
> volunteers to do the heavy testing, we could try allowing it (along
with
> the stop timer changes it should work theoretically).
Is the changes to drop 2xx in git repo?
My prefered way is to be able to drop 2xx in tm onreply_routes,
otherwise my_function_check in the main onreply_route seems will get
complicated. (am I a little lazy :)? )
Thanks.
Kind Regards
Min Wang
More information about the sr-dev
mailing list