UPGRADE.txt 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  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. === UPGRADE-12.txt -- Upgrade info for 11 to 12
  22. ===========================================================
  23. From 13.2.0 to 13.3.0:
  24. chan_dahdi:
  25. - For users using the FXO port (FXS signaling) distinctive ring detection
  26. feature, you will need to adjust the dringX count values. The count
  27. values now only record ring end events instead of any DAHDI event. A
  28. ring-ring-ring pattern would exceed the pattern limits and stop
  29. Caller-ID detection.
  30. From 13.1.0 to 13.2.0:
  31. ARI:
  32. - The version of ARI has been bumped to 1.7.0 to account for backwards
  33. compatible features included with this release. See CHANGES for more
  34. information.
  35. AMI:
  36. - The version of AMI has been bumped to 2.7.0 to account for backwards
  37. compatible features included with this release. See CHANGES for more
  38. information.
  39. chan_dahdi:
  40. - The CALLERID(ani2) value for incoming calls is now populated in featdmf
  41. signaling mode. The information was previously discarded.
  42. chan_iax2:
  43. - The iax.conf forcejitterbuffer option has been removed. It is now always
  44. forced if you set iax.conf jitterbuffer=yes. If you put a jitter buffer
  45. on a channel it will be on the channel.
  46. From 13.0.0 to 13.1.0:
  47. ARI:
  48. - The version of ARI has been bumped to 1.6.0 to account for backwards
  49. compatible features included with this release. See CHANGES for more
  50. information.
  51. AMI:
  52. - The version of AMI has been bumped to 2.6.0 to account for backwards
  53. compatible features included with this release. See CHANGES for more
  54. information.
  55. Core:
  56. - The core of Asterisk uses a message bus called "Stasis" to distribute
  57. information to internal components. For performance reasons, the message
  58. distribution was modified to make use of a thread pool instead of a
  59. dedicated thread per consumer in certain cases. The initial settings for
  60. the thread pool can now be configured in 'stasis.conf'.
  61. PJSIP:
  62. - Added the pjsip.conf system type disable_tcp_switch option. The option
  63. allows the user to disable switching from UDP to TCP transports described
  64. by RFC 3261 section 18.1.1.
  65. From 12 to 13:
  66. General Asterisk Changes:
  67. - The asterisk command line -I option and the asterisk.conf internal_timing
  68. option are removed and always enabled if any timing module is loaded.
  69. - The per console verbose level feature as previously implemented caused a
  70. large performance penalty. The fix required some minor incompatibilities
  71. if the new rasterisk is used to connect to an earlier version. If the new
  72. rasterisk connects to an older Asterisk version then the root console verbose
  73. level is always affected by the "core set verbose" command of the remote
  74. console even though it may appear to only affect the current console. If
  75. an older version of rasterisk connects to the new version then the
  76. "core set verbose" command will have no effect.
  77. - The asterisk compatibility options in asterisk.conf have been removed.
  78. These options enabled certain backwards compatibility features for
  79. pbx_realtime, res_agi, and app_set that made their behaviour similar to
  80. Asterisk 1.4. Users who used these backwards compatibility settings should
  81. update their dialplans to use ',' instead of '|' as a delimiter, and should
  82. use the Set dialplan application instead of the MSet dialplan application.
  83. Build System:
  84. - Sample config files have been moved from configs/ to a subfolder of that
  85. directory, 'samples'.
  86. - The menuselect utility has been pulled into the Asterisk repository. As a
  87. result, the libxml2 development library is now a required dependency for
  88. Asterisk.
  89. - Added a new Compiler Flag, REF_DEBUG. When enabled, reference counted
  90. objects will emit additional debug information to the refs log file located
  91. in the standard Asterisk log file directory. This log file is useful in
  92. tracking down object leaks and other reference counting issues. Prior to
  93. this version, this option was only available by modifying the source code
  94. directly. This change also includes a new script, refcounter.py, in the
  95. contrib folder that will process the refs log file.
  96. Applications:
  97. ConfBridge:
  98. - The sound_place_into_conference sound used in Confbridge is now deprecated
  99. and is no longer functional since it has been broken since its inception
  100. and the fix involved using a different method to achieve the same goal. The
  101. new method to achieve this functionality is by using sound_begin to play
  102. a sound to the conference when waitmarked users are moved into the conference.
  103. - Added 'Admin' header to ConfbridgeJoin, ConfbridgeLeave, ConfbridgeMute,
  104. ConfbridgeUnmute, and ConfbridgeTalking AMI events.
  105. ControlPlayback:
  106. - The ControlPlayback and 'control stream file' AGI command will no longer
  107. implicitly answer the channel. If you do not answer the channel prior to
  108. using either this application or AGI command, you must send Progress
  109. first.
  110. Queue:
  111. - Queue rules provided in queuerules.conf can no longer be named "general".
  112. SetMusicOnHold:
  113. - The SetMusicOnHold dialplan application was deprecated and has been removed.
  114. Users of the application should use the CHANNEL function's musicclass
  115. setting instead.
  116. WaitMusicOnHold:
  117. - The WaitMusicOnHold dialplan application was deprecated and has been
  118. removed. Users of the application should use MusicOnHold with a duration
  119. parameter instead.
  120. CDR Backends:
  121. - The cdr_sqlite module was deprecated and has been removed. Users of this
  122. module should use the cdr_sqlite3_custom module instead.
  123. Channel Drivers:
  124. chan_dahdi:
  125. - SS7 support now requires libss7 v2.0 or later.
  126. - Added the inband_on_setup_ack compatibility option to chan_dahdi.conf to
  127. deal with switches that don't send an inband progress indication in the
  128. SETUP ACKNOWLEDGE message.
  129. Default is now no.
  130. chan_gtalk
  131. - This module was deprecated and has been removed. Users of chan_gtalk
  132. should use chan_motif.
  133. chan_h323
  134. - This module was deprecated and has been removed. Users of chan_h323
  135. should use chan_ooh323.
  136. chan_jingle
  137. - This module was deprecated and has been removed. Users of chan_jingle
  138. should use chan_motif.
  139. chan_pjsip:
  140. - Added a 'force_avp' option to chan_pjsip which will force the usage of
  141. 'RTP/AVP', 'RTP/AVPF', 'RTP/SAVP', or 'RTP/SAVPF' as the media transport type
  142. in SDP offers depending on settings, even when DTLS is used for media
  143. encryption.
  144. - Added a 'media_use_received_transport' option to chan_pjsip which will
  145. cause the SDP answer to use the media transport as received in the SDP
  146. offer.
  147. chan_sip:
  148. - Made set SIPREFERREDBYHDR as inheritable for better chan_pjsip
  149. interoperability.
  150. - The SIPPEER dialplan function no longer supports using a colon as a
  151. delimiter for parameters. The parameters for the function should be
  152. delimited using a comma.
  153. - The SIPCHANINFO dialplan function was deprecated and has been removed. Users
  154. of the function should use the CHANNEL function instead.
  155. - Added a 'force_avp' option for chan_sip. When enabled this option will
  156. cause the media transport in the offer or answer SDP to be 'RTP/AVP',
  157. 'RTP/AVPF', 'RTP/SAVP', or 'RTP/SAVPF' even if a DTLS stream has been
  158. configured. This option can be set to improve interoperability with WebRTC
  159. clients that don't use the RFC defined transport for DTLS.
  160. - The 'dtlsverify' option in chan_sip now has additional values besides
  161. 'yes' and 'no'. If 'yes' is specified both the certificate and fingerprint
  162. will be verified. If 'no' is specified then neither the certificate or
  163. fingerprint is verified. If 'certificate' is specified then only the
  164. certificate is verified. If 'fingerprint' is specified then only the
  165. fingerprint is verified.
  166. - A 'dtlsfingerprint' option has been added to chan_sip which allows the
  167. hash to be specified for the DTLS fingerprint placed in SDP. Supported
  168. values are 'sha-1' and 'sha-256' with 'sha-256' being the default.
  169. - The 'progressinband=never' option is now more zealous in the persecution of
  170. progress messages coming from Asterisk. Channels bridged with a SIP channel
  171. that has 'progressinband=never' set will not be able to forward their
  172. progress indications through to the SIP device. chan_sip will now turn such
  173. progress indications into a 180 Ringing (if a 180 has not yet been
  174. transmitted) if 'progressinband=never'.
  175. - The codec preference order in an SDP during an offer is slightly different
  176. than previous releases. Prior to Asterisk 13, the preference order of
  177. codecs used to be:
  178. (1) Our preferred codec
  179. (2) Our configured codecs
  180. (3) Any non-audio joint codecs
  181. One of the ways the new media format architecture in Asterisk 13 improves
  182. performance is by reference counting formats, such that they can be reused
  183. in many places without additional allocation. To not require a large
  184. amount of locking, an instance of a format is immutable by convention.
  185. This works well except for formats with attributes. Since a media format
  186. with an attribute is a different object than the same format without an
  187. attribute, we have to carry over the formats with attributes from an
  188. inbound offer so that the correct attributes are offered in an outgoing
  189. INVITE request. This requires some subtle tweaks to the preference order
  190. to ensure that the media format with attributes is offered to a remote
  191. peer, as opposed to the same media format (but without attributes) that
  192. may be stored in the peer object.
  193. All of this means that our offer offer list will now be:
  194. (1) Our preferred codec
  195. (2) Any joint codecs offered by the inbound offer
  196. (3) All other codecs that are not the preferred codec and not a joint
  197. codec offered by the inbound offer
  198. chan_unistim:
  199. - The unistim.conf 'dateformat' has changed meaning of options values to conform
  200. values used inside Unistim protocol
  201. - Added 'dtmf_duration' option with changing default operation to disable
  202. receivied dtmf playback on unistim phone
  203. Core:
  204. Account Codes:
  205. - accountcode behavior changed somewhat to add functional peeraccount
  206. support. The main change is that local channels now cross accountcode
  207. and peeraccount across the special bridge between the ;1 and ;2 channels
  208. just like channels between normal bridges. See the CHANGES file for
  209. more information.
  210. ARI:
  211. - The ARI version has been changed to 1.5.0. This is to reflect backwards
  212. compatible changes made since 12.0.0 was released.
  213. - Added a new ARI resource 'mailboxes' which allows the creation and
  214. modification of mailboxes managed by external MWI. Modules res_mwi_external
  215. and res_stasis_mailbox must be enabled to use this resource.
  216. - Added new events for externally initiated transfers. The event
  217. BridgeBlindTransfer is now raised when a channel initiates a blind transfer
  218. of a bridge in the ARI controlled application to the dialplan; the
  219. BridgeAttendedTransfer event is raised when a channel initiates an
  220. attended transfer of a bridge in the ARI controlled application to the
  221. dialplan.
  222. - Channel variables may now be specified as a body parameter to the
  223. POST /channels operation. The 'variables' key in the JSON is interpreted
  224. as a sequence of key/value pairs that will be added to the created channel
  225. as channel variables. Other parameters in the JSON body are treated as
  226. query parameters of the same name.
  227. - A bug fix in bridge creation has caused a behavioural change in how
  228. subscriptions are created for bridges. A bridge created through ARI, does
  229. not, by itself, have a subscription created for any particular Stasis
  230. application. When a channel in a Stasis application joins a bridge, an
  231. implicit event subscription is created for that bridge as well. Previously,
  232. when a channel left such a bridge, the subscription was leaked; this allowed
  233. for later bridge events to continue to be pushed to the subscribed
  234. applications. That leak has been fixed; as a result, bridge events that were
  235. delivered after a channel left the bridge are no longer delivered. An
  236. application must subscribe to a bridge through the applications resource if
  237. it wishes to receive all events related to a bridge.
  238. AMI:
  239. - The AMI version has been changed to 2.5.0. This is to reflect backwards
  240. compatible changes made since 12.0.0 was released.
  241. - The DialStatus field in the DialEnd event can now have additional values.
  242. This includes ABORT, CONTINUE, and GOTO.
  243. - The res_mwi_external_ami module can, if loaded, provide additional AMI
  244. actions and events that convey MWI state within Asterisk. This includes
  245. the MWIGet, MWIUpdate, and MWIDelete actions, as well as the MWIGet and
  246. MWIGetComplete events that occur in response to an MWIGet action.
  247. - AMI now contains a new class authorization, 'security'. This is used with
  248. the following new events: FailedACL, InvalidAccountID, SessionLimit,
  249. MemoryLimit, LoadAverageLimit, RequestNotAllowed, AuthMethodNotAllowed,
  250. RequestBadFormat, SuccessfulAuth, UnexpectedAddress, ChallengeResponseFailed,
  251. InvalidPassword, ChallengeSent, and InvalidTransport.
  252. - Bridge related events now have two additional fields: BridgeName and
  253. BridgeCreator. BridgeName is a descriptive name for the bridge;
  254. BridgeCreator is the name of the entity that created the bridge. This
  255. affects the following events: ConfbridgeStart, ConfbridgeEnd,
  256. ConfbridgeJoin, ConfbridgeLeave, ConfbridgeRecord, ConfbridgeStopRecord,
  257. ConfbridgeMute, ConfbridgeUnmute, ConfbridgeTalking, BlindTransfer,
  258. AttendedTransfer, BridgeCreate, BridgeDestroy, BridgeEnter, BridgeLeave
  259. - MixMonitor AMI actions now require users to have authorization classes.
  260. * MixMonitor - system
  261. * MixMonitorMute - call or system
  262. * StopMixMonitor - call or system
  263. - Removed the undocumented manager.conf block-sockets option. It interferes with
  264. TCP/TLS inactivity timeouts.
  265. - The response to the PresenceState AMI action has historically contained two
  266. Message keys. The first of these is used as an informative message regarding
  267. the success/failure of the action; the second contains a Presence state
  268. specific message. Having two keys with the same unique name in an AMI
  269. message is cumbersome for some client; hence, the Presence specific Message
  270. has been deprecated. The message will now contain a PresenceMessage key
  271. for the presence specific information; the Message key containing presence
  272. information will be removed in the next major version of AMI.
  273. - The manager.conf 'eventfilter' now takes an "extended" regular expression
  274. instead of a "basic" one.
  275. CDRs:
  276. - The "endbeforehexten" setting now defaults to "yes", instead of "no".
  277. When set to "no", yhis setting will cause a new CDR to be generated when a
  278. channel enters into hangup logic (either the 'h' extension or a hangup
  279. handler subroutine). In general, this is not the preferred default: this
  280. causes extra CDRs to be generated for a channel in many common dialplans.
  281. CLI commands:
  282. - "core show settings" now lists the current console verbosity in addition
  283. to the root console verbosity.
  284. - "core set verbose" has not been able to support the by module verbose
  285. logging levels since verbose logging levels were made per console. That
  286. syntax is now removed and a silence option added in its place.
  287. Logging:
  288. - The 'verbose' setting in logger.conf still takes an optional argument,
  289. specifying the verbosity level for each logging destination. However,
  290. the default is now to once again follow the current root console level.
  291. As a result, using the AMI Command action with "core set verbose" could
  292. again set the root console verbose level and affect the verbose level
  293. logged.
  294. HTTP:
  295. - Added http.conf session_inactivity timer option to close HTTP connections
  296. that aren't doing anything.
  297. - Added support for persistent HTTP connections. To enable persistent
  298. HTTP connections configure the keep alive time between HTTP requests. The
  299. keep alive time between HTTP requests is configured in http.conf with the
  300. session_keep_alive parameter.
  301. Realtime Configuration:
  302. - WARNING: The database migration script that adds the 'extensions' table for
  303. realtime had to be modified due to an error when installing for MySQL. The
  304. 'extensions' table's 'id' column was changed to be a primary key. This could
  305. potentially cause a migration problem. If so, it may be necessary to
  306. manually alter the affected table/column to bring it back in line with the
  307. migration scripts.
  308. - New columns have been added to realtime tables for 'support_path' on
  309. ps_registrations and ps_aors and for 'path' on ps_contacts for the new
  310. SIP Path support in chan_pjsip.
  311. - The following new tables have been added for pjsip realtime: 'ps_systems',
  312. 'ps_globals', 'ps_tranports', 'ps_registrations'.
  313. - The following columns were added to the 'ps_aors' realtime table:
  314. 'maximum_expiration', 'outbound_proxy', and 'support_path'.
  315. - The following columns were added to the 'ps_contacts' realtime table:
  316. 'outbound_proxy', 'user_agent', and 'path'.
  317. - New columns have been added to the ps_endpoints realtime table for the
  318. 'media_address', 'redirect_method' and 'set_var' options. Also the
  319. 'mwi_fromuser' column was renamed to 'mwi_from_user'. A new column
  320. 'message_context' was added to let users configure how MESSAGE requests are
  321. routed to the dialplan.
  322. - A new column was added to the 'ps_globals' realtime table for the 'debug'
  323. option.
  324. - PJSIP endpoint columns 'tos_audio' and 'tos_video' have been changed from
  325. yes/no enumerators to string values. 'cos_audio' and 'cos_video' have been
  326. changed from yes/no enumerators to integer values. PJSIP transport column
  327. 'tos' has been changed from a yes/no enumerator to a string value. 'cos' has
  328. been changed from a yes/no enumerator to an integer value.
  329. - The 'queues' and 'queue_members' realtime tables have been added to the
  330. config Alembic scripts.
  331. - A new set of Alembic scripts has been added for CDR tables. This will create
  332. a 'cdr' table with the default schema that Asterisk expects.
  333. - A new upgrade script has been added that adds a 'queue_rules' table for
  334. app_queue. Users of app_queue can store queue rules in a database. It is
  335. important to note that app_queue only looks for this table on module load or
  336. module reload; for more information, see the CHANGES file.
  337. Resources:
  338. res_odbc:
  339. - The compatibility setting, allow_empty_string_in_nontext, has been removed.
  340. Empty column values will be stored as empty strings during realtime updates.
  341. res_jabber:
  342. - This module was deprecated and has been removed. Users of this module should
  343. use res_xmpp instead.
  344. res_http_websocket:
  345. - Added a compatibility option to ari.conf, sip.conf, and pjsip.conf
  346. 'websocket_write_timeout'. When a websocket connection exists where Asterisk
  347. writes a substantial amount of data to the connected client, and the connected
  348. client is slow to process the received data, the socket may be disconnected.
  349. In such cases, it may be necessary to adjust this value.
  350. Default is 100 ms.
  351. Scripts:
  352. safe_asterisk:
  353. - The safe_asterisk script was previously not installed on top of an existing
  354. version. This caused bug-fixes in that script not to be deployed. If your
  355. safe_asterisk script is customized, be sure to keep your changes. Custom
  356. values for variables should be created in *.sh file(s) inside
  357. ASTETCDIR/startup.d/. See ASTERISK-21965.
  358. - Changed a log message in safe_asterisk and the $NOTIFY mail subject. If
  359. you use tools to parse either of them, update your parse functions
  360. accordingly. The changed strings are:
  361. - "Exited on signal $EXITSIGNAL" => "Asterisk exited on signal $EXITSIGNAL."
  362. - "Asterisk Died" => "Asterisk on $MACHINE died (sig $EXITSIGNAL)"
  363. Utilities:
  364. - The refcounter program has been removed in favor of the refcounter.py script
  365. in contrib/scripts.
  366. ===========================================================
  367. ===========================================================