[sr-dev] git:5.5:5e771acc: acc: debug messages to print the type of extra acc attrs

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 22 09:14:09 CET 2021


Module: kamailio
Branch: 5.5
Commit: 5e771acc3e4c3e8f3480cb971a5493d5c667cf5e
URL: https://github.com/kamailio/kamailio/commit/5e771acc3e4c3e8f3480cb971a5493d5c667cf5e

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-11-22T09:09:38+01:00

acc: debug messages to print the type of extra acc attrs

(cherry picked from commit 4bd77f1dae2eeacbe7384ac2838c691f76e077f1)

---

Modified: src/modules/acc/acc.c
Modified: src/modules/acc/acc_extra.c

---

Diff:  https://github.com/kamailio/kamailio/commit/5e771acc3e4c3e8f3480cb971a5493d5c667cf5e.diff
Patch: https://github.com/kamailio/kamailio/commit/5e771acc3e4c3e8f3480cb971a5493d5c667cf5e.patch

---

diff --git a/src/modules/acc/acc.c b/src/modules/acc/acc.c
index 81e27eb2c5..b95275853d 100644
--- a/src/modules/acc/acc.c
+++ b/src/modules/acc/acc.c
@@ -461,6 +461,7 @@ int acc_db_request( struct sip_msg *rq)
 
 	for( i++ ; i<m; i++) {
 		if (acc_extra_nullable == 1 && type_arr[i] == TYPE_NULL) {
+			LM_DBG("attr[%d] is NULL\n", i);
 			VAL_NULL(db_vals + i) = 1;
 		} else {
 			VAL_STR(db_vals+i) = val_arr[i];
diff --git a/src/modules/acc/acc_extra.c b/src/modules/acc/acc_extra.c
index 5e8568535e..ac84d3f894 100644
--- a/src/modules/acc/acc_extra.c
+++ b/src/modules/acc/acc_extra.c
@@ -258,6 +258,7 @@ int extra2strar(struct acc_extra *extra, struct sip_msg *rq, str *val_arr,
 				type_arr[n] = TYPE_STR;
 			}
 		}
+		LM_DBG("type of the extra attr[%d] set to: %d\n", n, type_arr[n]);
 		n++;
 
 		extra = extra->next;




More information about the sr-dev mailing list