]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_ari: Fix create request body parameter parsing.
authorsungtae kim <sungtae@messagebird.com>
Tue, 9 Jun 2020 11:57:24 +0000 (11:57 +0000)
committerJoshua Colp <jcolp@sangoma.com>
Tue, 9 Jun 2020 12:27:08 +0000 (07:27 -0500)
commita9dea6a38e2dcd3d2b112b244588fe78a7af98d0
treedca057e53c4af473bb893a5c8ec7377dfe0e0275
parent6e6c8fb14185a635c458055e9a9e05efd6b75add
res_ari: Fix create request body parameter parsing.

If parameters were passed in the body as JSON to the
create route they were not being parsed before checking
to ensure that required fields were set.

This change moves the parsing so it occurs before
checking.

ASTERISK-28940

Change-Id: I898b4c3c7ae1cde19a6840e59f498822701cf5cf
res/ari/resource_channels.c