Instructions to download sources from GIT repository, specific for stable branch 4.2 (release series v4.2.x).
Direct download of sources from GIT for latest Kamailio v4.2.x.
git clone --depth --no-single-branch 1 git://git.sip-router.org/kamailio kamailio cd kamailio git checkout -b 4.2 origin/4.2
Note: if your git client version does not support –no-single-branch command line parameter, then just remove it.