[asterisk-dev] [Code Review] 2702: ARI - GET /ari/asterisk/info

opticron reviewboard at asterisk.org
Thu Aug 1 13:38:04 CDT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2702/#review9302
-----------------------------------------------------------

Ship it!



/team/dlee/allow-multiple/res/ari/resource_asterisk.c
<https://reviewboard.asterisk.org/r/2702/#comment18328>

    Revert this change.


- opticron


On July 29, 2013, 5:15 p.m., David Lee wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2702/
> -----------------------------------------------------------
> 
> (Updated July 29, 2013, 5:15 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-21575
>     https://issues.asterisk.org/jira/browse/ASTERISK-21575
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> This patch adds basic system information access to ARI.
> 
> The results are roughly what you get from 'core show settings', with a
> few minor differences.
> 
>  * Data is structured, with 'build', 'system', 'config' and 'status'
>    sub-objects.
>  * Each sub-object is selectable, using the ?only= parameter. A comma
>    separated list can be provided to select multiple sections.
>  * A few config options are numeric, for which 0 means 'unlimited'.
>    Instead of having a special interpretation of those fields, they
>    are simply omitted if they're 0.
>  * The information is limited to what might be useful to building
>    external applications.
> 
> Here's an example output from my dev machine:
> {
>   "build": {
>     "os": "Darwin",
>     "kernel": "12.4.0",
>     "machine": "x86_64",
>     "options": "DONT_OPTIMIZE, LOADABLE_MODULES, DISABLE_INLINE, TEST_FRAMEWORK",
>     "date": "2013-07-25 01:10:32 UTC",
>     "user": "dlee"
>   },
>   "system": {
>     "version": "SVN-dlee-asterisk-info-URL:-r395493M",
>     "entity_id": "58:b0:35:f7:fe:71"
>   },
>   "config": {
>     "name": "",
>     "default_language": "en",
>     "setid": {
>       "user": "",
>       "group": ""
>     },
>     "max_load": 0.5
>   },
>   "status": {
>     "startup_time": "2013-07-25T22:41:46.542-0500",
>     "last_reload_time": "2013-07-25T22:41:46.542-0500"
>   }
> }
> 
> 
> Diffs
> -----
> 
>   /team/dlee/allow-multiple/res/ari/ari_model_validators.h 395718 
>   /team/dlee/allow-multiple/res/ari/ari_model_validators.c 395718 
>   /team/dlee/allow-multiple/res/ari/resource_asterisk.c 395718 
>   /team/dlee/allow-multiple/rest-api/api-docs/asterisk.json 395718 
> 
> Diff: https://reviewboard.asterisk.org/r/2702/diff/
> 
> 
> Testing
> -------
> 
> curl "http://localhost:8088/ari/asterisk/info?api_key=ari:ari&only=${whatever}"
> 
> 
> Thanks,
> 
> David Lee
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130801/66dcb363/attachment.htm>


More information about the asterisk-dev mailing list