Module: kamailio
Branch: master
Commit: 3e2b5d9ed6a0f18199359444c5ae33a1d6b94eb2
URL:
https://github.com/kamailio/kamailio/commit/3e2b5d9ed6a0f18199359444c5ae33a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-09-22T20:32:52+02:00
acc_json: use the variable for the time key
---
Modified: src/modules/acc_json/acc_json_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3e2b5d9ed6a0f18199359444c5ae33a…
Patch:
https://github.com/kamailio/kamailio/commit/3e2b5d9ed6a0f18199359444c5ae33a…
---
diff --git a/src/modules/acc_json/acc_json_mod.c b/src/modules/acc_json/acc_json_mod.c
index ab6f9b4498..97b1c666bd 100644
--- a/src/modules/acc_json/acc_json_mod.c
+++ b/src/modules/acc_json/acc_json_mod.c
@@ -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);