<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2171/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/Asterisk+10+Function_VERSION">Asterisk 10 Function_VERSION</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://wiki.asterisk.org/wiki/display/~wikibot">Wiki Bot</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h1><a name="Asterisk10Function_VERSION-VERSION%28%29"></a>VERSION()</h1>

<h3><a name="Asterisk10Function_VERSION-Synopsis"></a>Synopsis</h3>
<p>Return the Version info for this Asterisk.</p>

<h3><a name="Asterisk10Function_VERSION-Description"></a>Description</h3>
<p>If there are no arguments, return the version of Asterisk in this format: SVN-branch-1.4-r44830M </p>

<p>Example: Set(junky=${VERSION()}; </p>

<p>Sets junky to the string <tt>SVN-branch-1.6-r74830M</tt>, or possibly, <tt>SVN-trunk-r45126M</tt>.</p>

<h3><a name="Asterisk10Function_VERSION-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>VERSION([info])</pre>
</div></div>

<h5><a name="Asterisk10Function_VERSION-Arguments"></a>Arguments</h5>
<ul>
        <li><tt>info</tt> - The possible values are:
        <ul>
                <li><tt>ASTERISK_VERSION_NUM</tt> - A string of digits is returned (right now fixed at 999999).</li>
                <li><tt>BUILD_USER</tt> - The string representing the user's name whose account was used to configure Asterisk, is returned.</li>
                <li><tt>BUILD_HOSTNAME</tt> - The string representing the name of the host on which Asterisk was configured, is returned.</li>
                <li><tt>BUILD_MACHINE</tt> - The string representing the type of machine on which Asterisk was configured, is returned.</li>
                <li><tt>BUILD_OS</tt> - The string representing the OS of the machine on which Asterisk was configured, is returned.</li>
                <li><tt>BUILD_DATE</tt> - The string representing the date on which Asterisk was configured, is returned.</li>
                <li><tt>BUILD_KERNEL</tt> - The string representing the kernel version of the machine on which Asterisk was configured, is returned.</li>
        </ul>
        </li>
</ul>



<h3><a name="Asterisk10Function_VERSION-SeeAlso"></a>See Also</h3>


<h3><a name="Asterisk10Function_VERSION-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk version SVN-branch-10-r340810.</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/Asterisk+10+Function_VERSION">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+10+Function_VERSION?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>