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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@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/b003a7184a02da5fd6dfe27def8d928d363e36ce.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b003a7184a02da5fd6dfe27def8d928d363e36ce.patch

---

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,

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to