<div dir="ltr">Hello,<div><br></div><div style> I am doing some codec negotiation (early) tests but FS does not work as I expected.</div><div style><br></div><div style>I can read at wiki: "<span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.046875px">When FS calls leg B, the list of codecs in outbound-codec-prefs for the SIP profile is reorganized by pushing the codec negotiated above for leg A at the top. If B does not accept any of the codecs, the calls fails, obviously</span>"</div>
<div style><br></div><div style>Codec prefs setted as:</div><div style><br></div><div style><div> <X-PRE-PROCESS cmd="set" data="global_codec_prefs=G729,G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM"/></div>
<div> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=G729,PCMU,PCMA,GSM"/></div></div><div style><br></div><div style>FS select PCMA for A leg</div><div style><br></div><div style>FS offers following SDP to B leg:</div>
<div style><br></div><div style><div> v=0</div><div> o=FreeSWITCH 1365781615 1365781616 IN IP4 176.31.117.49</div><div> s=FreeSWITCH</div><div> c=IN IP4 176.31.117.49</div><div> t=0 0</div><div> m=audio 19780 RTP/AVP 8 101 13</div>
<div> a=rtpmap:101 telephone-event/8000</div><div> a=fmtp:101 0-16</div><div> a=ptime:30</div><div> m=audio 19780 RTP/AVP 18 0 8 3 101 13</div><div> a=rtpmap:101 telephone-event/8000</div><div> a=fmtp:101 0-16</div>
<div> a=ptime:20</div><div><br></div><div style>Session progress from B leg contains:</div><div style><br></div><div style><div> v=0</div><div> o=root 3311 3311 IN IP4 91.192.110.234</div><div> s=session</div><div>
c=IN IP4 91.192.110.234</div><div> t=0 0</div><div> m=audio 16194 RTP/AVP 18 8 0 101</div><div> a=rtpmap:18 G729/8000</div><div> a=fmtp:18 annexb=no</div><div> a=rtpmap:8 PCMA/8000</div><div> a=rtpmap:0 PCMU/8000</div>
<div> a=rtpmap:101 telephone-event/8000</div><div> a=fmtp:101 0-16</div><div> a=silenceSupp:off - - - -</div><div> a=ptime:20</div><div> a=sendrecv</div><div><br></div><div style>FS codec comparison debug look as:</div>
<div style><br></div><div style><div>sofia_glue.c:5094 Audio Codec Compare [G729:18:8000:20:8000]/[PCMA:8:8000:30:64000]</div><div>sofia_glue.c:5094 Audio Codec Compare [G729:18:8000:20:8000]/[G729:18:8000:20:8000]</div>
<div>
sofia_glue.c:3077 Set Codec sofia/external/0034950004588 G729/8000 20 ms 160 samples 8000 bits</div><div><br></div><div style>FS start comparing G729 instead PCMA selected in A leg</div><div style><br></div><div style>Is that ok? is there any way to get selected PCMA for B leg without using late negotiation nor disabling transcoding</div>
<div style><br></div><div style>Regards</div></div></div></div></div>