UPGRADE.txt 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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 includes 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. ===
  19. ===========================================================
  20. From 1.6.2 to 1.8:
  21. * When using TLS with Manager and the HTTP server, the desired port
  22. must be specified in the tlsbindaddr setting. If no port is specified,
  23. then the default port will be used. See the sample config file to know
  24. the default ports. Settings like "sslbindport" and "tlsbindport" have
  25. no effect.
  26. * chan_sip no longer sets HASH(SIP_CAUSE,<chan name>) on channels by default.
  27. This must now be enabled by setting 'sipstorecause' to 'yes' in sip.conf.
  28. This carries a performance penalty.
  29. * Asterisk now requires libpri 1.4.11+ for PRI support.
  30. * A couple of CLI commands in res_ais were changed back to their original form:
  31. "ais show clm members" --> "ais clm show members"
  32. "ais show evt event channels" --> "ais evt show event channels"
  33. * The default value for 'autofill' and 'shared_lastcall' in queues.conf has
  34. been changed to 'yes'.
  35. * The default value for the alwaysauthreject option in sip.conf has been changed
  36. from "no" to "yes".
  37. * The behavior of the 'parkedcallstimeout' has changed slightly. The formulation
  38. of the extension name that a timed out parked call is delivered to when this
  39. option is set to 'no' was modified such that instead of converting '/' to '0',
  40. the '/' is converted to an underscore '_'. See the updated documentation in
  41. features.conf.sample for more information on the behavior of the
  42. 'parkedcallstimeout' option.
  43. * Asterisk-addons no longer exists as an independent package. Those modules
  44. now live in the addons directory of the main Asterisk source tree. They
  45. are not enabled by default. For more information about why modules live in
  46. addons, see README-addons.txt.
  47. * The rarely used 'event_log' and LOG_EVENT channel have been removed; the few
  48. users of this channel in the tree have been converted to LOG_NOTICE or removed
  49. (in cases where the same message was already generated to another channel).
  50. * The usage of RTP inside of Asterisk has now become modularized. This means
  51. the Asterisk RTP stack now exists as a loadable module, res_rtp_asterisk.
  52. If you are not using autoload=yes in modules.conf you will need to ensure
  53. it is set to load. If not, then any module which uses RTP (such as chan_sip)
  54. will not be able to send or receive calls.
  55. * The app_dahdiscan.c file has been removed, but the dialplan app DAHDIScan still
  56. remains. It now exists within app_chanspy.c and retains the exact same
  57. functionality as before.
  58. * The default behavior for Set, AGI, and pbx_realtime has been changed to implement
  59. 1.6 behavior by default, if there is no [compat] section in asterisk.conf. In
  60. prior versions, the behavior defaulted to 1.4 behavior, to assist in upgrades.
  61. Specifically, that means that pbx_realtime and res_agi expect you to use commas
  62. to separate arguments in applications, and Set only takes a single pair of
  63. a variable name/value. The old 1.4 behavior may still be obtained by setting
  64. app_set, pbx_realtime, and res_agi each to 1.4 in the [compat] section of
  65. asterisk.conf.
  66. * The PRI channels in chan_dahdi can no longer change the channel name if a
  67. different B channel is selected during call negotiation. To prevent using
  68. the channel name to infer what B channel a call is using and to avoid name
  69. collisions, the channel name format is changed.
  70. The new channel naming for PRI channels is:
  71. DAHDI/i<span>/<number>[:<subaddress>]-<sequence-number>
  72. * Added CHANNEL(dahdi_span), CHANNEL(dahdi_channel), and CHANNEL(dahdi_type)
  73. so the dialplan can determine the B channel currently in use by the channel.
  74. Use CHANNEL(no_media_path) to determine if the channel even has a B channel.
  75. * Added AMI event DAHDIChannel to associate a DAHDI channel with an Asterisk
  76. channel so AMI applications can passively determine the B channel currently
  77. in use. Calls with "no-media" as the DAHDIChannel do not have an associated
  78. B channel. No-media calls are either on hold or call-waiting.
  79. * The ChanIsAvail application has been changed so the AVAILSTATUS variable
  80. no longer contains both the device state and cause code. The cause code
  81. is now available in the AVAILCAUSECODE variable. If existing dialplan logic
  82. is written to expect AVAILSTATUS to contain the cause code it needs to be
  83. changed to use AVAILCAUSECODE.
  84. * ExternalIVR will now send Z events for invalid or missing files, T events
  85. now include the interrupted file and bugs in argument parsing have been
  86. fixed so there may be arguments specified in incorrect ways that were
  87. working that will no longer work. Please see
  88. https://wiki.asterisk.org/wiki/display/AST/External+IVR+Interface for details.
  89. * OSP lookup application changes following variable names:
  90. OSPPEERIP to OSPINPEERIP
  91. OSPTECH to OSPOUTTECH
  92. OSPDEST to OSPDESTINATION
  93. OSPCALLING to OSPOUTCALLING
  94. OSPCALLED to OSPOUTCALLED
  95. OSPRESULTS to OSPDESTREMAILS
  96. * The Manager event 'iax2 show peers' output has been updated. It now has a
  97. similar output of 'sip show peers'.
  98. * VoiceMailMain and VMAuthenticate, if a '*' is entered in the first position
  99. of a Mailbox or Password, will, if it exists, jump to the 'a' extension in
  100. the current dialplan context.
  101. * The CALLERPRES() dialplan function is deprecated in favor of
  102. CALLERID(num-pres) and CALLERID(name-pres).
  103. * Environment variables that start with "AST_" are reserved to the system and
  104. may no longer be set from the dialplan.
  105. * When a call is redirected inside of a Dial, the app and appdata fields of the
  106. CDR will now be set to "AppDial" and "(Outgoing Line)" instead of being blank.
  107. * The CDR handling of billsec and duration field has changed. If your table
  108. definition specifies those fields as float,double or similar they will now
  109. be logged with microsecond accuracy instead of a whole integer.
  110. * chan_sip will no longer set up a local call forward when receiving a
  111. 482 Loop Detected response. The dialplan will just continue from where it
  112. left off.
  113. * The 'stunaddr' option has been removed from chan_sip. This feature did not
  114. behave as expected, had no correct use case, and was not RFC compliant. The
  115. removal of this feature will hopefully be followed by a correct RFC compliant
  116. STUN implementation in chan_sip in the future.
  117. * The default value for the pedantic option in sip.conf has been changed
  118. from "no" to "yes".
  119. * The ConnectedLineNum and ConnectedLineName headers were added to many AMI
  120. events/responses if the CallerIDNum/CallerIDName headers were also present.
  121. The addition of connected line support changes the behavior of the channel
  122. caller ID somewhat. The channel caller ID value no longer time shares with
  123. the connected line ID on outgoing call legs. The timing of some AMI
  124. events/responses output the connected line ID as caller ID. These party ID's
  125. are now separate.
  126. * The Dial application d and H options do not automatically answer the call
  127. anymore. It broke DTMF attended transfers. Since many SIP and ISDN phones
  128. cannot send DTMF before a call is connected, you need to answer the call
  129. leg to those phones before using Dial with these options for them to have
  130. any effect before the dialed party answers.
  131. * The outgoing directory (where .call files are read) now uses inotify to
  132. detect file changes instead of polling the directory on a regular basis.
  133. If your outgoing folder is on a NFS mount or another network file system,
  134. changes to the files will not be detected. You can revert to polling the
  135. directory by specifying --without-inotify to configure before compiling.
  136. * The 'sipusers' realtime table has been removed completely. Use the 'sippeers'
  137. table with type 'user' for user type objects.
  138. * The sip.conf allowoverlap option now accepts 'dtmf' as a value. If you
  139. are using the early media DTMF overlap dialing method you now need to set
  140. allowoverlap=dtmf.
  141. From 1.6.1 to 1.6.2:
  142. * SIP no longer sends the 183 progress message for early media by
  143. default. Applications requiring early media should use the
  144. progress() dialplan app to generate the progress message.
  145. * The firmware for the IAXy has been removed from Asterisk. It can be
  146. downloaded from http://downloads.digium.com/pub/iaxy/. To have Asterisk
  147. install the firmware into its proper location, place the firmware in the
  148. contrib/firmware/iax/ directory in the Asterisk source tree before running
  149. "make install".
  150. * T.38 FAX error correction mode can no longer be configured in udptl.conf;
  151. instead, it is configured on a per-peer (or global) basis in sip.conf, with
  152. the same default as was present in udptl.conf.sample.
  153. * T.38 FAX maximum datagram size can no longer be configured in updtl.conf;
  154. instead, it is either supplied by the application servicing the T.38 channel
  155. (for a FAX send or receive) or calculated from the bridged endpoint's
  156. maximum datagram size (for a T.38 FAX passthrough call). In addition, sip.conf
  157. allows for overriding the value supplied by a remote endpoint, which is useful
  158. when T.38 connections are made to gateways that supply incorrectly-calculated
  159. maximum datagram sizes.
  160. * There have been some changes to the IAX2 protocol to address the security
  161. concerns documented in the security advisory AST-2009-006. Please see the
  162. IAX2 security document, doc/IAX2-security.pdf, for information regarding
  163. backwards compatibility with versions of Asterisk that do not contain these
  164. changes to IAX2.
  165. * The 'canreinvite' option support by the SIP, MGCP and Skinny channel drivers
  166. has been renamed to 'directmedia', to better reflect what it actually does.
  167. In the case of SIP, there are still re-INVITEs issued for T.38 negotiation,
  168. starting and stopping music-on-hold, and other reasons, and the 'canreinvite'
  169. option never had any effect on these cases, it only affected the re-INVITEs
  170. used for direct media path setup. For MGCP and Skinny, the option was poorly
  171. named because those protocols don't even use INVITE messages at all. For
  172. backwards compatibility, the old option is still supported in both normal
  173. and Realtime configuration files, but all of the sample configuration files,
  174. Realtime/LDAP schemas, and other documentation refer to it using the new name.
  175. * The default console now will use colors according to the default background
  176. color, instead of forcing the background color to black. If you are using a
  177. light colored background for your console, you may wish to use the option
  178. flag '-W' to present better color choices for the various messages. However,
  179. if you'd prefer the old method of forcing colors to white text on a black
  180. background, the compatibility option -B is provided for this purpose.
  181. * SendImage() no longer hangs up the channel on transmission error or on
  182. any other error; in those cases, a FAILURE status is stored in
  183. SENDIMAGESTATUS and dialplan execution continues. The possible
  184. return values stored in SENDIMAGESTATUS are: SUCCESS, FAILURE, and
  185. UNSUPPORTED. ('OK' has been replaced with 'SUCCESS', and 'NOSUPPORT'
  186. has been replaced with 'UNSUPPORTED'). This change makes the
  187. SendImage application more consistent with other applications.
  188. * skinny.conf now has separate sections for lines and devices.
  189. Please have a look at configs/skinny.conf.sample and update
  190. your skinny.conf.
  191. * Queue names previously were treated in a case-sensitive manner,
  192. meaning that queues with names like "sales" and "sALeS" would be
  193. seen as unique queues. The parsing logic has changed to use
  194. case-insensitive comparisons now when originally hashing based on
  195. queue names, meaning that now the two queues mentioned as examples
  196. earlier will be seen as having the same name.
  197. * The SPRINTF() dialplan function has been moved into its own module,
  198. func_sprintf, and is no longer included in func_strings. If you use this
  199. function and do not use 'autoload=yes' in modules.conf, you will need
  200. to explicitly load func_sprintf for it to be available.
  201. * The res_indications module has been removed. Its functionality was important
  202. enough that most of it has been moved into the Asterisk core.
  203. Two applications previously provided by res_indications, PlayTones and
  204. StopPlayTones, have been moved into a new module, app_playtones.
  205. * Support for Taiwanese was incorrectly supported with the "tw" language code.
  206. In reality, the "tw" language code is reserved for the Twi language, native
  207. to Ghana. If you were previously using the "tw" language code, you should
  208. switch to using either "zh" (for Mandarin Chinese) or "zh_TW" for Taiwan
  209. specific localizations. Additionally, "mx" should be changed to "es_MX",
  210. Georgian was incorrectly specified as "ge" but should be "ka", and Czech is
  211. "cs", not "cz".
  212. * DAHDISendCallreroutingFacility() parameters are now comma-separated,
  213. instead of the old pipe.
  214. * res_jabber: autoprune has been disabled by default, to avoid misconfiguration
  215. that would end up being interpreted as a bug once Asterisk started removing
  216. the contacts from a user list.
  217. * The cdr.conf file must exist and be configured correctly in order for CDR
  218. records to be written.
  219. * cdr_pgsql now assumes the encoding of strings it is handed are in LATIN9,
  220. which should cover most uses of the extended ASCII set. If your strings
  221. use a different encoding in Asterisk, the "encoding" parameter may be set
  222. to specify the correct character set.
  223. From 1.6.0.1 to 1.6.1:
  224. * The ast_agi_register_multiple() and ast_agi_unregister_multiple()
  225. API calls were added in 1.6.0, so that modules that provide multiple
  226. AGI commands could register/unregister them all with a single
  227. step. However, these API calls were not implemented properly, and did
  228. not allow the caller to know whether registration or unregistration
  229. succeeded or failed. They have been redefined to now return success
  230. or failure, but this means any code using these functions will need
  231. be recompiled after upgrading to a version of Asterisk containing
  232. these changes. In addition, the source code using these functions
  233. should be reviewed to ensure it can properly react to failure
  234. of registration or unregistration of its API commands.
  235. * The ast_agi_fdprintf() API call has been renamed to ast_agi_send()
  236. to better match what it really does, and the argument order has been
  237. changed to be consistent with other API calls that perform similar
  238. operations.
  239. From 1.6.0.x to 1.6.1:
  240. * In previous versions of Asterisk, due to the way objects were arranged in
  241. memory by chan_sip, the order of entries in sip.conf could be adjusted to
  242. control the behavior of matching against peers and users. The way objects
  243. are managed has been significantly changed for reasons involving performance
  244. and stability. A side effect of these changes is that the order of entries
  245. in sip.conf can no longer be relied upon to control behavior.
  246. * The following core commands dealing with dialplan have been deprecated: 'core
  247. show globals', 'core set global' and 'core set chanvar'. Use the equivalent
  248. 'dialplan show globals', 'dialplan set global' and 'dialplan set chanvar'
  249. instead.
  250. * In the dialplan expression parser, the logical value of spaces
  251. immediately preceding a standalone 0 previously evaluated to
  252. true. It now evaluates to false. This has confused a good many
  253. people in the past (typically because they failed to realize the
  254. space had any significance). Since this violates the Principle of
  255. Least Surprise, it has been changed.
  256. * While app_directory has always relied on having a voicemail.conf or users.conf file
  257. correctly set up, it now is dependent on app_voicemail being compiled as well.
  258. * SIP: All of the functionality in SIPCHANINFO() has been implemented in CHANNEL(),
  259. and you should start using that function instead for retrieving information about
  260. the channel in a technology-agnostic way.
  261. * If you have any third party modules which use a config file variable whose
  262. name ends in a '+', please note that the append capability added to this
  263. version may now conflict with that variable naming scheme. An easy
  264. workaround is to ensure that a space occurs between the '+' and the '=',
  265. to differentiate your variable from the append operator. This potential
  266. conflict is unlikely, but is documented here to be thorough.
  267. * The "Join" event from app_queue now uses the CallerIDNum header instead of
  268. the CallerID header to indicate the CallerID number.
  269. * If you use ODBC storage for voicemail, there is a new field called "flag"
  270. which should be a char(8) or larger. This field specifies whether or not a
  271. message has been designated to be "Urgent", "PRIORITY", or not.