diff options
Diffstat (limited to 'res/ari/resource_channels.c')
-rw-r--r-- | res/ari/resource_channels.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/res/ari/resource_channels.c b/res/ari/resource_channels.c index b8d59d38b..f1a9217af 100644 --- a/res/ari/resource_channels.c +++ b/res/ari/resource_channels.c @@ -407,6 +407,13 @@ void ast_ari_record_channel(struct ast_variable *headers, return; } + if (!ast_get_format_for_file_ext(options->format)) { + ast_ari_response_error( + response, 422, "Unprocessable Entity", + "specified format is unknown on this system"); + return; + } + recording = stasis_app_control_record(control, options); if (recording == NULL) { switch(errno) { |