manager_1_1.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. Changes to manager version 1.1:
  2. -------------------------------
  3. * SYNTAX CLEANUPS
  4. -----------------
  5. - Response: headers are now either
  6. "Success" - Action OK, this message contains response
  7. "Error" - Action failed, reason in Message: header
  8. "Follows" - Action OK, response follows in following Events.
  9. - Manager version changed to 1.1
  10. * CHANGED EVENTS AND ACTIONS
  11. ----------------------------
  12. - The Hold/Unhold events
  13. - Both are now "Hold" events
  14. For hold, there's a "Status: On" header, for unhold, status is off
  15. - Modules chan_sip/chan_iax2
  16. - The Ping Action
  17. - Now use Response: success
  18. - New header "Ping: pong" :-)
  19. - The Events action
  20. - Now use Response: Success
  21. - The new status is reported as "Events: On" or "Events: Off"
  22. - The JabberSend action
  23. - The Response: header is now the first header in the response
  24. - now sends "Response: Error" instead of "Failure"
  25. - Newstate and Newchannel events
  26. - these have changed headers
  27. "State" -> ChannelStateDesc Text based channel state
  28. -> ChannelState Numeric channel state
  29. - The events does not send "<unknown>" for unknown caller IDs just an empty field
  30. - Newchannel event
  31. - Now includes "AccountCode"
  32. - Newstate event
  33. - Now has "CalleridNum" for numeric caller id, like Newchannel
  34. - The event does not send "<unknown>" for unknown caller IDs just an empty field
  35. - Newexten and VarSet events
  36. - Now are part of the new Dialplan privilege class, instead of the Call class
  37. - Dial event
  38. - Event Dial has new headers, to comply with other events
  39. - Source -> Channel Channel name (caller)
  40. - SrcUniqueID -> UniqueID Uniqueid
  41. (new) -> Dialstring Dialstring in app data
  42. - Link and Unlink events
  43. - The "Link" and "Unlink" bridge events in channel.c are now renamed to "Bridge"
  44. - The link state is in the bridgestate: header as "Link" or "Unlink"
  45. - For channel.c bridges, "Bridgetype: core" is added. This opens up for
  46. bridge events in rtp.c
  47. - The RTP channel also reports Bridge: events with bridgetypes
  48. - rtp-native RTP native bridge
  49. - rtp-direct RTP peer-2-peer bridge (NAT support only)
  50. - rtp-remote Remote (re-invite) bridge. (Not reported yet)
  51. - The "Rename" manager event has a renamed header, to use the same
  52. terminology for the current channel as other events
  53. - Oldname -> Channel
  54. - The "NewCallerID" manager event has a renamed header
  55. - CallerID -> CallerIDnum
  56. - The event does not send "<unknown>" for unknown caller IDs just an empty field
  57. - Reload event
  58. - The "Reload" event sent at manager reload now has a new header and is now implemented
  59. in more modules than manager to alert a reload. For channels, there's a CHANNELRELOAD
  60. event to use.
  61. (new) -> Module: manager | CDR | DNSmgr | RTP | ENUM
  62. (new) -> Status: enabled | disabled
  63. - To support reload events from other modules too
  64. - cdr module added
  65. - Status action replies (Event: Status)
  66. Header changes
  67. - link -> BridgedChannel
  68. - Account -> AccountCode
  69. - (new) -> BridgedUniqueid
  70. - StatusComplete Event
  71. New header
  72. - (new) -> Items Number of channels reported
  73. - The ExtensionStatus manager command now has a "StatusDesc" field with text description of the state
  74. - The Registry and Peerstatus events in chan_sip and chan_iax now use "ChannelType" instead of "ChannelDriver"
  75. - The Response to Action: IAXpeers now have a Response: Success header
  76. - The MeetmeJoin now has caller ID name and Caller ID number fields (like MeetMeLeave)
  77. - Action DAHDIShowChannels
  78. Header changes
  79. - Channel: -> DAHDIChannel
  80. For active channels, the Channel: and Uniqueid: headers are added
  81. You can now add a "DAHDIChannel: " argument to DAHDIshowchannels actions
  82. to only get information about one channel.
  83. - Event DAHDIShowChannelsComplete
  84. New header
  85. - (new) -> Items: Reports number of channels reported
  86. - Action VoicemailUsersList
  87. Added new headers for SayEnvelope, SayCID, AttachMessage, CanReview
  88. and CallOperator voicemail configuration settings.
  89. - Action Originate
  90. Now requires the new Originate privilege.
  91. If you call out to a subshell in Originate with the Application parameter,
  92. you now also need the System privilege.
  93. - Action SIPshowpeer
  94. Response now includes the configured parkinglot
  95. * NEW ACTIONS
  96. -------------
  97. - Action: ModuleLoad
  98. Modules: loader.c
  99. Purpose:
  100. To be able to unload, reload and unload modules from AMI.
  101. Variables:
  102. ActionID: <id> Action ID for this transaction. Will be returned.
  103. Module: <name> Asterisk module name (including .so extension)
  104. or subsystem identifier:
  105. cdr, enum, dnsmgr, extconfig, manager, rtp, http
  106. LoadType: load | unload | reload
  107. The operation to be done on module
  108. If no module is specified for a reload loadtype, all modules are reloaded
  109. - Action: ModuleCheck
  110. Modules: loader.c
  111. Purpose:
  112. To check version of a module - if it's loaded
  113. Variables:
  114. ActionID: <id> Action ID for this transaction. Will be returned.
  115. Module: <name> Asterisk module name (not including extension)
  116. Returns:
  117. If module is loaded, returns version number of the module
  118. Note: This will have to change. I don't like sending Response: failure
  119. on both command not found (trying this command in earlier versions of
  120. Asterisk) and module not found.
  121. Also, check if other manager actions behave that way.
  122. - Action: QueueSummary
  123. Modules: app_queue
  124. Purpose:
  125. To request that the manager send a QueueSummary event (see the NEW EVENTS
  126. section for more details).
  127. Variables:
  128. ActionID: <id> Action ID for this transaction. Will be returned.
  129. Queue: <name> Queue for which the summary is desired
  130. - Action: QueuePenalty
  131. Modules: app_queue
  132. Purpose:
  133. To change the penalty of a queue member from AMI
  134. Variables:
  135. Interface: <tech/name> The interface of the member whose penalty you wish to change
  136. Penalty: <number> The new penalty for the member. Must be nonnegative.
  137. Queue: <name> If specified, only set the penalty for the member for this queue;
  138. Otherwise, set the penalty for the member in all queues to which
  139. he belongs.
  140. - Action: QueueRule
  141. Modules: app_queue
  142. Purpose:
  143. To list queue rules defined in queuerules.conf
  144. Variables:
  145. Rule: <name> The name of the rule whose contents you wish to list. If this variable
  146. is not present, all rules in queuerules.conf will be listed.
  147. - Action: Atxfer
  148. Modules: none
  149. Purpose:
  150. Initiate an attended transfer
  151. Variables:
  152. Channel: The transferer channel's name
  153. Exten: The extension to transfer to
  154. Priority: The priority to transfer to
  155. Context: The context to transfer to
  156. - Action: SipShowRegistry
  157. Modules: chan_sip
  158. Purpose:
  159. To request that the manager send a list of RegistryEntry events.
  160. Variables:
  161. ActionId: <id> Action ID for this transaction. Will be returned.
  162. * NEW EVENTS
  163. ------------
  164. - Event: FullyBooted
  165. Modules: loader.c
  166. Purpose:
  167. It is handy to have a single event notification for when all Asterisk
  168. modules have been loaded--especially for situations like running
  169. automated tests. This event will fire 1) immediately upon all modules
  170. loading or 2) upon connection to the AMI interface if the modules have
  171. already finished loading before the connection was made. This ensures
  172. that a user will never miss getting a FullyBooted event. In vary rare
  173. circumstances, it might be possible to get two copies of the message
  174. if the AMI connection is made right as the modules finish loading.
  175. Example:
  176. Event: FullyBooted
  177. Privilege: system,all
  178. Status: Fully Booted
  179. - Event: Transfer
  180. Modules: res_features, chan_sip
  181. Purpose:
  182. Inform about call transfer, linking transferer with transfer target
  183. You should be able to trace the call flow with this missing piece
  184. of information. If it works out well, the "Transfer" event should
  185. be followed by a "Bridge" event
  186. The transfermethod: header informs if this is a pbx core transfer
  187. or something done on channel driver level. For SIP, check the example:
  188. Example:
  189. Event: Transfer
  190. Privilege: call,all
  191. TransferMethod: SIP
  192. TransferType: Blind
  193. Channel: SIP/device1-01849800
  194. SIP-Callid: 091386f505842c87016c4d93195ec67d@127.0.0.1
  195. TargetChannel: SIP/device2-01841200
  196. TransferExten: 100
  197. TransferContext: default
  198. - Event: ChannelUpdate
  199. Modules: chan_sip.c, chan_iax2.c
  200. Purpose:
  201. Updates channel information with ID of PVT in channel driver, to
  202. be able to link events on channel driver level.
  203. * Integrated in SVN trunk as of May 4th, 2007
  204. Example:
  205. Event: ChannelUpdate
  206. Privilege: system,all
  207. Uniqueid: 1177271625.27
  208. Channel: SIP/olle-01843c00
  209. Channeltype: SIP
  210. SIPcallid: NTQzYWFiOWM4NmE0MWRkZjExMzU2YzQ3OWQwNzg3ZmI.
  211. SIPfullcontact: sip:olle@127.0.0.1:49054
  212. - Action: CoreSettings
  213. Modules: manager.c
  214. Purpose: To report core settings, like AMI and Asterisk version,
  215. maxcalls and maxload settings.
  216. * Integrated in SVN trunk as of May 4th, 2007
  217. Example:
  218. Response: Success
  219. ActionID: 1681692777
  220. AMIversion: 1.1
  221. AsteriskVersion: SVN-oej-moremanager-r61756M
  222. SystemName: EDVINA-node-a
  223. CoreMaxCalls: 120
  224. CoreMaxLoadAvg: 0.000000
  225. CoreRunUser: edvina
  226. CoreRunGroup: edvina
  227. - Action: CoreStatus
  228. Modules: manager.c
  229. Purpose: To report current PBX core status flags, like
  230. number of concurrent calls, startup and reload time.
  231. * Integrated in SVN trunk as of May 4th, 2007
  232. Example:
  233. Response: Success
  234. ActionID: 1649760492
  235. CoreStartupTime: 22:35:17
  236. CoreReloadTime: 22:35:17
  237. CoreCurrentCalls: 20
  238. - Event: NewAccountCode
  239. Modules: cdr.c
  240. Purpose: To report a change in account code for a live channel
  241. Example:
  242. Event: NewAccountCode
  243. Privilege: call,all
  244. Channel: SIP/olle-01844600
  245. Uniqueid: 1177530895.2
  246. AccountCode: Stinas account 1234848484
  247. OldAccountCode: OllesAccount 12345
  248. - Event: ModuleLoadReport
  249. Modules: loader.c
  250. Purpose: To report that module loading is complete. Some aggressive
  251. clients connect very quickly to AMI and needs to know when
  252. all manager events embedded in modules are loaded
  253. Also, if this does not happen, something is seriously wrong.
  254. This could happen to chan_sip and other modules using DNS.
  255. Example:
  256. Event: ModuleLoad
  257. ModuleLoadStatus: Done
  258. ModuleSelection: All
  259. ModuleCount: 24
  260. - Event: QueueSummary
  261. Modules: app_queue
  262. Purpose: To report a summary of queue information. This event is generated by
  263. issuing a QueueSummary AMI action.
  264. Example:
  265. Event: QueueSummary
  266. Queue: Sales
  267. LoggedIn: 12
  268. Available: 5
  269. Callers: 10
  270. HoldTime: 47
  271. If an actionID was specified for the QueueSummary action, it will be appended as the
  272. last line of the QueueSummary event.
  273. - Event: AgentRingNoAnswer
  274. Modules: app_queue
  275. Purpose: Reports when a queue member was rung but there was no answer.
  276. Example:
  277. Event: AgentRingNoAnswer
  278. Queue: Support
  279. Uniqueid: 1177530895.2
  280. Channel: SIP/1000-53aee458
  281. Member: SIP/1000
  282. MemberName: Thaddeus McClintock
  283. Ringtime: 10
  284. - Event: RegistryEntry
  285. Modules: chan_sip
  286. Purpose: Reports the state of the SIP registrations. This event is generated by
  287. issuing a QueueSummary AMI action.
  288. The RegistrationTime header is expressed as epoch.
  289. Example:
  290. Event: RegistryEntry
  291. Host: sip.myvoipprovider.com
  292. Port: 5060
  293. Username: guestuser
  294. Refresh: 105
  295. State: Registered
  296. RegistrationTime: 1219161830
  297. If an actionID was specified for the SipShowRegistry action, it will be appended as the
  298. last line of the RegistrationsComplete event.
  299. * TODO
  300. ------