mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
res/res_ari: Added timestamp as a requirement for all ARI events
Changed to requirement to having timestamp for all of ARI events. The below ARI events were changed to having timestamp. PlaybackStarted, PlaybackContinuing, PlaybackFinished, RecordingStarted, RecordingFinished, RecordingFailed, ApplicationReplaced, ApplicationMoveFailed ASTERISK-28326 Change-Id: I382c2fef58f5fe107e1074869a6d05310accb41f
This commit is contained in:
@@ -111,8 +111,9 @@ static struct ast_json *playback_to_json(struct stasis_message *message,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return ast_json_pack("{s: s, s: O}",
|
||||
return ast_json_pack("{s: s, s: o?, s: O}",
|
||||
"type", type,
|
||||
"timestamp", ast_json_timeval(*stasis_message_timestamp(message), NULL),
|
||||
"playback", blob);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user