<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi Kevin,<br>
<br>
msg:len is the total len of the SIP message : headers + body.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 03/26/2013 03:47 PM, Kevin Mathy wrote:
<blockquote
cite="mid:CAOmzhX=oz=fhdDAS48aESK_tXAcPsQtDEBM4WX4TYhy222N_DA@mail.gmail.com"
type="cite">Hi List,
<div><br>
</div>
<div>For now, we've got in our code the following lines to check
the message size :</div>
<div><br>
</div>
<div>
<div><i>if(msg:len>2048)</i></div>
<div><i> {</i></div>
<div><i> sl_send_reply("413", "message too large");</i></div>
<div><i> xlog("L_ERR","$ci Message Too Large for:
[$fu/$tu/$ru/$ci]\n");</i></div>
<div><i> exit;</i></div>
<div><i> };</i></div>
<div><i><br>
</i></div>
<div>But, I'd like to know if "msg:len" equals the size of SIP
Message + SDP Body ? Or only SIP Message, without SDP ? </div>
<div>If it doesn't care of SDP Body, how can we check its size
? </div>
<div><br>
</div>
<div>I'm asking that because one of our providers may send us
SIP messages of 2048 bytes, with SDP body of 1024 bytes, and
we have to adapt our OpenSIPS configuration...</div>
<div><br>
</div>
<div>Thanks a lot, </div>
<div><br>
</div>
<div><b>
<div><span style="font-weight: normal;">Bien cordialement, </span></div>
<div><span style="font-weight: normal;">Best Regards, </span></div>
<div><span style="font-weight: normal;"><br>
</span></div>
</b><b>Kevin MATHY</b>
<div><b><br>
</b></div>
</div>
</div>
<br>
<img moz-do-not-send="true"
src="http://www.hexanet.fr/sites/files/hexanet/files/20130205_signature_hexanet.gif">
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
</body>
</html>