<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi Alain,<br>
<br>
OpenSIPS complains that the actual SDP is 366, while only 364 are
advertised in Content-len hdr - can you confirm this at the pcap
level ?<br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 2021
<a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
<div class="moz-cite-prefix">On 12/6/21 2:55 PM, Alain Bieuzent
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:883E04CB-FD20-4BE6-9E28-B51E031F5353@free.fr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">I
have a case where sipmsg_validate find an issue in SDP
length, opensips find two characters more than the
Content-Length and what i found in tcpdump trace.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">INVITE
<a class="moz-txt-link-freetext" href="sip:33648642792@185.101.180.124:5060">sip:33648642792@185.101.180.124:5060</a> SIP/2.0<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Via:
SIP/2.0/UDP
35.246.200.233:9077;rport;branch=z9hG4bK4b24d98a7dd82e427f5e14c93ae2dba7<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Via:
SIP/2.0/UDP
13.38.77.105:5080;rport;branch=z9hG4bKH012Hr73SycDg<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Max-Forwards:
64<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">From:
"33613630817"
<a class="moz-txt-link-rfc2396E" href="sip:33613630817@13.38.77.105"><sip:33613630817@13.38.77.105></a>;tag=2ZB6X8jjtaH8e<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">To:
<a class="moz-txt-link-rfc2396E" href="sip:33648642792@185.101.180.124:5060"><sip:33648642792@185.101.180.124:5060></a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Call-ID:
c9a92f54-d124-123a-1693-0625bc81f114<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">CSeq:
44840040 INVITE<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Contact:
<a class="moz-txt-link-rfc2396E" href="sip:mod_sofia@13.38.77.105:5080"><sip:mod_sofia@13.38.77.105:5080></a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">User-Agent:
FS16<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Allow:
INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
REGISTER, REFER, NOTIFY<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Supported:
timer, path, replaces<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Allow-Events:
talk, hold, conference, refer<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR">Privacy: none<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR">Content-Type:
application/sdp<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR">Content-Disposition:
session<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Content-Length:
364<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">X-FS-Support:
update_display,send_info<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">P-Asserted-Identity:
"33613630817" <a class="moz-txt-link-rfc2396E" href="sip:33613630817@13.38.77.105"><sip:33613630817@13.38.77.105></a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Record-Route:
<a class="moz-txt-link-rfc2396E" href="sip:35.246.200.233:9077;lr"><sip:35.246.200.233:9077;lr></a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">v=0<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">o=FreeSWITCH
1638764203 1638764204 IN IP4 13.38.77.105<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">s=FreeSWITCH<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">c=IN IP4
13.38.77.105<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR">t=0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR">m=audio 23462 RTP/AVP 8 0
18 101<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">a=rtpmap:8
PCMA/8000<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">a=rtpmap:0
PCMU/8000<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">a=rtpmap:18
G729/8000<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">a=fmtp:18
annexb=no<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">a=rtpmap:101
telephone-event/8000<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">a=fmtp:101
0-16<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">a=rtcp-mux<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">a=rtcp:23462
IN IP4 13.38.77.105<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">a=silenceSupp:off
- - - -<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">a=ptime:20<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:FR"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:FR"
lang="EN-US">opensips logs :<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Dec 6
11:47:45 lbsip-rtpe-test opensips[2756]:
DBG:core:get_hdr_field: content_length=364<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Dec 6
11:47:45 lbsip-rtpe-test opensips[2756]:
DBG:core:get_hdr_field: found end of header<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Dec 6
11:47:45 lbsip-rtpe-test opensips[2756]:
DBG:core:receive_msg: After parse_msg...<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Dec 6
11:47:45 lbsip-rtpe-test opensips[2756]:
DBG:core:receive_msg: preparing to run routing scripts...<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Dec 6
11:47:45 lbsip-rtpe-test opensips[2756]:
DBG:core:parse_headers: flags=8<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Dec 6
11:47:45 lbsip-rtpe-test opensips[2756]:
DBG:core:parse_headers: flags=ffffffffffffffff<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Dec 6
11:47:45 lbsip-rtpe-test opensips[2756]:
DBG:core:parse_headers: flags=ffffffffffffffff<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Dec 6
11:47:45 lbsip-rtpe-test opensips[2756]:
DBG:sipmsgops:w_sip_validate: message does not comply with
SIP RFC3261 : (invalid body - content length 364 different
than actual body 366#012)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Dec 6
11:47:45 lbsip-rtpe-test opensips[2756]:
DBG:core:comp_scriptvar: str 29 : 35.246.200.233<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:FR" lang="EN-US">Dec 6
11:47:45 lbsip-rtpe-test opensips[2756]: Dropping mal formed
Messages Retcode : -5 IP:35.246.200.233 callID:
c9a92f54-d124-123a-1693-0625bc81f114 ,Reason : Invalid
Content-Length---<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">On
Wireshark, the SDP part length is also 364 bytes.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">I
can send the pcap if needed<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Thanks
for your help.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Alain<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:FR"
lang="EN-US"> </span><span
style="font-size:11.0pt;mso-fareast-language:FR"><o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>