<div dir="ltr">I've seen this problem before: the remote end is preferring PCMA over PCMU when it does the session timer, If you're talking to any providers in the EU, disallow PMCU always.<div><br></div><div>Can you provide a full sip trace of this?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 28, 2020 at 9:16 AM Nicola von Thadden <<a href="mailto:nico@vthadden.de">nico@vthadden.de</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">
  
    
  
  <div>
    Hi,<br>
    <br>
    yes, we are using HD audio there. Deutsche Telekom is codec
    transparent, they even pass opus and other codecs since a while.<br>
    So disabling any codecs but G.711 is not really a solution,
    especially since DT is the biggest provider in Germany and that
    issue might not only affect my setup but in theory all other
    Freeswitch in Germany here which might want to call a DT landline or
    mobile number.<br>
    <br>
    Is there a way to make freeswitch stop mixing up the SDP?<br>
    <br>
    Nico<br>
    <br>
    <div>On 12/28/20 12:04 AM, Brian : wrote:<br>
    </div>
    <blockquote type="cite">
      
      Unless you're doing hd audio on these calls your solution is to
      just use g711 on calls into this provider. <br>
      <br>
      On Saturday, December 26, 2020, Nicola von Thadden <<a href="mailto:nico@vthadden.de" target="_blank">nico@vthadden.de</a>>
      wrote:<br>
      > Hi,<br>
      ><br>
      > I'm currently investigating reproducable call drops when
      calling<br>
      > mobile-phone numbers from Deutsche Telekom (T-Mobile
      Germany).<br>
      > My provider has a NGN (SIP) Interconnection with Deutsche
      Telekom and is<br>
      > transparend for the messages involved here (although IP
      rewriting is<br>
      > happening).<br>
      ><br>
      > The calls contain following SDP in the invite from my
      FreeSwitch towards<br>
      > my provider:<br>
      >
v=0                                                                                                                                                                                                                                                                                                                         <br>
      ><br>
      > o=FreeSWITCH 1608967203 1608967204 IN IP4 *redacted*<br>
      >
                                                                                                                                                                                                                                                                    <br>
      ><br>
      >
s=FreeSWITCH                                                                                                                                                                                                                                                                                                                <br>
      ><br>
      > c=IN IP4  *redacted*<br>
      >
                                                                                                                                                                                                                                                                                                  <br>
      ><br>
      > t=0<br>
      >
0                                                                                                                                                                                                                                                                                                                       <br>
      ><br>
      > m=audio 32256 RTP/AVP 9 8 0<br>
      >
101                                                                                                                                                                                                                                                                                             <br>
      ><br>
      > a=rtpmap:9<br>
      >
G722/8000                                                                                                                                                                                                                                                                                                        <br>
      ><br>
      > a=rtpmap:8<br>
      >
PCMA/8000                                                                                                                                                                                                                                                                                                        <br>
      ><br>
      > a=rtpmap:0<br>
      >
PCMU/8000                                                                                                                                                                                                                                                                                                        <br>
      ><br>
      > a=rtpmap:101<br>
      >
telephone-event/8000                                                                                                                                                                                                                                                                                           <br>
      ><br>
      > a=fmtp:101<br>
      >
0-16                                                                                                                                                                                                                                                                                                             <br>
      ><br>
      > a=ptime:20  <br>
      ><br>
      > Once the call is established, FS sends a re-invite after 50%
      of the<br>
      > expiration timer is elapsed, 15 minutes in this case. The
      re-invite<br>
      > contains a slightly modified SDP:<br>
      >
v=0                                                                                                                                                                                                                                                                                                                         <br>
      ><br>
      > o=FreeSWITCH 1608967203 1608967204 IN IP4<br>
      >
*redacted*                                                                                                                                                                                                                                                                     <br>
      ><br>
      >
s=FreeSWITCH                                                                                                                                                                                                                                                                                                                <br>
      ><br>
      > c=IN IP4<br>
      >
*redacted*                                                                                                                                                                                                                                                                                                      <br>
      ><br>
      > t=0<br>
      >
0                                                                                                                                                                                                                                                                                                                       <br>
      ><br>
      > m=audio 32256 RTP/AVP 8 101 9<br>
      >
0                                                                                                                                                                                                                                                                                             <br>
      ><br>
      > a=rtpmap:8<br>
      >
PCMA/8000                                                                                                                                                                                                                                                                                                        <br>
      ><br>
      > a=rtpmap:101<br>
      >
telephone-event/8000                                                                                                                                                                                                                                                                                           <br>
      ><br>
      > a=fmtp:101<br>
      >
0-16                                                                                                                                                                                                                                                                                                             <br>
      ><br>
      > a=rtpmap:9<br>
      >
G722/8000                                                                                                                                                                                                                                                                                                        <br>
      ><br>
      > a=rtpmap:0<br>
      >
PCMU/8000                                                                                                                                                                                                                                                                                                        <br>
      ><br>
      > a=ptime:20   <br>
      ><br>
      > The new codec on position 1 (PCMA) is not necessary the
      chosen one for<br>
      > the session, that call was using G.722 (verified via 'show
      channels').<br>
      ><br>
      > Telekom does not like my SDP change and responds with:<br>
      > SIP/2.0 488 SDP Parameter Error In SIP<br>
      >
Request                                                                                                                                                                                                                                                                              <br>
      ><br>
      ><br>
      > The freeswitch console only logs:<br>
      > 2020-12-26 16:32:49.578925 [DEBUG] sofia.c:7326 Channel<br>
      > sofia/external/*redacted*entering state [calling][0]<br>
      > 2020-12-26 16:32:49.618925 [DEBUG] sofia.c:7319 Channel<br>
      > sofia/external/*redacted* skipping state [ready][488]<br>
      ><br>
      > The call is disconnected 15 minutes later because the session
      timer has<br>
      > expired:<br>
      > 2020-12-26 16:47:53.838925 [NOTICE] sofia.c:1089 Hangup<br>
      > sofia/external/*redacted* [CS_EXCHANGE_MEDIA]
      [NORMAL_CLEARING]<br>
      ><br>
      > This does not happen when I only allow PCMA (or any other
      codec) since<br>
      > the SDP can't get mixed up.<br>
      ><br>
      > I have reproduced that behaviour with<br>
      > 1.10.5~release~6~25569c1631~buster-1~buster+1 and<br>
      > 1.6.20~37~987c9b9-1~jessie+1.<br>
      ><br>
      > Do you have any idea why FS changes the SDP (without reason?)
      and what I<br>
      > can do about it?<br>
      ><br>
      > Thanks<br>
      > Nico<br>
      ><br>
      >
_________________________________________________________________________<br>
      ><br>
      > The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" target="_blank">https://signalwire.com</a><br>
      > Enhance your FreeSWITCH install with disruptive priced SMS
      and PSTN services.<br>
      > Build your next product on our scalable cloud platform.<br>
      ><br>
      > Join our online community to chat in real time <a href="https://signalwire.community" target="_blank">https://signalwire.community</a><br>
      ><br>
      > Professional FreeSWITCH Services<br>
      > <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
      > <a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><br>
      ><br>
      > Official FreeSWITCH Sites<br>
      > <a href="https://freeswitch.com/oss" target="_blank">https://freeswitch.com/oss</a><br>
      > <a href="https://freeswitch.org/confluence" target="_blank">https://freeswitch.org/confluence</a><br>
      > <a href="https://cluecon.com" target="_blank">https://cluecon.com</a><br>
      ><br>
      > FreeSWITCH-users mailing list<br>
      > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
      > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
      > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
      > <a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a>
      <br>
      <fieldset></fieldset>
      <pre>_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" target="_blank">https://signalwire.com</a>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time <a href="https://signalwire.community" target="_blank">https://signalwire.community</a>

Professional FreeSWITCH Services
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a>
<a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a>

Official FreeSWITCH Sites
<a href="https://freeswitch.com/oss" target="_blank">https://freeswitch.com/oss</a>
<a href="https://freeswitch.org/confluence" target="_blank">https://freeswitch.org/confluence</a>
<a href="https://cluecon.com" target="_blank">https://cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a></pre>
    </blockquote>
    <br>
  </div>

_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><font color="#000000"><br></font></div><div style="font-size:12.8px"><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Brian West | Co-founder and Developer</font></span></p><p style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Need Commercial support? email <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a> </font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">FreeSWITCH Solutions | <a href="https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g" style="color:rgb(17,85,204)" target="_blank">17345 Civic Drive #2531 Brookfield, WI 53045</a></font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Email: </span><span style="color:rgb(17,85,204);font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:brian@freeswitch.com" target="_blank">brian@freeswitch.com</a></span></font></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Mobile: <span title="Call with Google Voice">918-424-9378</span></font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Website: </span><a href="https://www.freeswitch.com/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">https://www.FreeSWITCH.com</span></a></font></p><p dir="ltr" style="font-size:12.8px;line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="background-color:transparent;font-size:9pt;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><a href="https://www.facebook.com/freeswitch" target="_blank"><img alt="https://www.facebook.com/signalwireinc?src=email" src="https://lh6.googleusercontent.com/AYfRoSNaDNtMPRMevPn_GqcVEMd5NDRFi0GlluGUWzV6I5TAY_3T2-Tt0IuIXeUtEdYsgNsM8DOYKRKhjmrG_-n2Ga-LCnoNk46sO8VyEma1sBFYdiGJcLRUvkrD1CYHN79qimeg" width="31" height="31" style="border: none;"></a> </span><span style="background-color:transparent;font-size:9pt;font-family:Tahoma;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><a href="https://twitter.com/freeswitch" target="_blank"><img alt="https://twitter.com/freeswitch" src="https://lh3.googleusercontent.com/W4SqXyybH2qdAozvtoKjcz736qOjk9LHDwldvs1ahc-WVU0putVMSsUH474KDrJ32jsqi6JDjyUWxqeEkN5I1xSlC5ShYrd1b8NIMUkDzDrtbWQfa6A_90UcygqesBtRLgeFirKa" width="31" height="31" style="border: none;"></a></span><br></p></div></div></div></div></div></div></div></div></div></div></div></div></div>