[asterisk-dev] [Code Review] 2612: REST API - channel recording support

David Lee reviewboard at asterisk.org
Mon Jun 10 14:17:52 CDT 2013


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

Review request for Asterisk Developers.


Bugs: ASTERISK-21594
    https://issues.asterisk.org/jira/browse/ASTERISK-21594


Repository: Asterisk


Description
-------

This patch is the first step in adding recording support to the
Asterisk REST Interface.

Recordings are stored in /var/spool/recording. Since recordings may be
destructive (overwriting existing files), the API rejects attempts to
escape the recording directory (avoiding issues if someone attempts to
record to ../../lib/sounds/greeting, for example).


Diffs
-----

  /trunk/res/res_stasis_http_channels.c 391291 
  /trunk/res/res_stasis_http_bridges.c 391291 
  /trunk/main/utils.c 391291 
  /trunk/main/file.c 391291 
  /trunk/main/channel.c 391291 
  /trunk/main/asterisk.c 391291 
  /trunk/include/asterisk/utils.h 391291 
  /trunk/include/asterisk/stasis_app_recording.h PRE-CREATION 
  /trunk/include/asterisk/paths.h 391291 
  /trunk/include/asterisk/file.h 391291 
  /trunk/include/asterisk/channel.h 391291 
  /trunk/Makefile 391291 
  /trunk/res/res_stasis_http_recordings.c 391291 
  /trunk/res/res_stasis_playback.c 391291 
  /trunk/res/res_stasis_recording.c PRE-CREATION 
  /trunk/res/res_stasis_recording.exports.in PRE-CREATION 
  /trunk/res/stasis_http/resource_channels.h 391291 
  /trunk/res/stasis_http/resource_channels.c 391291 
  /trunk/res/stasis_http/resource_recordings.h 391291 
  /trunk/res/stasis_http/resource_recordings.c 391291 
  /trunk/rest-api-templates/asterisk_processor.py 391291 
  /trunk/rest-api-templates/swagger_model.py 391291 
  /trunk/rest-api/api-docs/channels.json 391291 
  /trunk/rest-api/api-docs/recordings.json 391291 
  /trunk/tests/test_utils.c 391291 

Diff: https://reviewboard.asterisk.org/r/2612/diff/


Testing
-------

Unit tests; swagger-ui for manual testing


Thanks,

David Lee

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130610/58b46be1/attachment-0001.htm>


More information about the asterisk-dev mailing list