diff options
author | Joshua Colp <jcolp@digium.com> | 2016-05-23 18:04:07 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-05-23 18:04:07 -0500 |
commit | cab97fd9056e1dd99f4d6e0883c128131467df44 (patch) | |
tree | 82045e0bc958deb5662d14679c89d02845b5c89b /rest-api-templates/res_ari_resource.c.mustache | |
parent | c20e560516239dc32c93bd3484abad4fa42045f5 (diff) | |
parent | e773e3a9bbaf378d53647e4bac3ffcd61afb4ae6 (diff) |
Merge "ARI: Add the ability to download the media associated with a stored recording"
Diffstat (limited to 'rest-api-templates/res_ari_resource.c.mustache')
-rw-r--r-- | rest-api-templates/res_ari_resource.c.mustache | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rest-api-templates/res_ari_resource.c.mustache b/rest-api-templates/res_ari_resource.c.mustache index 23f2a52ac..c4e6f3d54 100644 --- a/rest-api-templates/res_ari_resource.c.mustache +++ b/rest-api-templates/res_ari_resource.c.mustache @@ -91,7 +91,12 @@ static void ast_ari_{{c_name}}_{{c_nickname}}_cb( #endif /* AST_DEVMODE */ {{> param_parsing}} +{{^is_binary_response}} ast_ari_{{c_name}}_{{c_nickname}}(headers, &args, response); +{{/is_binary_response}} +{{#is_binary_response}} + ast_ari_{{c_name}}_{{c_nickname}}(ser, headers, &args, response); +{{/is_binary_response}} #if defined(AST_DEVMODE) code = response->response_code; @@ -114,8 +119,14 @@ static void ast_ari_{{c_name}}_{{c_nickname}}_cb( ast_ari_validate_{{c_singular_name}}_fn()); {{/is_list}} {{^is_list}} +{{^is_binary_response}} is_valid = ast_ari_validate_{{c_name}}( response->message); +{{/is_binary_response}} +{{#is_binary_response}} + /* No validation on a raw binary response */ + is_valid = 1; +{{/is_binary_response}} {{/is_list}} {{/response_class}} } else { |