[OpenSIPS-Users] Message size and msg:len

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Mar 26 16:38:34 CET 2013


Hi Kevin,

msg:len is the total len of the SIP message : headers + body.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/26/2013 03:47 PM, Kevin Mathy wrote:
> Hi List,
>
> For now, we've got in our code the following lines to check the 
> message size :
>
> /if(msg:len>2048)/
> /    {/
> /        sl_send_reply("413", "message too large");/
> /        xlog("L_ERR","$ci Message Too Large for: [$fu/$tu/$ru/$ci]\n");/
> /        exit;/
> /    };/
> /
> /
> But, I'd like to know if "msg:len" equals the size of SIP Message + 
> SDP Body ? Or only SIP Message, without SDP ?
> If it doesn't care of SDP Body, how can we check its size ?
>
> 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...
>
> Thanks a lot,
>
> *
> Bien cordialement,
> Best Regards,
>
> **Kevin MATHY*
> *
> *
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130326/486cffda/attachment.htm>


More information about the Users mailing list