Asterisk-13-Application_Record_29394555.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Asterisk Project : Asterisk 13 Application_Record</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-Dialplan-Applications_29394285.html">Asterisk 13 Dialplan Applications</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 Application_Record
  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="Asterisk13Application_Record-Record()">Record()</h1>
  37. <h3 id="Asterisk13Application_Record-Synopsis">Synopsis</h3>
  38. <p>Record to a file.</p>
  39. <h3 id="Asterisk13Application_Record-Description">Description</h3>
  40. <p>If filename contains <code>%d</code>, these characters will be replaced with a number incremented by one each time the file is recorded. Use <code>core show file formats</code> to see the available formats on your system User can press <code>#</code> to terminate the recording and continue to the next priority. If the user hangs up during a recording, all data will be lost and the application will terminate.</p>
  41. <ul>
  42. <li><code>RECORDED_FILE</code> - Will be set to the final filename of the recording.</li>
  43. <li><code>RECORD_STATUS</code> - This is the final status of the command
  44. <ul>
  45. <li>DTMF - A terminating DTMF was received ('#' or '*', depending upon option 't')</li>
  46. <li>SILENCE - The maximum silence occurred in the recording.</li>
  47. <li>SKIP - The line was not yet answered and the 's' option was specified.</li>
  48. <li>TIMEOUT - The maximum length was reached.</li>
  49. <li>HANGUP - The channel was hung up.</li>
  50. <li>ERROR - An unrecoverable error occurred, which resulted in a WARNING to the logs.</li>
  51. </ul>
  52. </li>
  53. </ul>
  54. <h3 id="Asterisk13Application_Record-Syntax">Syntax</h3>
  55. <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  56. <pre>Record(filename.format,[silence,[maxduration,[options]]])</pre>
  57. </div></div>
  58. <h5 id="Asterisk13Application_Record-Arguments">Arguments</h5>
  59. <ul>
  60. <li><code>filename</code>
  61. <ul>
  62. <li><code>filename</code></li>
  63. <li><code>format</code> - Is the format of the file type to be recorded (wav, gsm, etc).</li>
  64. </ul>
  65. </li>
  66. <li><code>silence</code> - Is the number of seconds of silence to allow before returning.</li>
  67. <li><code>maxduration</code> - Is the maximum recording duration in seconds. If missing or 0 there is no maximum.</li>
  68. <li><code>options</code>
  69. <ul>
  70. <li><code>a</code> - Append to existing recording rather than replacing.</li>
  71. <li><code>n</code> - Do not answer, but record anyway if line not yet answered.</li>
  72. <li><code>o</code> - Exit when 0 is pressed, setting the variable <code>RECORD_STATUS</code> to <code>OPERATOR</code> instead of <code>DTMF</code></li>
  73. <li><code>q</code> - quiet (do not play a beep tone).</li>
  74. <li><code>s</code> - skip recording if the line is not yet answered.</li>
  75. <li><code>t</code> - use alternate '*' terminator key (DTMF) instead of default '#'</li>
  76. <li><code>x</code> - Ignore all terminator keys (DTMF) and keep recording until hangup.</li>
  77. <li><code>k</code> - Keep recorded file upon hangup.</li>
  78. <li><code>y</code> - Terminate recording if <strong>any</strong> DTMF digit is received.</li>
  79. </ul>
  80. </li>
  81. </ul>
  82. <h3 id="Asterisk13Application_Record-SeeAlso">See Also</h3>
  83. <h3 id="Asterisk13Application_Record-ImportVersion">Import Version</h3>
  84. <p>This documentation was imported from Asterisk Version SVN-branch-13-r420538</p>
  85. </div>
  86. </div> </div>
  87. <div id="footer">
  88. <section class="footer-body">
  89. <p>Document generated by Confluence on Aug 11, 2014 13:45</p>
  90. </section>
  91. </div>
  92. </div> </body>
  93. </html>