<div>Dear List<div><br></div><div>I am trying to remove specific lines from the following original SDP body:</div></div><div><div><br></div><div><br></div><div>Content-Type: application/sdp</div><div>Content-Length: 406</div>
<div><br></div><div>v=0</div><div>o=root 3048 3048 IN IP4 xxx.xxx.xxx.xxx</div><div>s=session</div><div>c=IN IP4 xxx.xxx.xxx.xxx</div><div>b=CT:384</div><div>t=0 0</div><div>m=audio 11904 RTP/AVP 0 8 18 101</div><div>a=rtpmap:0 PCMU/8000</div>
<div>a=rtpmap:8 PCMA/8000</div><div>a=rtpmap:18 G729/8000</div><div>a=fmtp:18 annexb=no</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=silenceSupp:off - - - -</div><div>a=ptime:20</div><div>
a=sendrecv</div><div>m=video 11602 RTP/AVP 34 99</div><div>a=rtpmap:34 H263/90000</div><div>a=rtpmap:99 H264/90000</div><div>a=sendrecv</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>I need to remove the following lines from the above SDP body as my International carrier does not support Video capabilities:</div>
<div><p class="MsoNormal" style="margin-bottom:12pt"><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(34,34,34)">m=video 15042 RTP/AVP 34 99<br>a=rtpmap:34 H263/90000<br>a=rtpmap:99 H264/90000</span><span style="font-size:10pt;font-family:Verdana,sans-serif"></span></p>
<br class="Apple-interchange-newline"></div></div><div><br></div><div><br></div><div><p class="MsoNormal" style="margin-bottom:12pt"><font color="#222222" face="Arial, sans-serif"><span style="font-size:12px">I used the following code in Kamailio config:</span></font></p>
<p class="MsoNormal" style="margin-bottom:12pt"><font color="#222222" face="Arial, sans-serif"><span style="font-size:12px"></span></font></p><p class="MsoNormal" style="margin-bottom:12pt"><font color="#222222" face="Arial, sans-serif">if(has_body(&quot;application/sdp&quot;) &amp;&amp; search_body(&quot;m=video&quot;)){</font></p>
<p class="MsoNormal" style="margin-bottom:12pt"><font color="#222222" face="Arial, sans-serif">                   subst_body(&#39;#m=video ([0-9]+) RTP/AVP (.*)$# #&#39;);</font></p><p class="MsoNormal" style="margin-bottom:12pt">
<font color="#222222" face="Arial, sans-serif">                   subst_body(&#39;#a=rtpmap:34 (.*)$# #&#39;);</font></p><p class="MsoNormal" style="margin-bottom:12pt"><font color="#222222" face="Arial, sans-serif">                   subst_body(&#39;#a=rtpmap:99 (.*)$# #&#39;);</font></p>
<p class="MsoNormal" style="margin-bottom:12pt"><font color="#222222" face="Arial, sans-serif">                   subst_body(&#39;#a=sendrecv(.*)$# #&#39;);</font></p><p class="MsoNormal" style="margin-bottom:12pt"><font color="#222222" face="Arial, sans-serif">        }           </font></p>
<p></p></div><div><br></div><div><br></div><div><br></div><div>Content-Type: application/sdp</div><div>Content-Length: 325</div><div>P-hint: outbound</div><div>v=0</div><div>o=root 3048 3048 IN IP4 xxx.xxx.xxx.xxx</div><div>
s=session</div><div>c=IN IP4 xxx.xxx.xxx.xxx</div><div>b=CT:384</div><div>t=0 0</div><div>m=audio 11904 RTP/AVP 0 8 18 101</div><div>a=rtpmap:0 PCMU/8000</div><div>a=rtpmap:8 PCMA/8000</div><div>a=rtpmap:18 G729/8000</div>
<div>a=fmtp:18 annexb=no</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=silenceSupp:off - - - -</div><div>a=ptime:20</div><div>a=sendrecv</div><div><br></div><div><br></div><div>As you can see the m=video body has been removed, however, calls are still failing. Is there something i have missed?</div>
<div><br></div><div>I am using Kamailio v3.2.2</div><div><br></div><div><br></div><div>Thanking you in advance!</div><div><br></div><div>Phillip</div>