[sr-dev] git:master:1e7e0279: acc: DLGCB_TERMINATED callback can be run without received request

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 15 18:08:29 CEST 2015


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-04-15T18:03:40+02:00

acc: DLGCB_TERMINATED callback can be run without received request

- the case of local generated bye

---

Modified: modules/acc/acc_cdr.c

---

Diff:  https://github.com/kamailio/kamailio/commit/1e7e0279bbf53c4a530aa3a8c1d322a68d8090f9.diff
Patch: https://github.com/kamailio/kamailio/commit/1e7e0279bbf53c4a530aa3a8c1d322a68d8090f9.patch

---

diff --git a/modules/acc/acc_cdr.c b/modules/acc/acc_cdr.c
index 845fc12..0532174 100644
--- a/modules/acc/acc_cdr.c
+++ b/modules/acc/acc_cdr.c
@@ -643,7 +643,7 @@ void cdr_on_end_confirmed( struct dlg_cell* dialog,
                         int type,
                         struct dlg_cb_params* params)
 {
-    if( !dialog || !params || !params->req)
+    if( !dialog || !params )
     {
         LM_ERR("invalid values\n!");
         return;




More information about the sr-dev mailing list