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

Maxim Sobolev sobomax at sippysoft.com
Thu Aug 3 14:45:58 EDT 2017


 ~/projects/opensips]$ find ./ -type f -print0 | xargs -0 grep -lw 'msg:len'
./cfg.y
./cfg.lex
./examples/acc.cfg
./examples/nathelper.cfg
./examples/pstn.cfg
./examples/replicate.cfg
./examples/serial_183.cfg
./modules/db_text/README
./modules/mangler/mangler.cfg
./modules/nathelper/examples/4to6.cfg
./modules/nathelper/examples/alg.cfg
./modules/osp/etc/sample-osp-opensips.cfg
./modules/rtpproxy/examples/4to6.cfg
./modules/rtpproxy/examples/alg.cfg
./modules/seas/README
./modules/speeddial/README
./test/11.cfg
./test/13.cfg
./test/14.cfg
./test/26.cfg
./test/30.cfg
./test/7.cfg
./test/presence.cfg
./lex.yy.c

Still plenty of refs. :)

Re: Cluecon, unfortunately not this time (ENOTIME), next year most likely.
:(

On Thu, Aug 3, 2017 at 2:20 AM, Bogdan-Andrei Iancu <bogdan at opensips.org>
wrote:

> Hi Maxim,
>
> Indeed, there are some test/example cfg files which we missed to migrate -
> we will do to it today.
>
> In regards to the ChangeLog, we update the ChangeLog at release time and
> this change is still on devel branch - still "git log" gives you all the
> details ;)
>
> BTW, will you be in Chicago for ClueCOn ?
>
> 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 02:23 AM, Maxim Sobolev wrote:
>
> Well if that's the case, somebody I think needs to go over all .cfg
> examples and fix those. It would also be nice if a note is left in the
> ChangeLog, suggesting what is a replacement.
>
> -Max
>
> On Aug 2, 2017 2:49 PM, <jarrod at unixc.org> wrote:
>
> Yes: https://github.com/OpenSIPS/opensips/commit/9c9252c97b4
> e641d814320f33d795a43c3ea7b0e
>
> On Aug 2, 2017, at 4:29 PM, Maxim Sobolev <sobomax at sippysoft.com> 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
>
> -Max
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>
>
>
> _______________________________________________
> Devel mailing listDevel at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>
>


-- 
Maksym Sobolyev
Sippy Software, Inc.
Internet Telephony (VoIP) Experts
Tel (Canada): +1-778-783-0474
Tel (Toll-Free): +1-855-747-7779
Fax: +1-866-857-6942
Web: http://www.sippysoft.com
MSN: sales at sippysoft.com
Skype: SippySoft
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20170803/2c7af25c/attachment.html>


More information about the Devel mailing list