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
_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev