[OpenSIPS-Devel] msg:len is deprecated in master?

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Aug 3 05:14:52 EDT 2017


Hi MAxim,

IMHO, that max_len was a archaic non-sense, since only UDP was 
supported. The max_len translated into hardcoded value (compile option) 
65565 . IMHO, that len test has no sense anymore.

Regards,

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

OpenSIPS Bootcamp 2017, Houston, US
   http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 08/03/2017 06:50 AM, Maxim Sobolev wrote:
> Thanks, Bogdan somehow google failed to index this or maybe I have not 
> been searching properly. In the following sentence what's the new way 
> to refer to the "max_len"?
>
>   * removed *msg:len* keyword along with /max_len/ core value, use $ml
>     <http://www.opensips.org/Documentation/Script-CoreVar-2-4#toc52> core
>     variable instead.
>
> -Max
>
> On Aug 2, 2017 3:20 PM, "Bogdan-Andrei Iancu" <bogdan at opensips.org 
> <mailto:bogdan at opensips.org>> wrote:
>
>     Hi Maxim,
>
>     Yes, in dev version the msg:len and max_len were deprecated - we
>     tried to updated cfg and docs, but if there is something left,
>     please let us know.
>
>     For how to deal with the removed keywords, please see:
>     http://www.opensips.org/Documentation/Migration-2-3-0-to-2-4-0#toc3
>     <http://www.opensips.org/Documentation/Migration-2-3-0-to-2-4-0#toc3>
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>        OpenSIPS Founder and Developer
>        http://www.opensips-solutions.com <http://www.opensips-solutions.com>
>
>     OpenSIPS Bootcamp 2017, Houston, US
>        http://opensips.org/training/OpenSIPS_Bootcamp_2017.html
>     <http://opensips.org/training/OpenSIPS_Bootcamp_2017.html>
>
>     On 08/03/2017 12:29 AM, Maxim Sobolev wrote:
>>     Hi, is msg_len deprecated in latest master? There are tons of
>>     examples in the tree that use it. I am seeing this:
>>
>>     +/home/travis/build/sippy/voiptests/dist/opensips/opensips -f
>>     opensips.cfg -C
>>     Aug  2 21:21:37 [23623] CRITICAL:core:yyerror: parse error in
>>     config file opensips.cfg, line 27, column 12-13: syntax error
>>     Aug  2 21:21:37 [23623] CRITICAL:core:yyerror: parse error in
>>     config file opensips.cfg, line 27, column 12-13: bare word <msg>
>>     found, command calls need '()'
>>     Aug  2 21:21:37 [23623] CRITICAL:core:yyerror: parse error in
>>     config file opensips.cfg, line 27, column 12-13: bad command!)
>>     Aug  2 21:21:37 [23623] CRITICAL:core:yyerror: parse error in
>>     config file opensips.cfg, line 27, column 17-19: bare word <len>
>>     found, command calls need '()'
>>     Aug  2 21:21:37 [23623] CRITICAL:core:yyerror: parse error in
>>     config file opensips.cfg, line 27, column 17-19: bad command:
>>     missing ';'?
>>     Aug  2 21:21:37 [23623] CRITICAL:core:yyerror: parse error in
>>     config file opensips.cfg, line 27, column 27-28: bare word
>>     <max_len> found, command calls need '()'
>>     Aug  2 21:21:37 [23623] CRITICAL:core:yyerror: parse error in
>>     config file opensips.cfg, line 27, column 27-28: bad command:
>>     missing ';'?
>>     Aug  2 21:21:37 [23623] CRITICAL:core:yyerror: parse error in
>>     config file opensips.cfg, line 27, column 29-30: bad command!)
>>     Aug  2 21:21:37 [23623] CRITICAL:core:yyerror: parse error in
>>     config file opensips.cfg, line 30, column 6-7: syntax error
>>     Aug  2 21:21:37 [23623] CRITICAL:core:yyerror: parse error in
>>     config file opensips.cfg, line 30, column 6-7:
>>
>>       27 if (msg:len >= max_len) {
>>       28     sl_send_reply("513", "Message too big");
>>       29     exit;
>>       30 };
>>
>>     Full config here:
>>
>>     https://travis-ci.org/sippy/voiptests/jobs/260374909
>>     <https://travis-ci.org/sippy/voiptests/jobs/260374909>
>>
>>     -Max
>>
>>
>>     _______________________________________________
>>     Devel mailing list
>>     Devel at lists.opensips.org <mailto:Devel at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>>     <http://lists.opensips.org/cgi-bin/mailman/listinfo/devel>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20170803/0185a79e/attachment.html>


More information about the Devel mailing list