From: Matt Jordan Date: Tue, 3 Nov 2015 14:15:16 +0000 (-0600) Subject: main/stasis_endpoints: Fix ContactStatusChange JSON for roundtrip_usec field X-Git-Tag: 14.0.0-beta1~602 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e26a06c1dafc9975a4e3a7e5e3153fcf75b1eeaa;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/stasis_endpoints.c b/main/stasis_endpoints.c index f44ce42290..931bbb97d9 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,