Asterisk-13-Recordings-REST-API_29394322.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Asterisk Project : Asterisk 13 Recordings REST API</title>
  5. <link rel="stylesheet" href="styles/site.css" type="text/css" />
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. </head>
  8. <body class="theme-default aui-theme-default">
  9. <div id="page">
  10. <div id="main" class="aui-page-panel">
  11. <div id="main-header">
  12. <div id="breadcrumb-section">
  13. <ol id="breadcrumbs">
  14. <li class="first">
  15. <span><a href="index.html">Asterisk Project</a></span>
  16. </li>
  17. <li>
  18. <span><a href="Asterisk-13-Command-Reference_29394274.html">Asterisk 13 Command Reference</a></span>
  19. </li>
  20. <li>
  21. <span><a href="Asterisk-13-ARI_29394283.html">Asterisk 13 ARI</a></span>
  22. </li>
  23. </ol>
  24. </div>
  25. <h1 id="title-heading" class="pagetitle">
  26. <span id="title-text">
  27. Asterisk Project : Asterisk 13 Recordings REST API
  28. </span>
  29. </h1>
  30. </div>
  31. <div id="content" class="view">
  32. <div class="page-metadata">
  33. Created by <span class='author'> wikibot</span> on Aug 08, 2014
  34. </div>
  35. <div id="main-content" class="wiki-content group">
  36. <h1 id="Asterisk13RecordingsRESTAPI-Recordings">Recordings</h1>
  37. <div class="table-wrap"><table class="confluenceTable"><tbody>
  38. <tr>
  39. <th class="confluenceTh"><p> Method </p></th>
  40. <th class="confluenceTh"><p> Path </p></th>
  41. <th class="confluenceTh"><p> Return Model </p></th>
  42. <th class="confluenceTh"><p> Summary </p></th>
  43. </tr>
  44. <tr>
  45. <td class="confluenceTd"><p> GET </p></td>
  46. <td class="confluenceTd"><p> <a href="Asterisk-13-Recordings-REST-API_29394322.html">/recordings/stored</a> </p></td>
  47. <td class="confluenceTd"><p> <a href="Asterisk-13-REST-Data-Models_29394316.html#Asterisk13RESTDataModels-StoredRecording">List[StoredRecording]</a> </p></td>
  48. <td class="confluenceTd"><p> List recordings that are complete. </p></td>
  49. </tr>
  50. <tr>
  51. <td class="confluenceTd"><p> GET </p></td>
  52. <td class="confluenceTd"><p> <a href="Asterisk-13-Recordings-REST-API_29394322.html">/recordings/stored/{recordingName}</a> </p></td>
  53. <td class="confluenceTd"><p> <a href="Asterisk-13-REST-Data-Models_29394316.html#Asterisk13RESTDataModels-StoredRecording">StoredRecording</a> </p></td>
  54. <td class="confluenceTd"><p> Get a stored recording's details. </p></td>
  55. </tr>
  56. <tr>
  57. <td class="confluenceTd"><p> DELETE </p></td>
  58. <td class="confluenceTd"><p> <a href="Asterisk-13-Recordings-REST-API_29394322.html">/recordings/stored/{recordingName}</a> </p></td>
  59. <td class="confluenceTd"><p> void </p></td>
  60. <td class="confluenceTd"><p> Delete a stored recording. </p></td>
  61. </tr>
  62. <tr>
  63. <td class="confluenceTd"><p> POST </p></td>
  64. <td class="confluenceTd"><p> <a href="Asterisk-13-Recordings-REST-API_29394322.html">/recordings/stored/{recordingName}/copy</a> </p></td>
  65. <td class="confluenceTd"><p> <a href="Asterisk-13-REST-Data-Models_29394316.html#Asterisk13RESTDataModels-StoredRecording">StoredRecording</a> </p></td>
  66. <td class="confluenceTd"><p> Copy a stored recording. </p></td>
  67. </tr>
  68. <tr>
  69. <td class="confluenceTd"><p> GET </p></td>
  70. <td class="confluenceTd"><p> <a href="Asterisk-13-Recordings-REST-API_29394322.html">/recordings/live/{recordingName}</a> </p></td>
  71. <td class="confluenceTd"><p> <a href="Asterisk-13-REST-Data-Models_29394316.html#Asterisk13RESTDataModels-LiveRecording">LiveRecording</a> </p></td>
  72. <td class="confluenceTd"><p> List live recordings. </p></td>
  73. </tr>
  74. <tr>
  75. <td class="confluenceTd"><p> DELETE </p></td>
  76. <td class="confluenceTd"><p> <a href="Asterisk-13-Recordings-REST-API_29394322.html">/recordings/live/{recordingName}</a> </p></td>
  77. <td class="confluenceTd"><p> void </p></td>
  78. <td class="confluenceTd"><p> Stop a live recording and discard it. </p></td>
  79. </tr>
  80. <tr>
  81. <td class="confluenceTd"><p> POST </p></td>
  82. <td class="confluenceTd"><p> <a href="Asterisk-13-Recordings-REST-API_29394322.html">/recordings/live/{recordingName}/stop</a> </p></td>
  83. <td class="confluenceTd"><p> void </p></td>
  84. <td class="confluenceTd"><p> Stop a live recording and store it. </p></td>
  85. </tr>
  86. <tr>
  87. <td class="confluenceTd"><p> POST </p></td>
  88. <td class="confluenceTd"><p> <a href="Asterisk-13-Recordings-REST-API_29394322.html">/recordings/live/{recordingName}/pause</a> </p></td>
  89. <td class="confluenceTd"><p> void </p></td>
  90. <td class="confluenceTd"><p> Pause a live recording. </p></td>
  91. </tr>
  92. <tr>
  93. <td class="confluenceTd"><p> DELETE </p></td>
  94. <td class="confluenceTd"><p> <a href="Asterisk-13-Recordings-REST-API_29394322.html">/recordings/live/{recordingName}/pause</a> </p></td>
  95. <td class="confluenceTd"><p> void </p></td>
  96. <td class="confluenceTd"><p> Unpause a live recording. </p></td>
  97. </tr>
  98. <tr>
  99. <td class="confluenceTd"><p> POST </p></td>
  100. <td class="confluenceTd"><p> <a href="Asterisk-13-Recordings-REST-API_29394322.html">/recordings/live/{recordingName}/mute</a> </p></td>
  101. <td class="confluenceTd"><p> void </p></td>
  102. <td class="confluenceTd"><p> Mute a live recording. </p></td>
  103. </tr>
  104. <tr>
  105. <td class="confluenceTd"><p> DELETE </p></td>
  106. <td class="confluenceTd"><p> <a href="Asterisk-13-Recordings-REST-API_29394322.html">/recordings/live/{recordingName}/mute</a> </p></td>
  107. <td class="confluenceTd"><p> void </p></td>
  108. <td class="confluenceTd"><p> Unmute a live recording. </p></td>
  109. </tr>
  110. </tbody></table></div>
  111. <p><span class="confluence-anchor-link" id="Asterisk13RecordingsRESTAPI-listStored"></span></p>
  112. <h2 id="Asterisk13RecordingsRESTAPI-GET/recordings/stored">GET /recordings/stored</h2>
  113. <p>List recordings that are complete.</p>
  114. <p><span class="confluence-anchor-link" id="Asterisk13RecordingsRESTAPI-getStored"></span></p>
  115. <h2 id="Asterisk13RecordingsRESTAPI-GET/recordings/stored/{recordingName}">GET /recordings/stored/{recordingName}</h2>
  116. <p>Get a stored recording's details.</p>
  117. <h3 id="Asterisk13RecordingsRESTAPI-Pathparameters">Path parameters</h3>
  118. <ul>
  119. <li>recordingName: string - The name of the recording</li>
  120. </ul>
  121. <h3 id="Asterisk13RecordingsRESTAPI-ErrorResponses">Error Responses</h3>
  122. <ul>
  123. <li>404 - Recording not found</li>
  124. </ul>
  125. <p><span class="confluence-anchor-link" id="Asterisk13RecordingsRESTAPI-deleteStored"></span></p>
  126. <h2 id="Asterisk13RecordingsRESTAPI-DELETE/recordings/stored/{recordingName}">DELETE /recordings/stored/{recordingName}</h2>
  127. <p>Delete a stored recording.</p>
  128. <h3 id="Asterisk13RecordingsRESTAPI-Pathparameters.1">Path parameters</h3>
  129. <ul>
  130. <li>recordingName: string - The name of the recording</li>
  131. </ul>
  132. <h3 id="Asterisk13RecordingsRESTAPI-ErrorResponses.1">Error Responses</h3>
  133. <ul>
  134. <li>404 - Recording not found</li>
  135. </ul>
  136. <p><span class="confluence-anchor-link" id="Asterisk13RecordingsRESTAPI-copyStored"></span></p>
  137. <h2 id="Asterisk13RecordingsRESTAPI-POST/recordings/stored/{recordingName}/copy">POST /recordings/stored/{recordingName}/copy</h2>
  138. <p>Copy a stored recording.</p>
  139. <h3 id="Asterisk13RecordingsRESTAPI-Pathparameters.2">Path parameters</h3>
  140. <ul>
  141. <li>recordingName: string - The name of the recording to copy</li>
  142. </ul>
  143. <h3 id="Asterisk13RecordingsRESTAPI-Queryparameters">Query parameters</h3>
  144. <ul>
  145. <li>destinationRecordingName: string - <strong>(required)</strong> The destination name of the recording</li>
  146. </ul>
  147. <h3 id="Asterisk13RecordingsRESTAPI-ErrorResponses.2">Error Responses</h3>
  148. <ul>
  149. <li>404 - Recording not found</li>
  150. <li>409 - A recording with the same name already exists on the system</li>
  151. </ul>
  152. <p><span class="confluence-anchor-link" id="Asterisk13RecordingsRESTAPI-getLive"></span></p>
  153. <h2 id="Asterisk13RecordingsRESTAPI-GET/recordings/live/{recordingName}">GET /recordings/live/{recordingName}</h2>
  154. <p>List live recordings.</p>
  155. <h3 id="Asterisk13RecordingsRESTAPI-Pathparameters.3">Path parameters</h3>
  156. <ul>
  157. <li>recordingName: string - The name of the recording</li>
  158. </ul>
  159. <h3 id="Asterisk13RecordingsRESTAPI-ErrorResponses.3">Error Responses</h3>
  160. <ul>
  161. <li>404 - Recording not found</li>
  162. </ul>
  163. <p><span class="confluence-anchor-link" id="Asterisk13RecordingsRESTAPI-cancel"></span></p>
  164. <h2 id="Asterisk13RecordingsRESTAPI-DELETE/recordings/live/{recordingName}">DELETE /recordings/live/{recordingName}</h2>
  165. <p>Stop a live recording and discard it.</p>
  166. <h3 id="Asterisk13RecordingsRESTAPI-Pathparameters.4">Path parameters</h3>
  167. <ul>
  168. <li>recordingName: string - The name of the recording</li>
  169. </ul>
  170. <h3 id="Asterisk13RecordingsRESTAPI-ErrorResponses.4">Error Responses</h3>
  171. <ul>
  172. <li>404 - Recording not found</li>
  173. </ul>
  174. <p><span class="confluence-anchor-link" id="Asterisk13RecordingsRESTAPI-stop"></span></p>
  175. <h2 id="Asterisk13RecordingsRESTAPI-POST/recordings/live/{recordingName}/stop">POST /recordings/live/{recordingName}/stop</h2>
  176. <p>Stop a live recording and store it.</p>
  177. <h3 id="Asterisk13RecordingsRESTAPI-Pathparameters.5">Path parameters</h3>
  178. <ul>
  179. <li>recordingName: string - The name of the recording</li>
  180. </ul>
  181. <h3 id="Asterisk13RecordingsRESTAPI-ErrorResponses.5">Error Responses</h3>
  182. <ul>
  183. <li>404 - Recording not found</li>
  184. </ul>
  185. <p><span class="confluence-anchor-link" id="Asterisk13RecordingsRESTAPI-pause"></span></p>
  186. <h2 id="Asterisk13RecordingsRESTAPI-POST/recordings/live/{recordingName}/pause">POST /recordings/live/{recordingName}/pause</h2>
  187. <p>Pause a live recording. Pausing a recording suspends silence detection, which will be restarted when the recording is unpaused. Paused time is not included in the accounting for maxDurationSeconds.</p>
  188. <h3 id="Asterisk13RecordingsRESTAPI-Pathparameters.6">Path parameters</h3>
  189. <ul>
  190. <li>recordingName: string - The name of the recording</li>
  191. </ul>
  192. <h3 id="Asterisk13RecordingsRESTAPI-ErrorResponses.6">Error Responses</h3>
  193. <ul>
  194. <li>404 - Recording not found</li>
  195. <li>409 - Recording not in session</li>
  196. </ul>
  197. <p><span class="confluence-anchor-link" id="Asterisk13RecordingsRESTAPI-unpause"></span></p>
  198. <h2 id="Asterisk13RecordingsRESTAPI-DELETE/recordings/live/{recordingName}/pause">DELETE /recordings/live/{recordingName}/pause</h2>
  199. <p>Unpause a live recording.</p>
  200. <h3 id="Asterisk13RecordingsRESTAPI-Pathparameters.7">Path parameters</h3>
  201. <ul>
  202. <li>recordingName: string - The name of the recording</li>
  203. </ul>
  204. <h3 id="Asterisk13RecordingsRESTAPI-ErrorResponses.7">Error Responses</h3>
  205. <ul>
  206. <li>404 - Recording not found</li>
  207. <li>409 - Recording not in session</li>
  208. </ul>
  209. <p><span class="confluence-anchor-link" id="Asterisk13RecordingsRESTAPI-mute"></span></p>
  210. <h2 id="Asterisk13RecordingsRESTAPI-POST/recordings/live/{recordingName}/mute">POST /recordings/live/{recordingName}/mute</h2>
  211. <p>Mute a live recording. Muting a recording suspends silence detection, which will be restarted when the recording is unmuted.</p>
  212. <h3 id="Asterisk13RecordingsRESTAPI-Pathparameters.8">Path parameters</h3>
  213. <ul>
  214. <li>recordingName: string - The name of the recording</li>
  215. </ul>
  216. <h3 id="Asterisk13RecordingsRESTAPI-ErrorResponses.8">Error Responses</h3>
  217. <ul>
  218. <li>404 - Recording not found</li>
  219. <li>409 - Recording not in session</li>
  220. </ul>
  221. <p><span class="confluence-anchor-link" id="Asterisk13RecordingsRESTAPI-unmute"></span></p>
  222. <h2 id="Asterisk13RecordingsRESTAPI-DELETE/recordings/live/{recordingName}/mute">DELETE /recordings/live/{recordingName}/mute</h2>
  223. <p>Unmute a live recording.</p>
  224. <h3 id="Asterisk13RecordingsRESTAPI-Pathparameters.9">Path parameters</h3>
  225. <ul>
  226. <li>recordingName: string - The name of the recording</li>
  227. </ul>
  228. <h3 id="Asterisk13RecordingsRESTAPI-ErrorResponses.9">Error Responses</h3>
  229. <ul>
  230. <li>404 - Recording not found</li>
  231. <li>409 - Recording not in session</li>
  232. </ul>
  233. </div>
  234. </div> </div>
  235. <div id="footer">
  236. <section class="footer-body">
  237. <p>Document generated by Confluence on Aug 11, 2014 13:41</p>
  238. </section>
  239. </div>
  240. </div> </body>
  241. </html>