[asterisk-bugs] [JIRA] (ASTERISK-22959) ARI /asterisk/getGlobalVar doesn't execute functions
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Mon Dec 16 14:11:03 CST 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-22959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Jordan closed ASTERISK-22959.
----------------------------------
Resolution: Won't Fix
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.
> ARI /asterisk/getGlobalVar doesn't execute functions
> ----------------------------------------------------
>
> Key: ASTERISK-22959
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-22959
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_ari
> Affects Versions: 12.0.0-beta2
> Reporter: David M. Lee
>
> 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list