Hi,
as I know only t_drop_replies() function exists in tm module that does something similar, but it drops all the replies received so far, and it is usable only from failure_route.
Anyway, I think your particular problem can be solved with the on_sl_reply modparam:
modparam(tm, on_sl_reply, "stateless_reply");
onreply_route["stateless_reply"] { # This route is executes if tm module does not find # the transaction for the reply. # If 0 is returned then the reply is not forwarded. return 0; }
Miklos
On 07/01/2009 12:11 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
For kamailio, in request and failure route they are the same, stop processing of the actions. But in branch route and reply route drop does a bit more: drop current processed branch respectively reply, so they are not forwarded.
i'm calling 'drop' in onreply_route if t_check_trans() fails on the reply. the idea is to discard the reply.
Addition of this functionality will affect core and tm. Any comments regarding this? i can create the patch for it, if nobody sees issues.
if the above functionality can be achieved in sr by some other means, i can switch to that. if not, 'drop' should be fixed so that it discards the reply.
-- juha
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev