<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
the sdp looks ok, assuming that there is an empty line after P-hint
header.<br>
<br>
Perhaps you should test with a sip phone to see if the call is ok
with it, if yes, then you have to ask the carrier to give you
details about why the call is not accepted.<br>
<br>
Cheers,<br>
DAniel<br>
<br>
<div class="moz-cite-prefix">On 8/13/12 9:52 AM, phillman25 wrote:<br>
</div>
<blockquote
cite="mid:CAEprJzK3qJfU-_A-OPYjRq+iHnYjimTv-u3jrup7i0rDwxA4-g@mail.gmail.com"
type="cite">
<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("application/sdp")
&& search_body("m=video")){</font></p>
<p class="MsoNormal" style="margin-bottom:12pt"><font
color="#222222" face="Arial, sans-serif">
subst_body('#m=video ([0-9]+) RTP/AVP (.*)$# #');</font></p>
<p class="MsoNormal" style="margin-bottom:12pt">
<font color="#222222" face="Arial, sans-serif">
subst_body('#a=rtpmap:34 (.*)$# #');</font></p>
<p class="MsoNormal" style="margin-bottom:12pt"><font
color="#222222" face="Arial, sans-serif">
subst_body('#a=rtpmap:99 (.*)$# #');</font></p>
<p class="MsoNormal" style="margin-bottom:12pt"><font
color="#222222" face="Arial, sans-serif">
subst_body('#a=sendrecv(.*)$# #');</font></p>
<p class="MsoNormal" style="margin-bottom:12pt"><font
color="#222222" face="Arial, sans-serif"> }
</font></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>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a>
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kpw">http://asipto.com/u/kpw</a></pre>
</body>
</html>