Module: kamailio
Branch: master
Commit: 23c39ecbdd29f2fff0af4a693b08032e8afff48b
URL:
https://github.com/kamailio/kamailio/commit/23c39ecbdd29f2fff0af4a693b08032…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-01-20T09:57:45+01:00
core: set exit flag for return 0
---
Modified: src/core/action.c
---
Diff:
https://github.com/kamailio/kamailio/commit/23c39ecbdd29f2fff0af4a693b08032…
Patch:
https://github.com/kamailio/kamailio/commit/23c39ecbdd29f2fff0af4a693b08032…
---
diff --git a/src/core/action.c b/src/core/action.c
index b8525f6c6a..48b150dd70 100644
--- a/src/core/action.c
+++ b/src/core/action.c
@@ -366,6 +366,9 @@ int do_action(struct run_act_ctx* h, struct action* a, struct sip_msg*
msg)
goto error;
}
h->run_flags|=(unsigned int)a->val[1].u.number;
+ if(unlikely((ret==0) && (h->run_flags&RETURN_R_F))) {
+ h->run_flags |= EXIT_R_F;
+ }
break;
case FORWARD_T:
#ifdef USE_TCP