<div dir="ltr">Hi,<div><br></div><div>I want to implement selective transcoding, e.g. avoiding Transcoding between a HD codec (G722) and a non HD Codec (G711).</div><div><br></div><div>In case the caller does offer HD codecs, this is fine, e.g.</div><br>if(sdp_with_codecs_by_name("G722,OPUS")) {<br>  rtpengine_offer("codec-transcode=OPUS codec-transcode=G722 codec-transcode=PCMA");<br>} else {<br>  rtpengine_manage("codec-transcode=PCMA");<br>}<br><br>Now I have the issue, if the callee only sends me G711, I don't want to offer G722 or Opus to the caller. However, rtpengine_answer() does not seem to accept "codec-strip=G722 codec-strip=OPUS", e.g.:<div><br></div><div>onreply_route() {</div>  if(!sdp_with_codecs_by_name("G722,OPUS")) {<br>    rtpengine_

manage("codec-strip=OPUS codec-strip=G722");<div>  }<br><div>}</div><div><br></div><div>As a result, the SDP always contains the transcoding options, e.g. G722 and OPUS. I always end up in transcoding G722 to G711, which is meaningless in that case.<br><br>Any ideas on how to solve that?</div><div>(above examples very simplified)<br><br>Thanks,<br>Carsten<div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">--</div><div dir="ltr">Carsten Bock I Managing Director <br>ng-voice GmbH<br><br>Millerntorplatz 1 I 20359 Hamburg I Germany<br><a href="http://www.ng-voice.com" target="_blank">www.ng-voice.com</a><br><br>Mobile +49 (0)179-20 21 244 I Direct +49 (0)40-52 47 593-40 I Fax +49 (0)40-52 47 593-99<br><br>Sitz der Gesellschaft: Hamburg<br>Registergericht: Amtsgericht Hamburg, HRB 120189<br>Geschäftsführer: Carsten Bock, Dr. David Bachmann<br>Ust-ID: DE279344284<br><br>Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br><a href="http://www.ng-voice.com/imprint/" target="_blank">http://www.ng-voice.com/imprint/</a></div></div></div></div></div></div></div></div></div>