Source Code

If you need additional information about installing Asterisk from source code, read this information 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 SVN repository and DAHDI's Git repository using the following commands:

#cd /usr/src

# svn checkout http://svn.asterisk.org/svn/asterisk/trunk asterisk
# git clone git://git.asterisk.org/dahdi/linux dahdi-linux
# git clone git://git.asterisk.org/dahdi/tools dahdi-tools
# svn checkout http://svn.asterisk.org/svn/libpri/branches/1.4 libpri

To get a snapshot from the release branch of SVN, use the following format

# svn checkout http://svn.asterisk.org/svn/asterisk/branches/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

# svn checkout http://svn.asterisk.org/svn/asterisk/branches/11 asterisk-11

An important note

You can check out the source at any level of the filesystem. This includes something like svn checkout http://svn.asterisk.org/svn/asterisk. However, it would be a bad idea to do so, because you will end up checking out the code for every branch and tag that exists in the Asterisk repository. Make sure you are careful when checking out the code.