Browse code

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

Daniel-Constantin Mierla authored on 11/11/2021 11:59:11
Showing 2 changed files
... ...
@@ -461,6 +461,7 @@ int acc_db_request( struct sip_msg *rq)
461 461
 
462 462
 	for( i++ ; i<m; i++) {
463 463
 		if (acc_extra_nullable == 1 && type_arr[i] == TYPE_NULL) {
464
+			LM_DBG("attr[%d] is NULL\n", i);
464 465
 			VAL_NULL(db_vals + i) = 1;
465 466
 		} else {
466 467
 			VAL_STR(db_vals+i) = val_arr[i];
... ...
@@ -252,6 +252,7 @@ int extra2strar(struct acc_extra *extra, struct sip_msg *rq, str *val_arr,
252 252
 				type_arr[n] = TYPE_STR;
253 253
 			}
254 254
 		}
255
+		LM_DBG("type of the extra attr[%d] set to: %d\n", n, type_arr[n]);
255 256
 		n++;
256 257
 
257 258
 		extra = extra->next;