Source Code

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.

#cd /usr/src

# git clone asterisk
# git clone git:// dahdi-linux
# git clone git:// dahdi-tools
# svn checkout libpri

To clone only a specific Asterisk branch from Gerrit, use the following format:

# git clone -b X 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 asterisk-13

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.