]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
main/stasis_endpoints: Fix ContactStatusChange JSON for roundtrip_usec field 55/1555/1
authorMatt Jordan <mjordan@digium.com>
Tue, 3 Nov 2015 14:15:16 +0000 (08:15 -0600)
committerMatt Jordan <mjordan@digium.com>
Tue, 3 Nov 2015 14:18:41 +0000 (09:18 -0500)
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

main/stasis_endpoints.c

index f44ce4229065c65cbb26c07cde3586f7126b654e..931bbb97d9128f322caedb939262ce9e344b8e6b 100644 (file)
@@ -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,