summaryrefslogtreecommitdiff
path: root/src/message.c
diff options
context:
space:
mode:
authordumeijied <[email protected]>2018-10-09 10:50:48 +0800
committerdumeijied <[email protected]>2018-10-09 10:50:48 +0800
commitea42f42cd319f083d940fcf2bcba9a82d3742feb (patch)
tree6e419f06de4df065755ad2c4dc503e665b7a2fe7 /src/message.c
parent8121ece1e4265f87239acff424a4e55d379902eb (diff)
2018.10.08 v4.0//1.add send_voip_full_json_log for K_PROJECT;2.voip_fulllog and voip_surveylog add voice_dir and cap_ip opt
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.c b/src/message.c
index 15a71a5..a159d55 100644
--- a/src/message.c
+++ b/src/message.c
@@ -384,7 +384,7 @@ void send_json_log(media_t* mdi, resp_checkresult_t* check_res)
cJSON* root = NULL;
- string topic_name = TOPIC_VOIP_SURVEY_JSON;
+ string topic_name = TOPIC_MM_SAMPLE_VOIP_LOG;
char pid_buf[64] = {0};
char pbuf[32] = {0};
@@ -401,7 +401,7 @@ void send_json_log(media_t* mdi, resp_checkresult_t* check_res)
cJSON_AddNumberToObject(root, "found_time", mdi->create_time);
cJSON_AddNumberToObject(root, "recv_time", time(NULL));
cJSON_AddNumberToObject(root, "fd_type", FD_TYPE_ANALYSE);
- cJSON_AddStringToObject(root, "voip_protocol", "RTP");
+ cJSON_AddStringToObject(root, "voip_protocol", SIP_PROTO_RTP);
memset(pbuf, 0, sizeof(pbuf));
inet_ntop(AF_INET, &g_frag_cfg.local_ip_nr, pbuf, sizeof(pbuf));