Skip to content

Commit

Permalink
kazoo: add time msg was received
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo committed Apr 14, 2017
1 parent c86b882 commit cc7adf7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/modules/kazoo/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
#define DBK_DEFS_H_

#define BLF_MAX_DIALOGS 8

#define BLF_JSON_AMQP_RECEIVED "AMQP-Received"
#define BLF_JSON_AMQP_CONSUMER "AMQP-Consumer"
#define BLF_JSON_AMQP_PUBLISHED "AMQP-Published"
#define BLF_JSON_AMQP_SENT "AMQP-Sent"
#define BLF_JSON_AMQP_PIPE_IN "AMQP-Pipe-In"
#define BLF_JSON_AMQP_PIPE_OUT "AMQP-Pipe-Out"

#define BLF_JSON_PRES "Presentity"
#define BLF_JSON_PRES_USER "Presentity-User"
#define BLF_JSON_PRES_REALM "Presentity-Realm"
Expand Down
1 change: 1 addition & 0 deletions src/modules/kazoo/kz_amqp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2897,6 +2897,7 @@ void kz_amqp_send_worker_event(kz_amqp_server_ptr server_ptr, amqp_envelope_t* e
}

json_object_object_add(json_obj, BLF_JSON_BROKER_ZONE, json_object_new_string(server_ptr->zone->zone));
json_object_object_add(json_obj, BLF_JSON_AMQP_RECEIVED, json_object_new_int(time(NULL)));


JObj = kz_json_get_object(json_obj, BLF_JSON_SERVERID);
Expand Down

0 comments on commit cc7adf7

Please sign in to comment.