<div dir="ltr">Hello,<br><div><br></div><div>Can someone point me to what is wrong with this SDP:</div><div><br></div><div>```</div><div><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">v=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">0
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">o=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">- 3826710256 3826710256 IN IP4 100.113.232.22
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">s=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">pjmedia
b=AS:386
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">t=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">0 0
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">X-nat:0
</span><span style="box-sizing:border-box;font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold;color:rgb(76,48,171)">m=audio 4012 RTP/SAVP 96 8 120 121</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">c=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">IN IP4 100.113.232.22
b=TIAS:96000
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">rtcp:4013 IN IP4 100.113.232.22
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">sendrecv
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">rtpmap:96 opus/48000/2
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">fmtp:96 useinbandfe</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">c=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">1
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">rtpmap:8 PCMA/8000
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">rtpmap:120 telephone-event/48000
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">fmtp:120 0-16
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">rtpmap:121 telephone-event/8000
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">fmtp:121 0-16
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">ssrc:886437437 cname:61141a4c6ecaa55e
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">crypto:1 AES_256_CM_HMAC_SHA1_80 inline:J9gds2sgq3OQccZ4fQoy3Oh9P2sWAXGHpLx+v/Ykh3gFQtAcaD8u5zpygEw2Dw==
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">crypto:2 AES_256_CM_HMAC_SHA1_32 inline:yVCi20viRSxW+7hkUDjDBfXX4eAsuNrGj96ByTpDejOww8A0+BwSDjO40U1u3A==
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">crypto:3 AES_CM_128_HMAC_SHA1_80 inline:9vWxWlHSBcLYv0p+qYTviva7Bc6tUb+fKblHaQ1D
</span><span style="box-sizing:border-box;color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap;font-weight:bold">a=</span><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">crypto:4 AES_CM_128_HMAC_SHA1_32 inline:UlLlQR2NB1owPDx7fFyGqnq09AVFVOLB50I3f/FC</span><br></div><div><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">```</span></div><div><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap">I'm trying to apply function "fix_nated_sdp" to it, but getting back this error:</span></div><div><span style="color:rgb(80,80,80);font-family:Roboto,"Helvetica Neue",sans-serif;font-size:13px;white-space:pre-wrap"><br></span></div><no `IP[4|6]' in `a=rtcp' field><div><br></div><div>By looking at the source code, seems that the nextissip value is 0, and that's why it fails (<span style="color:rgb(106,106,106);font-family:"Roboto Mono",Menlo,Monaco,Consolas,"Courier New",monospace;font-size:12.446px;white-space:pre-wrap">nextissip value:0/len:14</span>)</div><div><br></div><div>Any idea why?</div></div>