[sr-dev] git:5.4:c7a07121: core: events - return once SREV_SIP_REPLY_OUT callbacks are executed

Daniel-Constantin Mierla miconda at gmail.com
Tue Sep 8 13:09:28 CEST 2020


Module: kamailio
Branch: 5.4
Commit: c7a07121012b23299331b22426852d9af534582f
URL: https://github.com/kamailio/kamailio/commit/c7a07121012b23299331b22426852d9af534582f

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-09-08T13:09:10+02:00

core: events - return once SREV_SIP_REPLY_OUT callbacks are executed

(cherry picked from commit 1910432ce3af56af1e6d4c4c124c2af2925c5b9a)

---

Modified: src/core/events.c

---

Diff:  https://github.com/kamailio/kamailio/commit/c7a07121012b23299331b22426852d9af534582f.diff
Patch: https://github.com/kamailio/kamailio/commit/c7a07121012b23299331b22426852d9af534582f.patch

---

diff --git a/src/core/events.c b/src/core/events.c
index 91df673996..d48d7a7819 100644
--- a/src/core/events.c
+++ b/src/core/events.c
@@ -334,6 +334,7 @@ int sr_event_exec(int type, sr_event_param_t *evp)
 							&& _sr_events_list.sip_reply_out[i]; i++) {
 						ret |= _sr_events_list.sip_reply_out[i](evp);
 					}
+					return ret;
 				} else return 1;
 		default:
 			return -1;




More information about the sr-dev mailing list