Asterisk-13-ManagerEvent_VarSet_29395039.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Asterisk Project : Asterisk 13 ManagerEvent_VarSet</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-AMI-Events_29394281.html">Asterisk 13 AMI Events</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 ManagerEvent_VarSet
  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="Asterisk13ManagerEvent_VarSet-VarSet">VarSet</h1>
  37. <h3 id="Asterisk13ManagerEvent_VarSet-Synopsis">Synopsis</h3>
  38. <p>Raised when a variable local to the gosub stack frame is set due to a subroutine call.</p>
  39. <h3 id="Asterisk13ManagerEvent_VarSet-Description">Description</h3>
  40. <h3 id="Asterisk13ManagerEvent_VarSet-Syntax">Syntax</h3>
  41. <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  42. <pre>Event: VarSet
  43. Channel: &lt;value&gt;
  44. ChannelState: &lt;value&gt;
  45. ChannelStateDesc: &lt;value&gt;
  46. CallerIDNum: &lt;value&gt;
  47. CallerIDName: &lt;value&gt;
  48. ConnectedLineNum: &lt;value&gt;
  49. ConnectedLineName: &lt;value&gt;
  50. AccountCode: &lt;value&gt;
  51. Context: &lt;value&gt;
  52. Exten: &lt;value&gt;
  53. Priority: &lt;value&gt;
  54. Uniqueid: &lt;value&gt;
  55. Variable: &lt;value&gt;
  56. Value: &lt;value&gt;
  57. </pre>
  58. </div></div>
  59. <h5 id="Asterisk13ManagerEvent_VarSet-Arguments">Arguments</h5>
  60. <ul>
  61. <li><code>Channel</code></li>
  62. <li><code>ChannelState</code> - A numeric code for the channel's current state, related to ChannelStateDesc</li>
  63. <li><code>ChannelStateDesc</code>
  64. <ul>
  65. <li><code>Down</code></li>
  66. <li><code>Rsrvd</code></li>
  67. <li><code>OffHook</code></li>
  68. <li><code>Dialing</code></li>
  69. <li><code>Ring</code></li>
  70. <li><code>Ringing</code></li>
  71. <li><code>Up</code></li>
  72. <li><code>Busy</code></li>
  73. <li><code>Dialing Offhook</code></li>
  74. <li><code>Pre-ring</code></li>
  75. <li><code>Unknown</code></li>
  76. </ul>
  77. </li>
  78. <li><code>CallerIDNum</code></li>
  79. <li><code>CallerIDName</code></li>
  80. <li><code>ConnectedLineNum</code></li>
  81. <li><code>ConnectedLineName</code></li>
  82. <li><code>AccountCode</code></li>
  83. <li><code>Context</code></li>
  84. <li><code>Exten</code></li>
  85. <li><code>Priority</code></li>
  86. <li><code>Uniqueid</code></li>
  87. <li><code>Variable</code> - The LOCAL variable being set.
  88. <div class="aui-message hint shadowed information-macro">
  89. <p class="title">Note</p>
  90. <span class="aui-icon icon-hint">Icon</span>
  91. <div class="message-content">
  92. <p>The variable name will always be enclosed with <code>LOCAL()</code></p>
  93. </div>
  94. </div>
  95. </li>
  96. <li><code>Value</code> - The new value of the variable.</li>
  97. </ul>
  98. <h3 id="Asterisk13ManagerEvent_VarSet-Class">Class</h3>
  99. <p>DIALPLAN</p>
  100. <h3 id="Asterisk13ManagerEvent_VarSet-SeeAlso">See Also</h3>
  101. <ul>
  102. <li><a href="Asterisk-13-Application_Gosub_29394564.html">Asterisk 13 Application_GoSub</a></li>
  103. <li><a href="Asterisk-13-AGICommand_gosub_29394571.html">Asterisk 13 AGICommand_gosub</a></li>
  104. <li><a href="Asterisk-13-Function_LOCAL_29394568.html">Asterisk 13 Function_LOCAL</a></li>
  105. <li><a href="Asterisk-13-Function_LOCAL_PEEK_29394569.html">Asterisk 13 Function_LOCAL_PEEK</a></li>
  106. </ul>
  107. <h3 id="Asterisk13ManagerEvent_VarSet-Synopsis.1">Synopsis</h3>
  108. <p>Raised when a variable is shared between channels.</p>
  109. <h3 id="Asterisk13ManagerEvent_VarSet-Description.1">Description</h3>
  110. <h3 id="Asterisk13ManagerEvent_VarSet-Syntax.1">Syntax</h3>
  111. <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  112. <pre>Event: VarSet
  113. Channel: &lt;value&gt;
  114. ChannelState: &lt;value&gt;
  115. ChannelStateDesc: &lt;value&gt;
  116. CallerIDNum: &lt;value&gt;
  117. CallerIDName: &lt;value&gt;
  118. ConnectedLineNum: &lt;value&gt;
  119. ConnectedLineName: &lt;value&gt;
  120. AccountCode: &lt;value&gt;
  121. Context: &lt;value&gt;
  122. Exten: &lt;value&gt;
  123. Priority: &lt;value&gt;
  124. Uniqueid: &lt;value&gt;
  125. Variable: &lt;value&gt;
  126. Value: &lt;value&gt;
  127. </pre>
  128. </div></div>
  129. <h5 id="Asterisk13ManagerEvent_VarSet-Arguments.1">Arguments</h5>
  130. <ul>
  131. <li><code>Channel</code></li>
  132. <li><code>ChannelState</code> - A numeric code for the channel's current state, related to ChannelStateDesc</li>
  133. <li><code>ChannelStateDesc</code>
  134. <ul>
  135. <li><code>Down</code></li>
  136. <li><code>Rsrvd</code></li>
  137. <li><code>OffHook</code></li>
  138. <li><code>Dialing</code></li>
  139. <li><code>Ring</code></li>
  140. <li><code>Ringing</code></li>
  141. <li><code>Up</code></li>
  142. <li><code>Busy</code></li>
  143. <li><code>Dialing Offhook</code></li>
  144. <li><code>Pre-ring</code></li>
  145. <li><code>Unknown</code></li>
  146. </ul>
  147. </li>
  148. <li><code>CallerIDNum</code></li>
  149. <li><code>CallerIDName</code></li>
  150. <li><code>ConnectedLineNum</code></li>
  151. <li><code>ConnectedLineName</code></li>
  152. <li><code>AccountCode</code></li>
  153. <li><code>Context</code></li>
  154. <li><code>Exten</code></li>
  155. <li><code>Priority</code></li>
  156. <li><code>Uniqueid</code></li>
  157. <li><code>Variable</code> - The SHARED variable being set.
  158. <div class="aui-message hint shadowed information-macro">
  159. <p class="title">Note</p>
  160. <span class="aui-icon icon-hint">Icon</span>
  161. <div class="message-content">
  162. <p>The variable name will always be enclosed with <code>SHARED()</code></p>
  163. </div>
  164. </div>
  165. </li>
  166. <li><code>Value</code> - The new value of the variable.</li>
  167. </ul>
  168. <h3 id="Asterisk13ManagerEvent_VarSet-Class.1">Class</h3>
  169. <p>DIALPLAN</p>
  170. <h3 id="Asterisk13ManagerEvent_VarSet-SeeAlso.1">See Also</h3>
  171. <ul>
  172. <li><a href="Asterisk-13-Function_SHARED_29394662.html">Asterisk 13 Function_SHARED</a></li>
  173. </ul>
  174. <h3 id="Asterisk13ManagerEvent_VarSet-Synopsis.2">Synopsis</h3>
  175. <p>Raised when a variable is set to a particular value.</p>
  176. <h3 id="Asterisk13ManagerEvent_VarSet-Description.2">Description</h3>
  177. <h3 id="Asterisk13ManagerEvent_VarSet-Syntax.2">Syntax</h3>
  178. <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  179. <pre>Event: VarSet
  180. Channel: &lt;value&gt;
  181. ChannelState: &lt;value&gt;
  182. ChannelStateDesc: &lt;value&gt;
  183. CallerIDNum: &lt;value&gt;
  184. CallerIDName: &lt;value&gt;
  185. ConnectedLineNum: &lt;value&gt;
  186. ConnectedLineName: &lt;value&gt;
  187. AccountCode: &lt;value&gt;
  188. Context: &lt;value&gt;
  189. Exten: &lt;value&gt;
  190. Priority: &lt;value&gt;
  191. Uniqueid: &lt;value&gt;
  192. Variable: &lt;value&gt;
  193. Value: &lt;value&gt;
  194. </pre>
  195. </div></div>
  196. <h5 id="Asterisk13ManagerEvent_VarSet-Arguments.2">Arguments</h5>
  197. <ul>
  198. <li><code>Channel</code></li>
  199. <li><code>ChannelState</code> - A numeric code for the channel's current state, related to ChannelStateDesc</li>
  200. <li><code>ChannelStateDesc</code>
  201. <ul>
  202. <li><code>Down</code></li>
  203. <li><code>Rsrvd</code></li>
  204. <li><code>OffHook</code></li>
  205. <li><code>Dialing</code></li>
  206. <li><code>Ring</code></li>
  207. <li><code>Ringing</code></li>
  208. <li><code>Up</code></li>
  209. <li><code>Busy</code></li>
  210. <li><code>Dialing Offhook</code></li>
  211. <li><code>Pre-ring</code></li>
  212. <li><code>Unknown</code></li>
  213. </ul>
  214. </li>
  215. <li><code>CallerIDNum</code></li>
  216. <li><code>CallerIDName</code></li>
  217. <li><code>ConnectedLineNum</code></li>
  218. <li><code>ConnectedLineName</code></li>
  219. <li><code>AccountCode</code></li>
  220. <li><code>Context</code></li>
  221. <li><code>Exten</code></li>
  222. <li><code>Priority</code></li>
  223. <li><code>Uniqueid</code></li>
  224. <li><code>Variable</code> - The variable being set.</li>
  225. <li><code>Value</code> - The new value of the variable.</li>
  226. </ul>
  227. <h3 id="Asterisk13ManagerEvent_VarSet-Class.2">Class</h3>
  228. <p>DIALPLAN</p>
  229. <h3 id="Asterisk13ManagerEvent_VarSet-SeeAlso.2">See Also</h3>
  230. <h3 id="Asterisk13ManagerEvent_VarSet-ImportVersion">Import Version</h3>
  231. <p>This documentation was imported from Asterisk Version SVN-branch-13-r420538</p>
  232. </div>
  233. </div> </div>
  234. <div id="footer">
  235. <section class="footer-body">
  236. <p>Document generated by Confluence on Aug 11, 2014 13:40</p>
  237. </section>
  238. </div>
  239. </div> </body>
  240. </html>