summaryrefslogtreecommitdiff
path: root/rest-api
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2015-02-27 18:23:22 +0000
committerRichard Mudgett <rmudgett@digium.com>2015-02-27 18:23:22 +0000
commit9d85e855de00fc06d03e8a1bfec35ced8a2888f7 (patch)
tree161e9a5736c9142fb6c72e1056522c744597c2bb /rest-api
parentc33c5183a51cf1d1343444108a09614538cd1ee2 (diff)
ARI: Fix crash if integer values used in JSON payload 'variables' object.
Sending the following ARI commands caused Asterisk to crash if the JSON body 'variables' object passes values of types other than strings. POST /ari/channels POST /ari/channels/{channelid} PUT /ari/endpoints/sendMessage PUT /ari/endpoints/{tech}/{resource}/sendMessage * Eliminated RAII_VAR usage in ast_ari_channels_originate_with_id(), ast_ari_channels_originate(), ast_ari_endpoints_send_message(), and ast_ari_endpoints_send_message_to_endpoint(). ASTERISK-24751 #close Reported by: jeffrey putnam Review: https://reviewboard.asterisk.org/r/4447/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@432404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api')
-rw-r--r--rest-api/api-docs/endpoints.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/rest-api/api-docs/endpoints.json b/rest-api/api-docs/endpoints.json
index e7b4ba73a..17b884784 100644
--- a/rest-api/api-docs/endpoints.json
+++ b/rest-api/api-docs/endpoints.json
@@ -64,6 +64,10 @@
],
"errorResponses": [
{
+ "code": 400,
+ "reason": "Invalid parameters for sending a message."
+ },
+ {
"code": 404,
"reason": "Endpoint not found"
}