<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2176/18/9/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+11">Upgrading to Asterisk 11</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://wiki.asterisk.org/wiki/display/~mjordan">Matt Jordan</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <p>The following are changes made in Asterisk 11 that may affect your configuration when upgrading.</p>

<h2><a name="UpgradingtoAsterisk11-Applications"></a>Applications</h2>

<h3><a name="UpgradingtoAsterisk11-Voicemail"></a>Voicemail</h3>

<p>All voicemails now have a <em>msg_id</em> included in their metadata which uniquely identifies a message. For users of file system and IMAP storage of voicemail, this should be transparent.  For users of ODBC, you will need to add a <em>msg_id</em> column to your voice mail messages table. This should be a string capable of holding at least 32 characters.</p>

<p>All messages created in old Asterisk installations will have a <em>msg_id</em> added to them when required. This operation should be transparent as well.</p>

<h3><a name="UpgradingtoAsterisk11-MeetMe"></a>MeetMe</h3>

<p>The '<b>c</b>' option (announce user count) will now work even if the '<b>q</b>' (quiet) option is enabled.</p>

<h3><a name="UpgradingtoAsterisk11-FollowMe"></a>FollowMe</h3>

<p>Answered outgoing calls no longer get cut off when the next step is started.  You now have until the last step times out to decide if you want to accept the call or not before being disconnected.</p>

<h2><a name="UpgradingtoAsterisk11-ChannelDrivers"></a>Channel Drivers</h2>

<h3><a name="UpgradingtoAsterisk11-changtalk"></a>chan_gtalk</h3>

<p>chan_gtalk has been deprecated in favour of the chan_motif channel driver. It is recommended that users switch to using it as it is a core supported module.</p>

<p>Please see <a href="https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google" class="external-link" rel="nofollow">Calling Using Google</a> for more information.</p>

<h3><a name="UpgradingtoAsterisk11-chanjingle"></a>chan_jingle</h3>

<p>chan_jingle has been deprecated in favour of the chan_motif channel driver. It is recommended that users switch to using it as it is a core supported module.</p>

<p>Please see <a href="https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google" class="external-link" rel="nofollow">Calling Using Google</a> for more information.</p>

<h3><a name="UpgradingtoAsterisk11-chansip"></a>chan_sip</h3>

<ul>
        <li>SIP_CAUSE is now deprecated.  It has been modified to use the same mechanism as the&nbsp;<a href="/wiki/display/AST/Asterisk+11+Function_HANGUPCAUSE" title="Asterisk 11 Function_HANGUPCAUSE">HANGUPCAUSE</a>&nbsp;function.  Behaviour should not change, but performance should be vastly improved.  The <a href="/wiki/display/AST/Asterisk+11+Function_HANGUPCAUSE" title="Asterisk 11 Function_HANGUPCAUSE">HANGUPCAUSE</a> function should now be used instead of SIP_CAUSE. Because of this, the <em>storesipcause</em> option in sip.conf is also deprecated.  Please see&nbsp;<a href="/wiki/display/AST/Hangup+Cause" title="Hangup Cause">Hangup Cause</a>&nbsp;for more information.</li>
        <li>ICE support has been added and is enabled by default. Some endpoints may have problems with the ICE candidates within the SDP. If this is the case ICE support can be disabled globally or on a per-endpoint basis using the <em>icesupport</em> configuration option. Symptoms of this include one way media or no media flow.</li>
</ul>


<h3><a name="UpgradingtoAsterisk11-chanunistim"></a>chan_unistim</h3>

<p>Due to massive update in chan_unistim phone keys functions and on-screen information changed.</p>

<p>Please see the <a href="https://wiki.asterisk.org/wiki/display/AST/Unistim+channel+improvements" class="external-link" rel="nofollow">Unistim Channel Improvements</a> for more information.</p>

<h2><a name="UpgradingtoAsterisk11-ResourceModules"></a>Resource Modules</h2>

<h3><a name="UpgradingtoAsterisk11-resais"></a>res_ais</h3>

<p>Users of res_ais in versions of Asterisk prior to Asterisk 11 must change to use the res_corosync module, instead.  OpenAIS is deprecated, but Corosync is still actively developed and maintained.  Corosync came out of the OpenAIS project.</p>

<h3><a name="UpgradingtoAsterisk11-resjabber"></a>res_jabber</h3>

<p>This module has been deprecated in favor of the res_xmpp module. The res_xmpp module is backwards compatible with the res_jabber configuration file, dialplan functions, and AMI actions. The old CLI commands can also be made available using the res_clialiases template for Asterisk 11.</p>

<h2><a name="UpgradingtoAsterisk11-DialplanFunctions"></a>Dialplan Functions</h2>

<ul>
        <li><a href="/wiki/display/AST/Asterisk+11+Function_MAILBOX_EXISTS" title="Asterisk 11 Function_MAILBOX_EXISTS">MAILBOX_EXISTS</a> has been deprecated. Use <a href="/wiki/display/AST/Asterisk+11+Function_VM_INFO" title="Asterisk 11 Function_VM_INFO">VM_INFO</a> with the '<em>exists</em>' parameter instead.</li>
        <li><a href="/wiki/display/AST/Asterisk+11+Application_Macro" title="Asterisk 11 Application_Macro">Macro</a> has been deprecated in favour of <a href="/wiki/display/AST/Asterisk+11+Application_Gosub" title="Asterisk 11 Application_Gosub">Gosub</a>.  While Macro has been deprecated for some time, in Asterisk 11 all internal functions that relied on Macros have been transitioned to use GoSub.  For redirecting and connected line purposes use the following variables instead of their macro equivalents:
        <ul>
                <li><em>REDIRECTING_SEND_SUB</em></li>
                <li><em>REDIRECTING_SEND_SUB_ARGS</em></li>
                <li><em>CONNECTED_LINE_SEND_SUB</em></li>
                <li><em>CONNECTED_LINE_SEND_SUB_ARGS</em></li>
        </ul>
        </li>
        <li>The <a href="/wiki/display/AST/Asterisk+11+Function_HANGUPCAUSE" title="Asterisk 11 Function_HANGUPCAUSE">HANGUPCAUSE</a> and <a href="/wiki/display/AST/Asterisk+11+Function_HANGUPCAUSE_KEYS" title="Asterisk 11 Function_HANGUPCAUSE_KEYS">HANGUPCAUSE_KEYS</a> functions have been introduced to provide a replacement for the SIP_CAUSE hash. The <a href="/wiki/display/AST/Asterisk+11+Application_HangupCauseClear" title="Asterisk 11 Application_HangupCauseClear">HangupCauseClear</a>&nbsp;application has also been introduced to remove this data from the channel when necessary.  Please see</li>
        <li><a href="/wiki/display/AST/E.164+NUmber+Mapping+%28ENUM%29" title="AST:E.164 NUmber Mapping (ENUM)">ENUM</a> query functions now return a count of &#45;1 on lookup error to differentiate between a failed query and a successful query with 0 results matching the specified type.</li>
</ul>


<h2><a name="UpgradingtoAsterisk11-Core"></a>Core</h2>

<h3><a name="UpgradingtoAsterisk11-Logging"></a>Logging</h3>

<p>The <em>verbose</em> setting in logger.conf now takes an optional argument specifying the verbosity level for each logging destination.  The default, if not otherwise specified, is a verbosity of 3.</p>

<h3><a name="UpgradingtoAsterisk11-AMI"></a>AMI</h3>

<ul>
        <li><a href="/wiki/display/AST/Asterisk+11+Application_DBdeltree" title="Asterisk 11 Application_DBdeltree">DBdeltree</a> now correctly returns an error when 0 rows are deleted just as the <a href="/wiki/display/AST/Asterisk+11+Application_DBdel" title="Asterisk 11 Application_DBdel">DBdel</a> action does.</li>
        <li>The IAX2 PeerStatus event now sends a <em>Port</em> header.  In Asterisk 10, this was erroneously being sent as a <em>Post</em> header.</li>
</ul>


<h3><a name="UpgradingtoAsterisk11-CCSS"></a>CCSS</h3>

<p>Macro is deprecated. Use <em>cc_callback_sub</em> instead of <em>cc_callback_macro</em> in channel configurations.</p>

<h3><a name="UpgradingtoAsterisk11-Parking"></a>Parking</h3>

<ul>
        <li>The <em>comebacktoorigin</em> setting must now be set per parking lot. The setting in the general section will not be applied automatically to each parking lot.</li>
        <li>The <em>BLINDTRANSFER</em> channel variable is deleted from a channel when it is bridged to prevent subtle bugs in the parking feature.  The channel variable is used by Asterisk internally for the <a href="/wiki/display/AST/Asterisk+11+Application_Park" title="Asterisk 11 Application_Park">Park</a> application to work properly.  If you were using it for your own purposes, copy it to your own channel variable before the channel is bridged.</li>
</ul>


<h3><a name="UpgradingtoAsterisk11-users.conf"></a>users.conf</h3>

<p>A defined user with <em>hasvoicemail=yes</em> now finally uses a Gosub to <em>stdexten</em> as documented in extensions.conf.sample since v1.6.0 instead of a Macro as documented in v1.4.  Set the asterisk.conf <em>stdexten=macro</em> parameter to invoke the <em>stdexten</em> the old way.</p>
    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+11">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+11?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>