Asterisk-13-Application_ChanSpy_29394507.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Asterisk Project : Asterisk 13 Application_ChanSpy</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_ChanSpy
  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_ChanSpy-ChanSpy()">ChanSpy()</h1>
  37. <h3 id="Asterisk13Application_ChanSpy-Synopsis">Synopsis</h3>
  38. <p>Listen to a channel, and optionally whisper into it.</p>
  39. <h3 id="Asterisk13Application_ChanSpy-Description">Description</h3>
  40. <p>This application is used to listen to the audio from an Asterisk channel. This includes the audio coming in and out of the channel being spied on. If the <code>chanprefix</code> parameter is specified, only channels beginning with this string will be spied upon.</p>
  41. <p>While spying, the following actions may be performed:</p>
  42. <ul class="alternate">
  43. <li>Dialing <code>#</code> cycles the volume level.</li>
  44. </ul>
  45. <ul class="alternate">
  46. <li>Dialing <code>*</code> will stop spying and look for another channel to spy on.</li>
  47. </ul>
  48. <ul class="alternate">
  49. <li>Dialing a series of digits followed by <code>#</code> builds a channel name to append to <code>chanprefix</code>. For example, executing ChanSpy(Agent) and then dialing the digits '1234#' while spying will begin spying on the channel 'Agent/1234'. Note that this feature will be overridden if the 'd' or 'u' options are used.</li>
  50. </ul>
  51. <div class="aui-message hint shadowed information-macro">
  52. <p class="title">Note</p>
  53. <span class="aui-icon icon-hint">Icon</span>
  54. <div class="message-content">
  55. <p>The <em>X</em> option supersedes the three features above in that if a valid single digit extension exists in the correct context ChanSpy will exit to it. This also disables choosing a channel based on <code>chanprefix</code> and a digit sequence.</p>
  56. </div>
  57. </div>
  58. <h3 id="Asterisk13Application_ChanSpy-Syntax">Syntax</h3>
  59. <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  60. <pre>ChanSpy([chanprefix,[options]])</pre>
  61. </div></div>
  62. <h5 id="Asterisk13Application_ChanSpy-Arguments">Arguments</h5>
  63. <ul>
  64. <li><code>chanprefix</code></li>
  65. <li><code>options</code>
  66. <ul>
  67. <li><code>b</code> - Only spy on channels involved in a bridged call.</li>
  68. <li><code>B</code> - Instead of whispering on a single channel barge in on both channels involved in the call.</li>
  69. <li><code>c</code>
  70. <ul>
  71. <li><code>digit</code> - Specify a DTMF digit that can be used to spy on the next available channel.</li>
  72. </ul>
  73. </li>
  74. <li><code>d</code> - Override the typical numeric DTMF functionality and instead use DTMF to switch between spy modes.
  75. <ul>
  76. <li><code>4</code> - spy mode</li>
  77. <li><code>5</code> - whisper mode</li>
  78. <li><code>6</code> - barge mode</li>
  79. </ul>
  80. </li>
  81. <li><code>e</code> - Enable <strong>enforced</strong> mode, so the spying channel can only monitor extensions whose name is in the <em>ext</em> : delimited list.
  82. <ul>
  83. <li><code>ext</code></li>
  84. </ul>
  85. </li>
  86. <li><code>E</code> - Exit when the spied-on channel hangs up.</li>
  87. <li><code>g</code>
  88. <ul>
  89. <li><code>grp</code> - Only spy on channels in which one or more of the groups listed in <em>grp</em> matches one or more groups from the <code>SPYGROUP</code> variable set on the channel to be spied upon.</li>
  90. </ul>
  91. </li>
  92. <li><code>n</code> - Say the name of the person being spied on if that person has recorded his/her name. If a context is specified, then that voicemail context will be searched when retrieving the name, otherwise the <code>default</code> context be used when searching for the name (i.e. if SIP/1000 is the channel being spied on and no mailbox is specified, then <code>1000</code> will be used when searching for the name).
  93. <ul>
  94. <li><code>mailbox</code></li>
  95. <li><code>context</code></li>
  96. </ul>
  97. </li>
  98. <li><code>o</code> - Only listen to audio coming from this channel.</li>
  99. <li><code>q</code> - Don't play a beep when beginning to spy on a channel, or speak the selected channel name.</li>
  100. <li><code>r</code> - Record the session to the monitor spool directory. An optional base for the filename may be specified. The default is <code>chanspy</code>.
  101. <ul>
  102. <li><code>basename</code></li>
  103. </ul>
  104. </li>
  105. <li><code>s</code> - Skip the playback of the channel type (i.e. SIP, IAX, etc) when speaking the selected channel name.</li>
  106. <li><code>S</code> - Stop when no more channels are left to spy on.</li>
  107. <li><code>u</code> - The <code>chanprefix</code> parameter is a channel uniqueid or fully specified channel name.</li>
  108. <li><code>v</code> - Adjust the initial volume in the range from <code>-4</code> to <code>4</code>. A negative value refers to a quieter setting.
  109. <ul>
  110. <li><code>value</code></li>
  111. </ul>
  112. </li>
  113. <li><code>w</code> - Enable <code>whisper</code> mode, so the spying channel can talk to the spied-on channel.</li>
  114. <li><code>W</code> - Enable <code>private whisper</code> mode, so the spying channel can talk to the spied-on channel but cannot listen to that channel.</li>
  115. <li><code>x</code>
  116. <ul>
  117. <li><code>digit</code> - Specify a DTMF digit that can be used to exit the application while actively spying on a channel. If there is no channel being spied on, the DTMF digit will be ignored.</li>
  118. </ul>
  119. </li>
  120. <li><code>X</code> - Allow the user to exit ChanSpy to a valid single digit numeric extension in the current context or the context specified by the <code>SPY_EXIT_CONTEXT</code> channel variable. The name of the last channel that was spied on will be stored in the <code>SPY_CHANNEL</code> variable.</li>
  121. </ul>
  122. </li>
  123. </ul>
  124. <h3 id="Asterisk13Application_ChanSpy-SeeAlso">See Also</h3>
  125. <ul>
  126. <li><a href="Asterisk-13-Application_ExtenSpy_29394508.html">Asterisk 13 Application_ExtenSpy</a></li>
  127. <li><a href="Asterisk-13-ManagerEvent_ChanSpyStart_29394984.html">Asterisk 13 ManagerEvent_ChanSpyStart</a></li>
  128. <li><a href="Asterisk-13-ManagerEvent_ChanSpyStop_29395049.html">Asterisk 13 ManagerEvent_ChanSpyStop</a></li>
  129. </ul>
  130. <h3 id="Asterisk13Application_ChanSpy-ImportVersion">Import Version</h3>
  131. <p>This documentation was imported from Asterisk Version SVN-branch-13-r420538</p>
  132. </div>
  133. </div> </div>
  134. <div id="footer">
  135. <section class="footer-body">
  136. <p>Document generated by Confluence on Aug 11, 2014 13:44</p>
  137. </section>
  138. </div>
  139. </div> </body>
  140. </html>