Module: kamailio Branch: master Commit: 0686083209841be9f5d26ea61c3f4b660d74a9b8 URL: https://github.com/kamailio/kamailio/commit/0686083209841be9f5d26ea61c3f4b66...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-11-27T13:27:48+01:00
core: skip running event_route[core:pre-routing] for internal routed messages
---
Modified: src/core/receive.c
---
Diff: https://github.com/kamailio/kamailio/commit/0686083209841be9f5d26ea61c3f4b66... Patch: https://github.com/kamailio/kamailio/commit/0686083209841be9f5d26ea61c3f4b66...
---
diff --git a/src/core/receive.c b/src/core/receive.c index b438182f26..f3b31fefbc 100644 --- a/src/core/receive.c +++ b/src/core/receive.c @@ -235,6 +235,11 @@ int ksr_evrt_pre_routing(sip_msg_t *msg) str evname = str_init("core:pre-routing"); recv_flags_t brflags;
+ if(msg->rcv.rflags & RECV_F_INTERNAL) { + DBG("skip internal routed message\n"); + return 0; + } + if(kemi_pre_routing_callback.len>0) { keng = sr_kemi_eng_get(); if(keng == NULL) {