Skip to content

Commit

Permalink
acc_json: use the variable for the time key
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Sep 22, 2022
1 parent 023af51 commit 3e2b5d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/acc_json/acc_json_mod.c
Expand Up @@ -311,9 +311,9 @@ int acc_json_send_request(struct sip_msg *req, acc_info_t *inf)
<= 0) {
acc_time_format_buf[0] = '\0';
}
json_object_set_new(object, "time", json_string(acc_time_format_buf));
json_object_set_new(object, acc_time_key.s, json_string(acc_time_format_buf));
} else { // default acc_time_mode==1
json_object_set_new(object, "time", json_integer(inf->env->ts));
json_object_set_new(object, acc_time_key.s, json_integer(inf->env->ts));
}

LM_DBG("text[%.*s]\n", inf->env->text.len, inf->env->text.s);
Expand Down

0 comments on commit 3e2b5d9

Please sign in to comment.