res/ari/resource_channels: Don't return allocation failure on failed function

If a function fails to execute, it is most likely due to one of two reasons:
(1) The function doesn't exist or can't be read from
(2) The function is dangerous and is restricted based on the user's permissions

Currently we return allocation failure, which is incorrect. This updates the
reason code to more accurately reflect why the request failed.

ASTERISK-24215


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/13@421311 f38db490-d61c-443f-a65b-d21fe96a405b
res/ari/resource_channels: Fix compilation issue

Forgot a parameter. Whoops.


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/13@421312 f38db490-d61c-443f-a65b-d21fe96a405b