Asterisk-13-Application_ExtenSpy_29394508.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Asterisk Project : Asterisk 13 Application_ExtenSpy</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_ExtenSpy
  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_ExtenSpy-ExtenSpy()">ExtenSpy()</h1>
  37. <h3 id="Asterisk13Application_ExtenSpy-Synopsis">Synopsis</h3>
  38. <p>Listen to a channel, and optionally whisper into it.</p>
  39. <h3 id="Asterisk13Application_ExtenSpy-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. Only channels created by outgoing calls for the specified extension will be selected for spying. If the optional context is not supplied, the current channel's context will be used.</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. <div class="aui-message hint shadowed information-macro">
  49. <p class="title">Note</p>
  50. <span class="aui-icon icon-hint">Icon</span>
  51. <div class="message-content">
  52. <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>
  53. </div>
  54. </div>
  55. <h3 id="Asterisk13Application_ExtenSpy-Syntax">Syntax</h3>
  56. <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  57. <pre>ExtenSpy(exten@[context],[options])</pre>
  58. </div></div>
  59. <h5 id="Asterisk13Application_ExtenSpy-Arguments">Arguments</h5>
  60. <ul>
  61. <li><code>exten</code>
  62. <ul>
  63. <li><code>exten</code> - Specify extension.</li>
  64. <li><code>context</code> - Optionally specify a context, defaults to <code>default</code>.</li>
  65. </ul>
  66. </li>
  67. <li><code>options</code>
  68. <ul>
  69. <li><code>b</code> - Only spy on channels involved in a bridged call.</li>
  70. <li><code>B</code> - Instead of whispering on a single channel barge in on both channels involved in the call.</li>
  71. <li><code>c</code>
  72. <ul>
  73. <li><code>digit</code> - Specify a DTMF digit that can be used to spy on the next available channel.</li>
  74. </ul>
  75. </li>
  76. <li><code>d</code> - Override the typical numeric DTMF functionality and instead use DTMF to switch between spy modes.
  77. <ul>
  78. <li><code>4</code> - spy mode</li>
  79. <li><code>5</code> - whisper mode</li>
  80. <li><code>6</code> - barge mode</li>
  81. </ul>
  82. </li>
  83. <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.
  84. <ul>
  85. <li><code>ext</code></li>
  86. </ul>
  87. </li>
  88. <li><code>E</code> - Exit when the spied-on channel hangs up.</li>
  89. <li><code>g</code>
  90. <ul>
  91. <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>
  92. </ul>
  93. </li>
  94. <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).
  95. <ul>
  96. <li><code>mailbox</code></li>
  97. <li><code>context</code></li>
  98. </ul>
  99. </li>
  100. <li><code>o</code> - Only listen to audio coming from this channel.</li>
  101. <li><code>q</code> - Don't play a beep when beginning to spy on a channel, or speak the selected channel name.</li>
  102. <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>.
  103. <ul>
  104. <li><code>basename</code></li>
  105. </ul>
  106. </li>
  107. <li><code>s</code> - Skip the playback of the channel type (i.e. SIP, IAX, etc) when speaking the selected channel name.</li>
  108. <li><code>S</code> - Stop when there are no more extensions left to spy on.</li>
  109. <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.
  110. <ul>
  111. <li><code>value</code></li>
  112. </ul>
  113. </li>
  114. <li><code>w</code> - Enable <code>whisper</code> mode, so the spying channel can talk to the spied-on channel.</li>
  115. <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>
  116. <li><code>x</code>
  117. <ul>
  118. <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>
  119. </ul>
  120. </li>
  121. <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>
  122. </ul>
  123. </li>
  124. </ul>
  125. <h3 id="Asterisk13Application_ExtenSpy-SeeAlso">See Also</h3>
  126. <ul>
  127. <li><a href="Asterisk-13-Application_ChanSpy_29394507.html">Asterisk 13 Application_ChanSpy</a></li>
  128. <li><a href="Asterisk-13-ManagerEvent_ChanSpyStart_29394984.html">Asterisk 13 ManagerEvent_ChanSpyStart</a></li>
  129. <li><a href="Asterisk-13-ManagerEvent_ChanSpyStop_29395049.html">Asterisk 13 ManagerEvent_ChanSpyStop</a></li>
  130. </ul>
  131. <h3 id="Asterisk13Application_ExtenSpy-ImportVersion">Import Version</h3>
  132. <p>This documentation was imported from Asterisk Version SVN-branch-13-r420538</p>
  133. </div>
  134. </div> </div>
  135. <div id="footer">
  136. <section class="footer-body">
  137. <p>Document generated by Confluence on Aug 11, 2014 13:44</p>
  138. </section>
  139. </div>
  140. </div> </body>
  141. </html>