Update UPGRADE.txt file for Asterisk 12
[asterisk/asterisk.git] / UPGRADE-12.txt
1 ===========================================================
2 ===
3 === Information for upgrading between Asterisk versions
4 ===
5 === These files document all the changes that MUST be taken
6 === into account when upgrading between the Asterisk
7 === versions listed below. These changes may require that
8 === you modify your configuration files, dialplan or (in
9 === some cases) source code if you have your own Asterisk
10 === modules or patches. These files also include advance
11 === notice of any functionality that has been marked as
12 === 'deprecated' and may be removed in a future release,
13 === along with the suggested replacement functionality.
14 ===
15 === UPGRADE-1.2.txt -- Upgrade info for 1.0 to 1.2
16 === UPGRADE-1.4.txt -- Upgrade info for 1.2 to 1.4
17 === UPGRADE-1.6.txt -- Upgrade info for 1.4 to 1.6
18 === UPGRADE-1.8.txt -- Upgrade info for 1.6 to 1.8
19 === UPGRADE-10.txt  -- Upgrade info for 1.8 to 10
20 === UPGRADE-11.txt  -- Upgrade info for 10 to 11
21 ===
22 ===========================================================
23
24 There are many significant architectural changes in Asterisk 12. It is
25 recommended that you not only read through this document for important
26 changes that affect an upgrade, but that you also read through the CHANGES
27 document in depth to better understand the new options available to you.
28
29 Additional information on the architectural changes made in Asterisk can be
30 found on the Asterisk wiki (https://wiki.asterisk.org)
31
32 Of particular note, the following systems in Asterisk underwent significant
33 changes. Documentation for the changes and a specification for their
34 behavior in Asterisk 12 is also available on the Asterisk wiki.
35  - AMI: Many events were changed, and the semantics of channels and bridges
36         were defined. In particular, how channels and bridges behave under
37         transfer scenarios and situations involving multiple parties has
38         changed significantly. See https://wiki.asterisk.org/wiki/x/dAFRAQ
39         for more information.
40  - CDR: CDR logic was extracted from the many locations it existed in across
41         Asterisk and implemented as a consumer of Stasis message bus events.
42         As a result, consistency of records has improved significantly and the
43         behavior of CDRs in transfer scenarios has been defined in the CDR
44         specification. However, significant behavioral changes in CDRs resulted
45         from the transition. The most significant change is the addition of
46         CDR entries when a channel who is the Party A in a CDR leaves a bridge.
47         See https://wiki.asterisk.org/wiki/x/pwpRAQ for more information.
48  - CEL: Much like CDRs, CEL was removed from the many locations it existed in
49         across Asterisk and implemented as a consumer of Stasis message bus
50         events. It now closely follows the Bridging API model of channels and
51         bridges, and has a much closer consistency of conveyed events as AMI.
52         For the changes in events, see https://wiki.asterisk.org/wiki/x/4ICLAQ.
53
54 Build System:
55  - Removed the CHANNEL_TRACE development mode build option. Certain aspects of
56    the CHANNEL_TRACE build option were incompatible with the new bridging
57    architecture.
58
59  - Asterisk now depends on libjansson, libuuid and optionally (but recommended)
60    libxslt and uriparser.
61
62  - The new SIP stack and channel driver uses a particular version of PJSIP.
63    Please see https://wiki.asterisk.org/wiki/x/J4GLAQ for more information on
64    configuring and installing PJSIP for use with Asterisk.
65
66 AgentLogin and chan_agent:
67  - Along with AgentRequest, this application has been modified to be a
68    replacement for chan_agent. The chan_agent module and the Agent channel
69    driver have been removed from Asterisk, as the concept of a channel driver
70    proxying in front of another channel driver was incompatible with the new
71    architecture (and has had numerous problems through past versions of
72    Asterisk). The act of a channel calling the AgentLogin application places the
73    channel into a pool of agents that can be requested by the AgentRequest
74    application. Note that this application, as well as all other agent related
75    functionality, is now provided by the app_agent_pool module.
76
77  - This application no longer performs agent authentication. If authentication
78    is desired, the dialplan needs to perform this function using the
79    Authenticate or VMAuthenticate application or through an AGI script before
80    running AgentLogin.
81
82  - The agents.conf schema has changed. Rather than specifying agents on a
83    single line in comma delineated fashion, each agent is defined in a separate
84    context. This allows agents to use the power of context templates in their
85    definition.
86
87  - A number of parameters from agents.conf have been removed. This includes
88    maxloginretries, autologoffunavail, updatecdr, goodbye, group, recordformat,
89    urlprefix, and savecallsin. These options were obsoleted by the move from
90    a channel driver model to the bridging/application model provided by
91    app_agent_pool.
92
93  - The AGENTUPDATECDR channel variable has also been removed, for the same
94    reason as the updatecdr option.
95
96  - The endcall and enddtmf configuration options are removed.  Use the
97    dialplan function CHANNEL(dtmf-features) to set DTMF features on the agent
98    channel before calling AgentLogin.
99
100 AgentMonitorOutgoing
101  - This application has been removed. It was a holdover from when
102    AgentCallbackLogin was removed.
103
104 ControlPlayback
105  - The channel variable CPLAYBACKSTATUS may now return the value
106    'REMOTESTOPPED' when playback is stopped by an external entity.
107
108 DumpChan:
109  - The output of DumpChan no longer includes the DirectBridge or IndirectBridge
110    fields. Instead, if a channel is in a bridge, it includes a BridgeID field
111    containing the unique ID of the bridge that the channel happens to be in.
112
113 ForkCDR:
114  - Nearly every parameter in ForkCDR has been updated and changed to reflect
115    the changes in CDRs. Please see the documentation for the ForkCDR
116    application, as well as the CDR specification on the Asterisk wiki.
117
118 NoCDR:
119  - The NoCDR application has been deprecated. Please use the CDR_PROP function
120    to disable CDRs on a channel.
121
122 ParkAndAnnounce:
123  - The app_parkandannounce module has been removed. The application
124    ParkAndAnnounce is now provided by the res_parking module. See the
125    Parking changes for more information.
126
127 ResetCDR:
128  - The 'w' and 'a' options have been removed. Dispatching CDRs to registered
129    backends occurs on an as-needed basis in order to preserve linkedid
130    propagation and other needed behavior.
131  - The 'e' option is deprecated. Please use the CDR_PROP function to enable
132    CDRs on a channel that they were previously disabled on.
133  - The ResetCDR application is no longer a part of core Asterisk, and instead
134    is now delivered as part of app_cdr.
135
136 Queues:
137  - Queue strategy rrmemory now has a predictable order similar to strategy
138    rrordered. Members will be called in the order that they are added to the
139    queue.
140
141  - Removed the queues.conf check_state_unknown option.  It is no longer
142    necessary.
143
144  - It is now possible to play the Queue prompts to the first user waiting in a
145    call queue. Note that this may impact the ability for agents to talk with
146    users, as a prompt may still be playing when an agent connects to the user.
147    This ability is disabled by default but can be enabled on an individual
148    queue using the 'announce-to-first-user' option.
149
150  - The configuration options eventwhencalled and eventmemberstatus have been
151    removed.  As a result, the AMI events QueueMemberStatus, AgentCalled,
152    AgentConnect, AgentComplete, AgentDump, and AgentRingNoAnswer will always be
153    sent.  The "Variable" fields will also no longer exist on the Agent* events.
154    These events can be filtered out from a connected AMI client using the
155    eventfilter setting in manager.conf.
156
157  - The queue log now differentiates between blind and attended transfers. A
158    blind transfer will result in a BLINDTRANSFER message with the destination
159    context and extension. An attended transfer will result in an
160    ATTENDEDTRANSFER message. This message will indicate the method by which
161    the attended transfer was completed: "BRIDGE" for a bridge merge, "APP"
162    for running an application on a bridge or channel, or "LINK" for linking
163    two bridges together with local channels. The queue log will also now detect
164    externally initiated blind and attended transfers and record the transfer
165    status accordingly.
166
167  - When performing queue pause/unpause on an interface without specifying an
168    individual queue, the PAUSEALL/UNPAUSEALL event will only be logged if at
169    least one member of any queue exists for that interface.
170
171 SetAMAFlags
172  - This application is deprecated in favor of CHANNEL(amaflags).
173
174 VoiceMail:
175  - The voicemail.conf configuration file now has an 'alias' configuration
176    parameter for use with the Directory application. The voicemail realtime
177    database table schema has also been updated with an 'alias' column. Systems
178    using voicemail with realtime should update their schemas accordingly.
179
180 Channel Drivers:
181  - When a channel driver is configured to enable jiterbuffers, they are now
182    applied unconditionally when a channel joins a bridge. If a jitterbuffer
183    is already set for that channel when it enters, such as by the JITTERBUFFER
184    function, then the existing jitterbuffer will be used and the one set by
185    the channel driver will not be applied.
186
187 chan_bridge
188  - chan_bridge is removed and its functionality is incorporated into ConfBridge
189    itself.
190
191 chan_dahdi:
192  - Analog port dialing and deferred DTMF dialing for PRI now distinguishes
193    between 'w' and 'W'.  The 'w' pauses dialing for half a second.  The 'W'
194    pauses dialing for one second.
195
196  - The default for inband_on_proceeding has changed to no.
197
198  - The CLI command 'dahdi destroy channel' is now 'dahdi destroy channels'.
199    A range of channels can be specified to be destroyed. Note that this command
200    should only be used if you understand the risks it entails.
201
202 chan_local:
203  - The /b option has been removed.
204
205  - chan_local moved into the system core and is no longer a loadable module.
206
207 chan_sip:
208  - The 'callevents' parameter has been removed. Hold AMI events are now raised
209    in the core, and can be filtered out using the 'eventfilter' parameter
210    in manager.conf.
211
212  - Dynamic realtime tables for SIP Users can now include a 'path' field. This
213    will store the path information for that peer when it registers. Realtime
214    tables can also use the 'supportpath' field to enable Path header support.
215
216  - LDAP realtime configurations for SIP Users now have the AstAccountPathSupport
217    objectIdentifier. This maps to the supportpath option in sip.conf.
218
219 Core:
220  - Masquerades as an operation inside Asterisk have been effectively hidden
221    by the migration to the Bridging API. As such, many 'quirks' of Asterisk
222    no longer occur. This includes renaming of channels, "<ZOMBIE>" channels,
223    dropping of frame/audio hooks, and other internal implementation details
224    that users had to deal with. This fundamental change has large implications
225    throughout the changes documented for this version. For more information
226    about the new core architecture of Asterisk, please see the Asterisk wiki.
227
228  - The following channel variables have changed behavior which is described in
229    the CHANGES file: TRANSFER_CONTEXT, BRIDGEPEER, BRIDGEPVTCALLID,
230    ATTENDED_TRANSFER_COMPLETE_SOUND, DYNAMIC_FEATURENAME, and DYNAMIC_PEERNAME.
231
232 AMI (Asterisk Manager Interface):
233  - Version 1.4 - The details of what happens to a channel when a masquerade
234    happens (transfers, parking, etc) have changed.
235    - The Masquerade event now includes the Uniqueid's of the clone and original
236      channels.
237    - Channels no longer swap Uniqueid's as a result of the masquerade.
238    - Instead of a shell game of renames, there's now a single rename, appending
239      <ZOMBIE> to the name of the original channel.
240
241  - *Major* changes were made to both the syntax as well as the semantics of the
242    AMI protocol. In particular, AMI events have been substantially modified
243    and improved in this version of Asterisk. The major event changes are listed
244    below.
245    - NewPeerAccount has been removed. NewAccountCode is raised instead.
246    - Reload events have been consolidated and standardized.
247    - ModuleLoadReport has been removed.
248    - FaxSent is now SendFAX; FaxReceived is now ReceiveFAX. This standardizes
249      app_fax and res_fax events.
250    - MusicOnHold has been replaced with MusicOnHoldStart and MusicOnHoldStop.
251    - JabberEvent has been removed.
252    - Hold is now in the core and will now raise Hold and Unhold events.
253    - Join is now QueueCallerJoin.
254    - Leave is now QueueCallerLeave.
255    - Agentlogin/Agentlogoff is now AgentLogin/AgentLogoff, respectively.
256    - ChannelUpdate has been removed.
257    - Local channel optimization is now conveyed via LocalOptimizationBegin and
258      LocalOptimizationEnd.
259    - BridgeAction and BridgeExec have been removed.
260    - BlindTransfer and AttendedTransfer events were added.
261    - Dial is now DialBegin and DialEnd.
262    - DTMF is now DTMFBegin and DTMFEnd.
263    - Bridge has been replaced with BridgeCreate, BridgeEnter, BridgeLeave, and
264      BridgeDestroy
265    - MusicOnHold has been replaced with MusicOnHoldStart and MusicOnHoldStop
266    - AGIExec is now AGIExecStart and AGIExecEnd
267    - AsyncAGI is now AsyncAGIStart, AsyncAGIExec, and AsyncAGIEnd
268
269  - The 'MCID' AMI event now publishes a channel snapshot when available and
270    its non-channel-snapshot parameters now use either the "MCallerID" or
271    'MConnectedID' prefixes with Subaddr*, Name*, and Num* suffixes instead
272    of 'CallerID' and 'ConnectedID' to avoid confusion with similarly named
273    parameters in the channel snapshot.
274
275  - The 'Channel' key used in the 'AlarmClear', 'Alarm', and 'DNDState' has been
276    renamed "DAHDIChannel" since it does not convey an Asterisk channel name.
277
278  - All AMI events now contain a 'SystemName' field, if available.
279
280  - Local channel information in events is now prefixed with 'LocalOne' and
281    'LocalTwo'. This replaces the suffix of '1' and '2' for the two halves of
282    the Local channel. This affects the 'LocalBridge', 'LocalOptimizationBegin',
283    and 'LocalOptimizationEnd' events.
284
285  - The 'RTCPSent'/'RTCPReceived' events have been significantly modified from
286    previous versions. They now report all SR/RR packets sent/received, and
287    have been restructured to better reflect the data sent in a SR/RR. In
288    particular, the event structure now supports multiple report blocks.
289
290  - The deprecated use of | (pipe) as a separator in the channelvars setting in
291    manager.conf has been removed.
292
293  - The SIP SIPqualifypeer action now sends a response indicating it will qualify
294    a peer once a peer has been found to qualify.  Once the qualify has been
295    completed it will now issue a SIPqualifypeerdone event.
296
297  - The AMI event 'Newexten' field 'Extension' is deprecated, and may be removed
298    in a future release. Please use the common 'Exten' field instead.
299
300  - The AMI events 'ParkedCall', 'ParkedCallTimeOut', 'ParkedCallGiveUp', and
301    'UnParkedCall' have changed significantly in the new res_parking module.
302    - The 'Channel' and 'From' headers are gone. For the channel that was parked
303      or is coming out of parking, a 'Parkee' channel snapshot is issued and it
304      has a number of fields associated with it. The old 'Channel' header relayed
305      the same data as the new 'ParkeeChannel' header.
306    - The 'From' field was ambiguous and changed meaning depending on the event.
307      for most of these, it was the name of the channel that parked the call
308      (the 'Parker'). There is no longer a header that provides this channel name,
309      however the 'ParkerDialString' will contain a dialstring to redial the
310      device that parked the call.
311    - On UnParkedCall events, the 'From' header would instead represent the
312      channel responsible for retrieving the parkee. It receives a channel
313      snapshot labeled 'Retriever'. The 'from' field is is replaced with
314      'RetrieverChannel'.
315    - Lastly, the 'Exten' field has been replaced with 'ParkingSpace'.
316
317  - The AMI event 'Parkinglot' (response to 'Parkinglots' command) in a similar
318    fashion has changed the field names 'StartExten' and 'StopExten' to
319    'StartSpace' and 'StopSpace' respectively.
320
321  - The AMI 'Status' response event to the AMI Status action replaces the
322    'BridgedChannel' and 'BridgedUniqueid' headers with the 'BridgeID' header to
323    indicate what bridge the channel is currently in.
324
325 CDR (Call Detail Records)
326  - Significant changes have been made to the behavior of CDRs. The CDR engine
327    was effectively rewritten and built on the Stasis message bus. For a full
328    definition of CDR behavior in Asterisk 12, please read the specification
329    on the Asterisk wiki (wiki.asterisk.org).
330
331  - CDRs will now be created between all participants in a bridge. For each
332    pair of channels in a bridge, a CDR is created to represent the path of
333    communication between those two endpoints. This lets an end user choose who
334    to bill for what during bridge operations with multiple parties.
335
336  - The duration, billsec, start, answer, and end times now reflect the times
337    associated with the current CDR for the channel, as opposed to a cumulative
338    measurement of all CDRs for that channel.
339
340 CEL:
341  - The Uniqueid field for a channel is now a stable identifier, and will not
342    change due to transfers, parking, etc.
343
344  - CEL has undergone significant rework in Asterisk 12, and is now built on the
345    Stasis message bus. Please see the specification for CEL on the Asterisk
346    wiki at https://wiki.asterisk.org/wiki/x/4ICLAQ for more detailed
347    information. A summary of the affected events is below:
348    - BRIDGE_START, BRIDGE_END, BRIDGE_UPDATE, 3WAY_START, 3WAY_END, CONF_ENTER,
349      CONF_EXIT, CONF_START, and CONF_END events have all been removed. These
350      events have been replaced by BRIDGE_ENTER/BRIDGE_EXIT.
351    - BLINDTRANSFER/ATTENDEDTRANSFER events now report the peer as NULL and
352      additional information in the extra string field.
353
354 Dialplan:
355  - All channel and global variable names are evaluated in a case-sensitive
356    manner. In previous versions of Asterisk, variables created and evaluated in
357    the dialplan were evaluated case-insensitively, but built-in variables and
358    variable evaluation done internally within Asterisk was done
359    case-sensitively.
360
361  - Asterisk has always had code to ignore dash '-' characters that are not
362    part of a character set in the dialplan extensions.  The code now
363    consistently ignores these characters when matching dialplan extensions.
364
365  - BRIDGE_FEATURES channel variable is now casesensitive for feature letter
366    codes. Uppercase variants apply them to the calling party while lowercase
367    variants apply them to the called party.
368
369 Features:
370  - The features.conf [applicationmap] <FeatureName>  ActivatedBy option is
371    no longer honored.  The feature is always activated by the channel that has
372    DYNAMIC_FEATURES defined on it when it enters the bridge. Use predial to set
373    different values of DYNAMIC_FEATURES on the channels
374
375  - Executing a dynamic feature on the bridge peer in a multi-party bridge will
376    execute it on all peers of the activating channel.
377
378  - There is no longer an explicit 'features reload' CLI command. Features can
379    still be reloaded using 'module reload features'.
380
381  - It is no longer necessary (or possible) to define the ATXFER_NULL_TECH in
382    features.c for atxferdropcall=no to work properly. This option now just
383    works.
384
385 Parking:
386  - Parking has been extracted from the Asterisk core as a loadable module,
387    res_parking.
388
389  - Configuration is found in res_parking.conf. It is no longer supported in
390    features.conf
391
392  - The arguments for the Park, ParkedCall, and ParkAndAnnounce applications 
393    have been modified significantly. See the application documents for 
394    specific details.
395
396  - Numerous changes to Parking related applications, AMI and CLI commands and
397    internal inter-workings  have been made. Please read the CHANGES file for 
398    the detailed list.
399
400 Security Events Framework:
401  - Security Event timestamps now use ISO 8601 formatted date/time instead of
402    the "seconds-microseconds" format that it was using previously.
403
404 AGENT:
405  - The password option has been disabled, as the AgentLogin application no
406    longer provides authentication.
407
408 AUDIOHOOK_INHERIT:
409  - Due to changes in the Asterisk core, this function is no longer needed to
410    preserve a MixMonitor on a channel during transfer operations and dialplan
411    execution. It is effectively obsolete.
412
413 CDR: (function)
414  - The 'amaflags' and 'accountcode' attributes for the CDR function are
415    deprecated. Use the CHANNEL function instead to access these attributes.
416
417  - The 'l' option has been removed. When reading a CDR attribute, the most
418    recent record is always used. When writing a CDR attribute, all non-finalized
419    CDRs are updated.
420
421  - The 'r' option has been removed, for the same reason as the 'l' option.
422
423  - The 's' option has been removed, as LOCKED semantics no longer exist in the
424    CDR engine.
425
426 res_rtp_asterisk:
427  - ICE/STUN/TURN support in res_rtp_asterisk has been made optional. To enable
428    them, an Asterisk-specific version of PJSIP needs to be installed.
429    Tarballs are available from https://github.com/asterisk/pjproject/tags/.
430
431
432 ===========================================================
433 ===========================================================