Hi Daniel <div><br></div><div>Yes there is an empty line after P-hint header.</div><div>I will make a few tests as you suggested below to see whether its the carrier.</div><div><br></div><div>Thanks</div><div>Phillip<br><br>
<div class="gmail_quote">On Tue, Aug 14, 2012 at 12:15 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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<div><div class="h5"><br>
<br>
<div>On 8/13/12 9:52 AM, phillman25 wrote:<br>
</div>
<blockquote 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>
</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>
</div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">--
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a>
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - <a href="http://asipto.com/u/kpw" target="_blank">http://asipto.com/u/kpw</a></pre>
</font></span></div>
</blockquote></div><br></div>