[Freeswitch-users] Freeswitch/freetdm<->Freeswitch PCMU always wins

Pete Ashdown pashdown at xmission.com
Thu Mar 27 20:14:41 MSK 2014


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 at 30i,PCMU,PCMA,GSM




Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list