[sr-dev] [kamailio] Acc_Radius Ack packet and acc run egines bug- Kamailo 4.2.5 (#266)

Yasin notifications at github.com
Mon Jul 27 09:56:43 CEST 2015


Hello Daniel


diff --git a/modules/acc/acc.c b/modules/acc/acc.c
index 7bf7dd7..7874c38 100644
--- a/modules/acc/acc.c
+++ b/modules/acc/acc.c
@@ -992,7 +992,7 @@ int acc_run_engines(struct sip_msg *msg, int type, int *reset)
        inf.leg_info = leg_info;
        while(e) {
                if(e->flags & 1) {
-                       if((type==0) && (msg->flags&(e->acc_flag))) {
+                       if((type==0) && ((e->acc_flag))) {
                                LM_DBG("acc event for engine: %s\n", e->name);
                                e->acc_req(msg, &inf);
                                if(reset) *reset |= e->acc_flag;
diff --git a/modules/acc/acc_logic.c b/modules/acc/acc_logic.c
index bd3f1cc..16a97e5 100644
--- a/modules/acc/acc_logic.c
+++ b/modules/acc/acc_logic.c
@@ -615,7 +615,7 @@ static inline void acc_onack( struct cell* t, struct sip_msg *req,
 #endif

        /* run extra acc engines */
-       acc_run_engines(req, 0, NULL);
+       acc_run_engines(ack, 0, NULL);

 }


---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/266#issuecomment-125115087
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150727/04114bdd/attachment.html>


More information about the sr-dev mailing list