[Asterisk-code-review] res/res_ari: Added timestamp for ari playback and recording ari events. (...asterisk[master])
sungtae kim
asteriskteam at digium.com
Wed Mar 6 16:24:12 CST 2019
sungtae kim has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/11100
Change subject: res/res_ari: Added timestamp for ari playback and recording ari events.
......................................................................
res/res_ari: Added timestamp for ari playback and recording ari events.
Because there's no timestamp for the below ARI events, it is
difficult to when the event was actually occurred.
Added timestamp to below ARI events.
PlaybackStarted, PlaybackContinuing, PlaybackFinished,
RecordingStarted, RecordingFinished, RecordingFailed
ASTERISK-28326
Change-Id: I382c2fef58f5fe107e1074869a6d05310accb41f
---
M res/res_stasis_playback.c
M res/res_stasis_recording.c
2 files changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/00/11100/1
diff --git a/res/res_stasis_playback.c b/res/res_stasis_playback.c
index 4a8e84d..4a75382 100644
--- a/res/res_stasis_playback.c
+++ b/res/res_stasis_playback.c
@@ -111,8 +111,9 @@
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);
}
diff --git a/res/res_stasis_recording.c b/res/res_stasis_recording.c
index 4077fc8..0ab50e4d 100644
--- a/res/res_stasis_recording.c
+++ b/res/res_stasis_recording.c
@@ -89,8 +89,9 @@
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),
"recording", blob);
}
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/11100
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I382c2fef58f5fe107e1074869a6d05310accb41f
Gerrit-Change-Number: 11100
Gerrit-PatchSet: 1
Gerrit-Owner: sungtae kim <pchero21 at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190306/b2ba06d3/attachment-0001.html>
More information about the asterisk-code-review
mailing list