Module: kamailio
Branch: 6.0
Commit: 9bc482d9e859473621b5a4bebb3bf7e11e9bdd96
URL: 
https://github.com/kamailio/kamailio/commit/9bc482d9e859473621b5a4bebb3bf7e11e9bdd96

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2025-07-22T11:19:28+02:00

ims_icscf: cxdx_send_uar() return error on fail send message

(cherry picked from commit 8a30b015e5d8da263cd6f91cc659813cc6c9946a)

---

Modified: src/modules/ims_icscf/cxdx_uar.c

---

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

---

diff --git a/src/modules/ims_icscf/cxdx_uar.c b/src/modules/ims_icscf/cxdx_uar.c
index c62a063ac11..cec1ceadf46 100644
--- a/src/modules/ims_icscf/cxdx_uar.c
+++ b/src/modules/ims_icscf/cxdx_uar.c
@@ -302,6 +302,7 @@ int cxdx_send_uar(struct sip_msg *msg, str private_identity,
 {
        AAAMessage *uar = 0;
        AAASession *session = 0;
+       int ret = -1;
 
        session = cdpb.AAACreateSession(0);
 
@@ -334,12 +335,16 @@ int cxdx_send_uar(struct sip_msg *msg, str 
private_identity,
                        goto error1;
 
        if(cxdx_forced_peer.len)
-               cdpb.AAASendMessageToPeer(uar, &cxdx_forced_peer,
+               ret = cdpb.AAASendMessageToPeer(uar, &cxdx_forced_peer,
                                (void *)async_cdp_uar_callback, (void 
*)transaction_data);
        else
-               cdpb.AAASendMessage(
+               ret = cdpb.AAASendMessage(
                                uar, (void *)async_cdp_uar_callback, (void 
*)transaction_data);
 
+       if(ret != 1) {
+               LM_DBG("Error sending async diameter (%d)\n", ret);
+               return -1;
+       }
        LM_DBG("Successfully sent async diameter\n");
 
        return 0;

_______________________________________________
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