Skip to content

Commit

Permalink
acc: debug messages to print the type of extra acc attrs
Browse files Browse the repository at this point in the history
(cherry picked from commit 4bd77f1)
  • Loading branch information
miconda committed Nov 22, 2021
1 parent a988943 commit 5e771ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/acc/acc.c
Expand Up @@ -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];
Expand Down
1 change: 1 addition & 0 deletions src/modules/acc/acc_extra.c
Expand Up @@ -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;
Expand Down

0 comments on commit 5e771ac

Please sign in to comment.