Module: kamailio
Branch: master
Commit: b003a7184a02da5fd6dfe27def8d928d363e36ce
URL:
https://github.com/kamailio/kamailio/commit/b003a7184a02da5fd6dfe27def8d928…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-27T15:36:33+01:00
corez: set sndinfo attributes for corex_sip_reply_out()
---
Modified: src/modules/corex/corex_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b003a7184a02da5fd6dfe27def8d928…
Patch:
https://github.com/kamailio/kamailio/commit/b003a7184a02da5fd6dfe27def8d928…
---
diff --git a/src/modules/corex/corex_mod.c b/src/modules/corex/corex_mod.c
index 115e50f8a03..9f22b445ece 100644
--- a/src/modules/corex/corex_mod.c
+++ b/src/modules/corex/corex_mod.c
@@ -1453,6 +1453,16 @@ static int corex_sip_reply_out(sr_event_param_t *evp)
str evname = str_init("corex:reply-out");
memset(&sndinfo, 0, sizeof(onsend_info_t));
+ sndinfo.dst = evp->dst;
+ if(evp->rpl != NULL) {
+ sndinfo.msg = evp->rpl;
+ sndinfo.buf = evp->rpl->buf;
+ sndinfo.len = evp->rpl->len;
+ } else {
+ sndinfo.msg = evp->req;
+ sndinfo.buf = evp->req->buf;
+ sndinfo.len = evp->req->len;
+ }
if(corex_evrt_reply_out_no >= 0 || corex_evcb_reply_out.len > 0) {
run_onsend_evroute(&sndinfo, corex_evrt_reply_out_no,