[sr-dev] git:master:1910432c: core: events - return once SREV_SIP_REPLY_OUT callbacks are executed

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


Module: kamailio
Branch: master
Commit: 1910432ce3af56af1e6d4c4c124c2af2925c5b9a
URL: https://github.com/kamailio/kamailio/commit/1910432ce3af56af1e6d4c4c124c2af2925c5b9a

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

core: events - return once SREV_SIP_REPLY_OUT callbacks are executed

---

Modified: src/core/events.c

---

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

---

diff --git a/src/core/events.c b/src/core/events.c
index 2d8400f829..b9df7dcf2d 100644
--- a/src/core/events.c
+++ b/src/core/events.c
@@ -343,6 +343,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;
 		case SREV_TCP_WS_CLOSE:
 				if(unlikely(_sr_events_list.tcp_ws_close[0]!=0))




More information about the sr-dev mailing list