Search code examples
linphone

How to change the list of default audio codecs in Linphone


I want to set codec G729 default enabled. I searched on StackOverflow and found many deprecated solutions, but now, they are no longer working.

I wrote some temporary (terrible) code that sets a flag every time you start the application. But I would like a normal solution.


Solution

  • Modify the file: linphonerc

    [audio_codec_0]
    mime=G729
    rate=8000
    enabled=1
    

    Delete your APP on iPhone or simulator, build and run. You will found codec G729 is enabled.