First download the latest Linphone source code from here .
After that, go to the top-level directory of the project and run the following command:
./prepare.py -DENABLE_NON_FREE_CODECS=ON -DENABLE_G729=ON
By default, all non-free codecs are disabled.
Using the command above, you can enable non-free codecs. -DENABLE_NON_FREE_CODECS=ON enable non free codecs argument and -DENABLE_G729=ON enable G729 codec.
Hope this helps.
source share