If you are on the distro you should be OK.
Otherwise look at http://www.asteriskguru.com/tutorials/spandsp.html