If you need additional information about installing Asterisk from source code, read the installation guide on the Wiki.
Code is checked out from the SVN and Git servers via anonymous read-only access. Check out development code from Asterisk’s Gerrit repository and DAHDI’s Git repository. Libpri is still on the older Subversion system. Below is an example of commands you might use to download the source from the various repositories.
<code>#cd /usr/src</p><p># git clone http://gerrit.asterisk.org/asterisk asterisk<br /># git clone git://git.asterisk.org/dahdi/linux dahdi-linux<br /># git clone git://git.asterisk.org/dahdi/tools dahdi-tools<br /># svn checkout http://svn.asterisk.org/svn/libpri/branches/1.4 libpri<br /></code>
To clone only a specific Asterisk branch from Gerrit, use the following format:
# git clone -b X http://gerrit.asterisk.org/asterisk asterisk-X
(with X being the current release and revision number). Example:
Note: The below example may not reflect the current release to date.
# git clone -b 13 http://gerrit.asterisk.org/asterisk asterisk-13<br />
An important note
If you are intending to install a specific branch then it is best to clone that branch only and avoid cloning the entire repository.
If you have further questions or intend to push code back up to the repo please see the detailed Gerrit Usage instructions on the wiki.