<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:large">I needed an "inherit_codec =  true" before the bridge for this to work. For some reason, setting ringback also trips this up in some cases, but it's been a while since I looked at this so YMMV.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 20 Sept 2021 at 18:02, Shahnawaj Khan <<a href="mailto:shahnawaj.khan1990@gmail.com">shahnawaj.khan1990@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi All,<br>
<br>
I am working on a use case where we don't want freeswitch to transcode<br>
and the codec negotiated with the B leg's answer should be passed to<br>
the A leg so it also uses the same codec.<br>
I have followed the following link<br>
<a href="https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation" rel="noreferrer" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation</a><br>
and added following flags in sip profiles<br>
<param name="inbound-late-negotiation" value="true"/><br>
<param name="inherit_codec" value="true"/><br>
 But freeswitch is itself doing the transcoding. Scenario looks like<br>
the following.<br>
<br>
1) Bob---(Invite with OPUS,PCMU codec)---->Freeswitch<br>
2) Freeswitch---(Invite with OPUS,PCMU codec)-->Alice<br>
3) Alice ---(200 OK with PCMU)---> Freeswitch<br>
4) Freeswitch---(200 OK with OPUS)--->Bob  //OPUS instead of PCMU<br>
<br>
Please let me know if I have some understanding gaps and point me in<br>
the right direction.<br>
<br>
Thanks & Regards,<br>
Shahnawaz<br>
</blockquote></div></div>