summaryrefslogtreecommitdiff
path: root/res/res_stasis_recording.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2014-03-06 18:20:37 +0000
committerJoshua Colp <jcolp@digium.com>2014-03-06 18:20:37 +0000
commit3f730662f7906027c302896abd549a32123ec848 (patch)
treeaf8cebbb9e464be139a2580f248f53c03f91ce68 /res/res_stasis_recording.c
parent59ff66ef0275ff9985a3cd3168fc797cf152b38e (diff)
res_stasis_recording: Add a "target_uri" field to recording events.
This change adds a target_uri field to the live recording object. It contains the URI of what is being recorded. (closes issue ASTERISK-23258) Reported by: Ben Merrills Review: https://reviewboard.asterisk.org/r/3299/ ........ Merged revisions 410025 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_stasis_recording.c')
-rw-r--r--res/res_stasis_recording.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res_stasis_recording.c b/res/res_stasis_recording.c
index 70536dcb1..080ee7b81 100644
--- a/res/res_stasis_recording.c
+++ b/res/res_stasis_recording.c
@@ -476,10 +476,11 @@ struct ast_json *stasis_app_recording_to_json(
return NULL;
}
- json = ast_json_pack("{s: s, s: s, s: s}",
+ json = ast_json_pack("{s: s, s: s, s: s, s: s}",
"name", recording->options->name,
"format", recording->options->format,
- "state", state_to_string(recording->state));
+ "state", state_to_string(recording->state),
+ "target_uri", recording->options->target);
return ast_json_ref(json);
}