[Home]

Summary:ASTERISK-22959: ARI /asterisk/getGlobalVar doesn't execute functions
Reporter:David M. Lee (dlee)Labels:
Date Opened:2013-12-10 09:20:32.000-0600Date Closed:2013-12-16 14:09:07.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Resources/res_ari
Versions:12.0.0-beta2 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:h2. Steps to reproduce

# Configure ARI and AMI
# Run AMI {{GetVar}} for a global function
# Run ARI {{GET /ari/asterisk/variable}} for a global function

h2. Expected results

Should return the same results.

h2. Actual results

ARI returns an empty string instead of the results of the function.

AMI:
{code}
action: GetVar
variable: BASE64_ENCODE(hi)

Response: Success
Variable: BASE64_ENCODE(hi)
Value: aGk=
{code}

ARI:
{code}
curl 'http://localhost:8088/ari/asterisk/variable?varible="BASE64_ENCODE(hi)"&api_key=ari:ari'
{"value":""}
{code}
Comments:By: Matt Jordan (mjordan) 2013-12-16 14:09:07.078-0600

Currently, we can't think of a legitimate use case for evaluating functions on global variables. In general, this feels like it isn't something that should be encouraged through a remote API.