diff options
author | Matt Jordan <mjordan@digium.com> | 2015-11-03 08:15:16 -0600 |
---|---|---|
committer | Matt Jordan <mjordan@digium.com> | 2015-11-03 08:15:16 -0600 |
commit | f0f190af08c5f7f4af3316209b174bd92be145c3 (patch) | |
tree | c07b7f020a00017a15edf91e2efe342fd9d76f67 | |
parent | 0071a993f0561664d074d461759fc3259bd9c926 (diff) |
main/stasis_endpoints: Fix ContactStatusChange JSON for roundtrip_usec field
The JSON packing for the ContactStatusChange event forgot to include the
roundtrip_usec field. As a result, the field never showed up in any event,
even when the data was available. This patch corrects that error by properly
packing the JSON blob with the data.
Change-Id: I8df80da659a44010afbd48f645967518ff5daa17
-rw-r--r-- | main/stasis_endpoints.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/stasis_endpoints.c b/main/stasis_endpoints.c index 157f98c04..fbca2ad9b 100644 --- a/main/stasis_endpoints.c +++ b/main/stasis_endpoints.c @@ -247,7 +247,7 @@ static struct ast_json *contactstatus_to_json(struct stasis_message *msg, const return NULL; } - json_final = ast_json_pack("{s: s, s: o, s: o, s: { s: s, s: s, s: s } } ", + json_final = ast_json_pack("{s: s, s: o, s: o, s: { s: s, s: s, s: s, s: s } } ", "type", "ContactStatusChange", "timestamp", ast_json_timeval(*tv, NULL), "endpoint", json_endpoint, |