<div dir="ltr"><div>Yes, the rate of the  telephone-event must be the rate of the audio codec. Out of curiosity, what gateway is this ? <br></div><div>As much as I hate the idea, you must not offer Opus to the B-leg in this case. <br></div><div><br></div><div>You can try this just before you bridge:</div><div><action application="set" data="codec_string=OPUS,PCMA"/><br><action application="set" data="inbound_codec_prefs=OPUS,PCMA"/><br><action application="export" data="nolocal:absolute_codec_string=PCMA"/></div><div><br></div><div>Cheers,</div><div>Dragos<br></div> <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 1, 2017 at 9:08 AM, Zheka Polivoda <span dir="ltr"><<a href="mailto:poliv78@yahoo.co.uk" target="_blank">poliv78@yahoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">Hi all<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">I'm using freeswitch to call from browser(webrtc) to some sip provider.<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">So, the A-keg is webrtc opus codec and then I bridge it with the sip gateway. <br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">Sip gateway supports g711 only. And it chooses wrong codec and DTMF is not working between them.<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">When bridging to sip, freeswitch sends such SDP<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)"><br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)"><br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a Local SDP:<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a v=0<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a o=FreeSWITCH 1509346805 1509346806 IN IP4 x.x.x.x<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a s=FreeSWITCH<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a c=IN IP4 x.x.x.x<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a t=0 0<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a m=audio 31568 RTP/AVP 102 9 0 8 103 101<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=rtpmap:102 opus/48000/2<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=fmtp:102 useinbandfec=1; maxaveragebitrate=14400; maxplaybackrate=8000; sprop-maxcapturerate=8000; ptime=20; minptime=10; maxptim<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">e=40; stereo=1<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=rtpmap:9 G722/8000<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=rtpmap:0 PCMU/8000<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=rtpmap:8 PCMA/8000<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=rtpmap:103 telephone-event/48000<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=fmtp:103 0-16<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=rtpmap:101 telephone-event/8000<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=fmtp:101 0-16<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=ptime:20<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=sendrecv<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)"><br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)"><br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)"><br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">Is it possible to send SDP without opus rtpmap? Because SIP gateway choose wrong <br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">telephone-event. the answer of sip gateway is <br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)"><br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a 2017-10-30 15:46:13.248384 [DEBUG] sofia.c:7058 Remote SDP:<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a v=0<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a o=lvp 8000 8000 IN IP4 y.y.y.y<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a s=SIP Call<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a c=IN IP4 y.y.y.y<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a t=0 0<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a m=audio 22786 RTP/AVP 8 103<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=rtpmap:8 PCMA/8000<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=rtpmap:103 telephone-event/48000<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=fmtp:103 0-16<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">72a02659-6c1b-424e-b76a-<wbr>0a9b16aecc2a a=ptime:20<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)"><br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)"><br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">I guess there must be <br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">a=rtpmap:101 telephone-event/8000<br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)"><br></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background-color:rgb(244,244,247)">Thanks</div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>