Module: kamailio Branch: master Commit: e4d2ca28ee2d42683d7604c6a767a201b6babbed URL: https://github.com/kamailio/kamailio/commit/e4d2ca28ee2d42683d7604c6a767a201...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2018-08-24T08:50:36+02:00
core: debug message when dropping a sip reply
---
Modified: src/core/receive.c
---
Diff: https://github.com/kamailio/kamailio/commit/e4d2ca28ee2d42683d7604c6a767a201... Patch: https://github.com/kamailio/kamailio/commit/e4d2ca28ee2d42683d7604c6a767a201...
---
diff --git a/src/core/receive.c b/src/core/receive.c index 9a385e4b85..df8db65ca6 100644 --- a/src/core/receive.c +++ b/src/core/receive.c @@ -415,10 +415,11 @@ int receive_msg(char *buf, unsigned int len, struct receive_info *rcv_info) goto error_rpl; } else #endif /* NO_ONREPLY_ROUTE_ERROR */ - if(unlikely(ret == 0 || (ctx.run_flags & DROP_R_F))) { - STATS_RPL_FWD_DROP(); - goto skip_send_reply; /* drop the message, no error */ - } + if(unlikely(ret == 0 || (ctx.run_flags & DROP_R_F))) { + STATS_RPL_FWD_DROP(); + LM_DBG("drop flag set - skip forwarding the reply\n"); + goto skip_send_reply; /* drop the message, no error */ + } } /* send the msg */ forward_reply(msg);