res_stasis_recording: Add a "target_uri" field to recording events.
[asterisk/asterisk.git] / res / ari / resource_channels.c
index 97d9bb3..3552070 100644 (file)
@@ -468,6 +468,7 @@ void ast_ari_channels_record(struct ast_variable *headers,
                        response, 500, "Internal Server Error",
                        "Out of memory");
        }
+       ast_string_field_build(options, target, "channel:%s", args->channel_id);
        options->max_silence_seconds = args->max_silence_seconds;
        options->max_duration_seconds = args->max_duration_seconds;
        options->terminate_on =