| 
									
										
										
										
											2007-03-16 01:41:00 +00:00
										 |  |  | The Asterisk Manager TCP/IP API - AMI | 
					
						
							|  |  |  | ===================================== | 
					
						
							| 
									
										
										
										
											2002-07-12 10:35:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-01-22 21:41:19 +00:00
										 |  |  | The manager is a client/server model over TCP. With the manager interface, | 
					
						
							|  |  |  | you'll be able to control the PBX, originate calls, check mailbox status, | 
					
						
							|  |  |  | monitor channels and queues as well as execute Asterisk commands. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  | AMI is the standard management interface into your Asterisk server. | 
					
						
							|  |  |  | You configure AMI in manager.conf. By default, AMI is available on | 
					
						
							|  |  |  | TCP port 5038 if you enable it in manager.conf. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AMI receive commands, called "actions". These generate a "response" | 
					
						
							|  |  |  | from Asterisk. Asterisk will also send "Events" containing various | 
					
						
							|  |  |  | information messages about changes within Asterisk. Some actions | 
					
						
							|  |  |  | generate an initial response and data in the form list of events. | 
					
						
							|  |  |  | This format is created to make sure that extensive reports do not | 
					
						
							|  |  |  | block the manager interface fully. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-01-22 21:41:19 +00:00
										 |  |  | Management users are configured in the configuration file manager.conf and are  | 
					
						
							|  |  |  | given permissions for read and write, where write represents their ability  | 
					
						
							|  |  |  | to perform this class of "action", and read represents their ability to  | 
					
						
							|  |  |  | receive this class of "event". | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-16 01:41:00 +00:00
										 |  |  | The Asterisk manager interface in version 1.0.x of Asterisk is | 
					
						
							|  |  |  | not very well standardized. Work is under way to change this  | 
					
						
							|  |  |  | to Asterisk 1.2. If you develop AMI applications, treat the headers | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  | in Actions, Events and Responses as local to that particular | 
					
						
							|  |  |  | message. There is no cross-message standardization of headers. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | If you develop applications, please try to reuse existing manager | 
					
						
							|  |  |  | headers and their interpretation. If you are unsure, discuss on | 
					
						
							|  |  |  | the asterisk-dev mailing list. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-16 01:41:00 +00:00
										 |  |  | Device status reports | 
					
						
							|  |  |  | --------------------- | 
					
						
							| 
									
										
										
										
											2006-11-30 14:29:39 +00:00
										 |  |  | Manager subscribes to extension status reports from all channels, | 
					
						
							|  |  |  | to be able to generate events when an extension or device changes | 
					
						
							|  |  |  | state. The level of details in these events may depend on the channel | 
					
						
							|  |  |  | and device configuration. Please check each channel configuration | 
					
						
							|  |  |  | file for more information. (in sip.conf, check the section on | 
					
						
							|  |  |  | subscriptions and call limits) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-16 01:41:00 +00:00
										 |  |  | Command Syntax | 
					
						
							|  |  |  | -------------- | 
					
						
							| 
									
										
										
										
											2004-02-15 07:48:46 +00:00
										 |  |  | Management communication consists of tags of the form "header: value",  | 
					
						
							| 
									
										
										
										
											2007-03-16 01:41:00 +00:00
										 |  |  | terminated with an empty newline (\r\n) in the style of SMTP, HTTP, and | 
					
						
							| 
									
										
										
										
											2002-07-12 10:35:19 +00:00
										 |  |  | other headers. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-16 01:41:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-07-12 10:35:19 +00:00
										 |  |  | The first tag MUST be one of the following: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-16 01:41:00 +00:00
										 |  |  |     * Action: An action requested by the CLIENT to the Asterisk SERVER. Only one "Action" may be outstanding at any time. | 
					
						
							|  |  |  |     * Response: A response to an action from the Asterisk SERVER to the CLIENT. | 
					
						
							|  |  |  |     * Event: An event reported by the Asterisk SERVER to the CLIENT  | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Manager commands | 
					
						
							|  |  |  | ---------------- | 
					
						
							|  |  |  | Output from the CLI command 'show manager' command: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     * Ping: Ping | 
					
						
							|  |  |  |     * Logoff: Logoff Manager | 
					
						
							|  |  |  |     * Hangup: Hangup Channel | 
					
						
							|  |  |  |     * Status: Status | 
					
						
							|  |  |  |     * Redirect: Redirect | 
					
						
							|  |  |  |     * Originate: Originate Call | 
					
						
							|  |  |  |     * MailboxStatus: Check Mailbox | 
					
						
							|  |  |  |     * Command: Execute Command | 
					
						
							|  |  |  |     * ExtensionState: Check Extension Status | 
					
						
							|  |  |  |     * AbsoluteTimeout: Set Absolute Timeout | 
					
						
							|  |  |  |     * MailboxCount: Check Mailbox Message Count | 
					
						
							|  |  |  |     * Monitor: Monitor a channel | 
					
						
							|  |  |  |     * StopMonitor: Stop monitoring a channel | 
					
						
							|  |  |  |     * ChangeMonitor: Change monitoring filename of a channel | 
					
						
							|  |  |  |     * IAXpeers: List IAX Peers (Defaults to IAX2) | 
					
						
							|  |  |  |     * SIPpeers: List SIP peers | 
					
						
							|  |  |  |     * SIPshowpeer: Show data about one SIP peer | 
					
						
							|  |  |  |     * Queues: Queues | 
					
						
							|  |  |  |     * QueueStatus: Queue Status  | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | This list depends on the version of Asterisk you are using, as | 
					
						
							|  |  |  | well as which modules that are loaded. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Command Summary | 
					
						
							|  |  |  | -------------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Command: Command | 
					
						
							|  |  |  | Parameters: Command | 
					
						
							| 
									
										
										
										
											2004-01-22 21:41:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-16 01:41:00 +00:00
										 |  |  | Command: ExtensionState | 
					
						
							|  |  |  | Parameters: Exten, Context, ActionID | 
					
						
							| 
									
										
										
										
											2004-01-22 21:41:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-16 01:41:00 +00:00
										 |  |  | Command: Hangup | 
					
						
							|  |  |  | Parameters: Channel | 
					
						
							| 
									
										
										
										
											2004-01-22 21:41:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-16 01:41:00 +00:00
										 |  |  | Command: Logoff | 
					
						
							|  |  |  | Parameters: None | 
					
						
							| 
									
										
										
										
											2004-01-22 21:41:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-16 01:41:00 +00:00
										 |  |  | Command: MailboxCount | 
					
						
							|  |  |  | Parameters: Mailbox, ActionID | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Command: MailboxStatus | 
					
						
							|  |  |  | Parameters: Mailbox, ActionID | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Command: Originate | 
					
						
							|  |  |  | Parameters: Channel, Exten, Context, Priority, Timeout,  | 
					
						
							|  |  |  |    CallerID, Variable, Account, Application, Data, Async | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Command: Ping | 
					
						
							|  |  |  | Parameters: None | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Command: PlayDTMF | 
					
						
							|  |  |  | Parameters: Channel, Digit | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Command: Redirect | 
					
						
							|  |  |  | Parameters: Channel, ExtraChannel, Exten, Context, Priority | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Command: Timeout | 
					
						
							|  |  |  | Parameters: Channel, Timeout | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | You can always get more information about a manager command | 
					
						
							|  |  |  | with the "show manager command <command>" CLI command in Asterisk. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Examples | 
					
						
							|  |  |  | -------- | 
					
						
							| 
									
										
										
										
											2004-01-22 21:41:19 +00:00
										 |  |  | Login - Log a user into the manager interface. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |    Action: Login | 
					
						
							|  |  |  |    Username: testuser | 
					
						
							|  |  |  |    Secret: testsecret | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Originate - Originate a call from a channel to an extension. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |    Action: Originate | 
					
						
							|  |  |  |    Channel: sip/12345 | 
					
						
							|  |  |  |    Exten: 1234 | 
					
						
							|  |  |  |    Context: default | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-05-01 23:52:27 +00:00
										 |  |  | Originate - Originate a call from a channel to an extension without waiting | 
					
						
							|  |  |  | for call to complete. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |    Action: Originate | 
					
						
							|  |  |  |    Channel: sip/12345 | 
					
						
							|  |  |  |    Exten: 1234 | 
					
						
							|  |  |  |    Context: default | 
					
						
							|  |  |  |    Async: yes | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-01-22 21:41:19 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | Redirect with ExtraChannel: | 
					
						
							|  |  |  |   Attempted goal: | 
					
						
							|  |  |  |   Have a 'robot' program Redirect both ends of an already-connected call | 
					
						
							|  |  |  |   to a meetme room using the ExtraChannel feature through the management interface. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   Action: Redirect | 
					
						
							|  |  |  |   Channel: Zap/1-1 | 
					
						
							|  |  |  |   ExtraChannel: SIP/3064-7e00 (varies) | 
					
						
							|  |  |  |   Exten: 680 | 
					
						
							|  |  |  |   Priority: 1 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Where 680 is an extension that sends you to a MeetMe room. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | There are a number of GUI tools that use the manager interface, please search | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  | the mailing list archives and the documentation page on the  | 
					
						
							|  |  |  | http://www.asterisk.org web site for more information. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-16 01:41:00 +00:00
										 |  |  | Some standard AMI headers: | 
					
						
							|  |  |  | -------------------------- | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  Account: 			-- Account Code (Status) | 
					
						
							| 
									
										
										
										
											2005-04-13 01:52:11 +00:00
										 |  |  |  AccountCode:			-- Account Code (cdr_manager) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  ACL: <Y | N>			-- Does ACL exist for object ? | 
					
						
							|  |  |  |  Action: <action>		-- request or notification of a particular action | 
					
						
							|  |  |  |  Address-IP:			-- IPaddress  | 
					
						
							|  |  |  |  Address-Port:			-- IP port number | 
					
						
							|  |  |  |  Agent: <string>		-- Agent name | 
					
						
							| 
									
										
										
										
											2005-04-13 01:52:11 +00:00
										 |  |  |  AMAflags:			-- AMA flag (cdr_manager, sippeers) | 
					
						
							|  |  |  |  AnswerTime:			-- Time of answer (cdr_manager) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  Append: <bool>			-- CDR userfield Append flag | 
					
						
							|  |  |  |  Application:			-- Application to use | 
					
						
							|  |  |  |  Async:				-- Whether or not to use fast setup | 
					
						
							|  |  |  |  AuthType: 			-- Authentication type (for login or challenge) | 
					
						
							|  |  |  | 					"md5" | 
					
						
							| 
									
										
										
										
											2005-04-13 01:52:11 +00:00
										 |  |  |  BillableSeconds:		-- Billable seconds for call (cdr_manager) | 
					
						
							|  |  |  |  CallerID:			-- Caller id (name and number in Originate & cdr_manager) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  CallerID:			-- CallerID number | 
					
						
							|  |  |  | 				   Number or "<unknown>" or "unknown"  | 
					
						
							|  |  |  | 					(should change to "<unknown>" in app_queue) | 
					
						
							| 
									
										
										
										
											2005-06-21 23:10:29 +00:00
										 |  |  |  CallerID1:                     -- Channel 1 CallerID (Link event) | 
					
						
							|  |  |  |  CallerID2:                     -- Channel 2 CallerID (Link event) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  CallerIDName:			-- CallerID name | 
					
						
							|  |  |  | 				   Name or "<unknown>" or "unknown"  | 
					
						
							|  |  |  | 					(should change to "<unknown>" in app_queue) | 
					
						
							|  |  |  |  Callgroup:			-- Call group for peer/user | 
					
						
							|  |  |  |  CallsTaken: <num>		-- Queue status variable | 
					
						
							|  |  |  |  Cause: <value>			-- Event change cause - "Expired" | 
					
						
							|  |  |  |  Cause: <value>			-- Hangupcause (channel.c) | 
					
						
							|  |  |  |  CID-CallingPres:		-- Caller ID calling presentation | 
					
						
							|  |  |  |  Channel: <channel>		-- Channel specifier | 
					
						
							|  |  |  |  Channel: <dialstring>		-- Dialstring in Originate | 
					
						
							|  |  |  |  Channel: <tech/[peer/username]> -- Channel in Registry events (SIP, IAX2) | 
					
						
							|  |  |  |  Channel: <tech>		-- Technology (SIP/IAX2 etc) in Registry events | 
					
						
							|  |  |  |  ChannelType:			-- Tech: SIP, IAX2, ZAP, MGCP etc | 
					
						
							|  |  |  |  Channel1:			-- Link channel 1 | 
					
						
							|  |  |  |  Channel2:			-- Link channel 2 | 
					
						
							|  |  |  |  ChanObjectType:		-- "peer", "user" | 
					
						
							|  |  |  |  Codecs:			-- Codec list | 
					
						
							|  |  |  |  CodecOrder:			-- Codec order, separated with comma "," | 
					
						
							|  |  |  |  Command:			-- Cli command to run | 
					
						
							|  |  |  |  Context:			-- Context | 
					
						
							|  |  |  |  Count: <num>			-- Number of callers in queue | 
					
						
							|  |  |  |  Data:				-- Application data | 
					
						
							|  |  |  |  Default-addr-IP:		-- IP address to use before registration | 
					
						
							|  |  |  |  Default-Username:		-- Username part of URI to use before registration | 
					
						
							| 
									
										
										
										
											2005-04-13 01:52:11 +00:00
										 |  |  |  Destination:			-- Destination for call (Dialstring ) (dial, cdr_manager) | 
					
						
							|  |  |  |  DestinationContext:		-- Destination context (cdr_manager) | 
					
						
							|  |  |  |  DestinationChannel:		-- Destination channel (cdr_manager) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  DestUniqueID:			-- UniqueID of destination (dial event) | 
					
						
							| 
									
										
										
										
											2005-04-13 01:52:11 +00:00
										 |  |  |  Disposition:			-- Call disposition (CDR manager) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  Domain: <domain>		-- DNS domain | 
					
						
							| 
									
										
										
										
											2005-04-13 01:52:11 +00:00
										 |  |  |  Duration: <secs>		-- Duration of call (cdr_manager) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  Dynamic: <Y |  N>		-- Device registration supported? | 
					
						
							| 
									
										
										
										
											2005-04-13 01:52:11 +00:00
										 |  |  |  Endtime:			-- End time stamp of call (cdr_manager) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  EventList: <flag>		-- Flag being "Start", "End", "Cancelled" or "ListObject" | 
					
						
							|  |  |  |  Events: <eventmask>		-- Eventmask filter ("on", "off", "system", "call", "log") | 
					
						
							|  |  |  |  Exten:				-- Extension (Redirect command) | 
					
						
							|  |  |  |  Extension:			-- Extension (Status) | 
					
						
							|  |  |  |  Family: <string>		-- ASTdb key family | 
					
						
							|  |  |  |  File: <filename>		-- Filename (monitor) | 
					
						
							|  |  |  |  Format: <format>		-- Format of sound file (monitor) | 
					
						
							|  |  |  |  From: <time>			--  Parking time (ParkedCall event) | 
					
						
							|  |  |  |  Hint:				-- Extension hint | 
					
						
							|  |  |  |  Incominglimit:			-- SIP Peer incoming limit | 
					
						
							|  |  |  |  Key: | 
					
						
							|  |  |  |  Key:				-- ASTdb Database key | 
					
						
							| 
									
										
										
										
											2005-04-13 01:52:11 +00:00
										 |  |  |  LastApplication:		-- Last application executed (cdr_manager) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  LastCall: <num>		-- Last call in queue | 
					
						
							| 
									
										
										
										
											2005-04-13 01:52:11 +00:00
										 |  |  |  LastData:			-- Data for last application (cdr_manager) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  Link:				-- (Status) | 
					
						
							|  |  |  |  ListItems: <number>		-- Number of items in Eventlist (Optionally sent in "end" packet) | 
					
						
							|  |  |  |  Location:			-- Interface (whatever that is -maybe tech/name in app_queue ) | 
					
						
							|  |  |  |  Loginchan:			-- Login channel for agent | 
					
						
							|  |  |  |  Logintime: <number>		-- Login time for agent | 
					
						
							|  |  |  |  Mailbox:			-- VM Mailbox (id@vmcontext) (mailboxstatus, mailboxcount) | 
					
						
							|  |  |  |  MD5SecretExist: <Y | N>	-- Whether secret exists in MD5 format  | 
					
						
							|  |  |  |  Membership: <string>		-- "Dynamic" or "static" member in queue | 
					
						
							|  |  |  |  Message: <text>		-- Text message in ACKs, errors (explanation) | 
					
						
							|  |  |  |  Mix: <bool> 			-- Boolean parameter (monitor)  | 
					
						
							|  |  |  |  NewMessages: <count>	 	-- Count of new Mailbox messages (mailboxcount) | 
					
						
							|  |  |  |  Newname:		 | 
					
						
							|  |  |  |  ObjectName:			-- Name of object in list | 
					
						
							|  |  |  |  OldName:			-- Something in Rename (channel.c) | 
					
						
							|  |  |  |  OldMessages: <count>		-- Count of old mailbox messages (mailboxcount)	 | 
					
						
							|  |  |  |  Outgoinglimit:			-- SIP Peer outgoing limit | 
					
						
							|  |  |  |  Paused: <num>			-- Queue member paused status | 
					
						
							|  |  |  |  Peer: <tech/name>		-- "channel" specifier :-) | 
					
						
							|  |  |  |  PeerStatus: <tech/name>	-- Peer status code  | 
					
						
							| 
									
										
										
										
											2006-09-11 17:02:37 +00:00
										 |  |  | 					"Unregistered", "Registered", "Lagged", "Reachable" | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  Penalty: <num>			-- Queue penalty | 
					
						
							|  |  |  |  Priority:			-- Extension priority | 
					
						
							|  |  |  |  Privilege: <privilege>		-- AMI authorization class (system, call, log, verbose, command, agent, user) | 
					
						
							|  |  |  |  Pickupgroup:			-- Pickup group for peer | 
					
						
							|  |  |  |  Position: <num>		-- Position in Queue | 
					
						
							|  |  |  |  Queue:				-- Queue name | 
					
						
							|  |  |  |  Reason:			-- "Autologoff" | 
					
						
							| 
									
										
										
										
											2006-01-13 18:23:30 +00:00
										 |  |  |  Reason:			-- "Chanunavail" | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  Response: <response>		-- response code, like "200 OK" | 
					
						
							|  |  |  | 					"Success", "Error", "Follows" | 
					
						
							|  |  |  |  Restart:			-- "True", "False" | 
					
						
							|  |  |  |  RegExpire:			-- SIP registry expire | 
					
						
							|  |  |  |  RegExpiry:			-- SIP registry expiry | 
					
						
							|  |  |  |  Reason:			-- Originate reason code | 
					
						
							|  |  |  |  Seconds:			-- Seconds (Status) | 
					
						
							|  |  |  |  Secret: <password>		-- Authentication secret (for login) | 
					
						
							|  |  |  |  SecretExist: <Y | N>		-- Whether secret exists  | 
					
						
							|  |  |  |  Shutdown:			-- "Uncleanly", "Cleanly"  | 
					
						
							|  |  |  |  SIP-AuthInsecure: | 
					
						
							|  |  |  |  SIP-FromDomain:		-- Peer FromDomain | 
					
						
							|  |  |  |  SIP-FromUser:			-- Peer FromUser | 
					
						
							|  |  |  |  SIP-NatSupport: | 
					
						
							|  |  |  |  SIPLastMsg: | 
					
						
							| 
									
										
										
										
											2005-04-13 01:52:11 +00:00
										 |  |  |  Source:			-- Source of call (dial event, cdr_manager) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  SrcUniqueID:			-- UniqueID of source (dial event) | 
					
						
							| 
									
										
										
										
											2005-04-13 01:52:11 +00:00
										 |  |  |  StartTime: 			-- Start time of call (cdr_manager) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  State:				-- Channel state | 
					
						
							|  |  |  |  Status:			-- Registration status (Registry events SIP) | 
					
						
							|  |  |  |  Status:			-- Extension status (Extensionstate) | 
					
						
							|  |  |  |  Status:			-- Peer status (if monitored)  ** Will change name ** | 
					
						
							|  |  |  | 					"unknown", "lagged", "ok" | 
					
						
							|  |  |  |  Status: <num>			-- Queue Status | 
					
						
							| 
									
										
										
										
											2005-04-27 04:03:49 +00:00
										 |  |  |  Status:			-- DND status (DNDState) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  Time: <sec>			-- Roundtrip time (latency) | 
					
						
							|  |  |  |  Timeout:			-- Parking timeout time | 
					
						
							|  |  |  |  Timeout:			-- Timeout for call setup (Originate) | 
					
						
							| 
									
										
										
										
											2006-09-11 17:02:37 +00:00
										 |  |  |  Timeout: <seconds>		-- Timeout for call | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  Uniqueid:			-- Channel Unique ID | 
					
						
							|  |  |  |  Uniqueid1:			-- Channel 1 Unique ID (Link event) | 
					
						
							|  |  |  |  Uniqueid2:			-- Channel 2 Unique ID (Link event) | 
					
						
							|  |  |  |  User:				-- Username (SIP registry) | 
					
						
							| 
									
										
										
										
											2005-04-13 01:52:11 +00:00
										 |  |  |  UserField:			-- CDR userfield (cdr_manager) | 
					
						
							| 
									
										
										
										
											2005-04-04 23:47:47 +00:00
										 |  |  |  Val:				-- Value to set/read in ASTdb | 
					
						
							|  |  |  |  Variable:			-- Variable AND value to set (multiple separated with | in Originate) | 
					
						
							|  |  |  |  Variable: <name>		-- For channel variables | 
					
						
							|  |  |  |  Value: <value>			-- Value to set | 
					
						
							|  |  |  |  VoiceMailbox:			-- VM Mailbox in SIPpeers | 
					
						
							|  |  |  |  Waiting:			-- Count of mailbox messages (mailboxstatus) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  ** Please try to re-use existing headers to simplify manager message parsing in clients. | 
					
						
							| 
									
										
										
										
											2002-07-12 10:35:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-04 07:59:02 +00:00
										 |  |  | Read the CODING-GUIDELINES if you develop new manager commands or events. |