On 03/26/2014 08:30 AM, Kristian Kielhofner wrote:
Check sip_codec_negotiation:
https://wiki.freeswitch.org/wiki/Variable_sip_codec_negotiation
Applies to inbound calls. Generous will allow FreeSWITCH to select the most preferred compatible codec from the remote end. Greedy will force the incoming profile to select the preferred compatible codec selected locally. Scrooge is greedy plus more or less forcing a few extra parameters (like ptime).
Scenario: FS A (OPUS, G722, PCMU) -> FS B (PCMU, G722, GSM)
Generous set on FS B - G722 wins Greedy set on FS B - PCMU wins
Scrooge should only be used in extreme circumstances.
"Greedy" on FS B fixes the immediate issue, but I'm still puzzled as to why PCMU is being preferred by FS A if its codec list looks like this (which is identical to FS B): CODECS OUT opus,G722,G7221,speex,iLBC@30i,PCMU,PCMA,GSM