<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi MAxim,<br>
      <br>
      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.<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>

OpenSIPS Bootcamp 2017, Houston, US
  <a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2017.html">http://opensips.org/training/OpenSIPS_Bootcamp_2017.html</a>
</pre>
    <div class="moz-cite-prefix">On 08/03/2017 06:50 AM, Maxim Sobolev
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAH7qZfthXAGmPJBWt=+uNo2a1=eNZNFePc9OVqgSDetc1oozJA@mail.gmail.com">
      <div dir="auto">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"?
        <div dir="auto"><br>
        </div>
        <div dir="auto">
          <ul
style="margin-top:0px;margin-bottom:0px;color:rgb(102,102,102);font-family:"trebuchet
ms",sans-serif,verdana,arial;font-size:13.008px;background-color:rgb(255,255,255)">
            <li>removed <strong>msg:len</strong> keyword along with <em>max_len</em> core
              value, use <a
                href="http://www.opensips.org/Documentation/Script-CoreVar-2-4#toc52"
style="color:rgb(24,86,98);font-weight:bold;text-decoration-line:none;width:100px"
                moz-do-not-send="true">$ml</a> core variable instead.</li>
          </ul>
          <div dir="auto"><font color="#666666" face="trebuchet ms,
              sans-serif, verdana, arial"><span
                style="font-size:13.008px">-Max</span></font></div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Aug 2, 2017 3:20 PM, "Bogdan-Andrei
          Iancu" <<a href="mailto:bogdan@opensips.org"
            moz-do-not-send="true">bogdan@opensips.org</a>> wrote:<br
            type="attribution">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> <tt>Hi Maxim,<br>
                <br>
                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.<br>
                <br>
                For how to deal with the removed keywords, please see:<br>
                    <a
                  class="m_5407888534858610778moz-txt-link-freetext"
href="http://www.opensips.org/Documentation/Migration-2-3-0-to-2-4-0#toc3"
                  target="_blank" moz-do-not-send="true">http://www.opensips.org/<wbr>Documentation/Migration-2-3-0-<wbr>to-2-4-0#toc3</a><br>
                <br>
                Regards,<br>
              </tt>
              <pre class="m_5407888534858610778moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="m_5407888534858610778moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">http://www.opensips-solutions.<wbr>com</a>

OpenSIPS Bootcamp 2017, Houston, US
  <a class="m_5407888534858610778moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2017.html" target="_blank" moz-do-not-send="true">http://opensips.org/training/<wbr>OpenSIPS_Bootcamp_2017.html</a>
</pre>
              <div class="m_5407888534858610778moz-cite-prefix">On
                08/03/2017 12:29 AM, Maxim Sobolev wrote:<br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">
                  <div class="m_5407888534858610778gmail_signature">Hi,
                    is msg_len deprecated in latest master? There are
                    tons of examples in the tree that use it. I am
                    seeing this:</div>
                  <div class="m_5407888534858610778gmail_signature"><br>
                  </div>
                  <div class="m_5407888534858610778gmail_signature">
                    <div class="m_5407888534858610778gmail_signature">
                      <div class="m_5407888534858610778gmail_signature">+/home/travis/build/sippy/<wbr>voiptests/dist/opensips/<wbr>opensips
                        -f opensips.cfg -C</div>
                      <div class="m_5407888534858610778gmail_signature">Aug
                         2 21:21:37 [23623] CRITICAL:core:yyerror: parse
                        error in config file opensips.cfg, line 27,
                        column 12-13: syntax error</div>
                      <div class="m_5407888534858610778gmail_signature">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 '()'</div>
                      <div class="m_5407888534858610778gmail_signature">Aug
                         2 21:21:37 [23623] CRITICAL:core:yyerror: parse
                        error in config file opensips.cfg, line 27,
                        column 12-13: bad command!)</div>
                      <div class="m_5407888534858610778gmail_signature">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 '()'</div>
                      <div class="m_5407888534858610778gmail_signature">Aug
                         2 21:21:37 [23623] CRITICAL:core:yyerror: parse
                        error in config file opensips.cfg, line 27,
                        column 17-19: bad command: missing ';'?</div>
                      <div class="m_5407888534858610778gmail_signature">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 '()'</div>
                      <div class="m_5407888534858610778gmail_signature">Aug
                         2 21:21:37 [23623] CRITICAL:core:yyerror: parse
                        error in config file opensips.cfg, line 27,
                        column 27-28: bad command: missing ';'?</div>
                      <div class="m_5407888534858610778gmail_signature">Aug
                         2 21:21:37 [23623] CRITICAL:core:yyerror: parse
                        error in config file opensips.cfg, line 27,
                        column 29-30: bad command!)</div>
                      <div class="m_5407888534858610778gmail_signature">Aug
                         2 21:21:37 [23623] CRITICAL:core:yyerror: parse
                        error in config file opensips.cfg, line 30,
                        column 6-7: syntax error</div>
                      <div class="m_5407888534858610778gmail_signature">Aug
                         2 21:21:37 [23623] CRITICAL:core:yyerror: parse
                        error in config file opensips.cfg, line 30,
                        column 6-7: </div>
                    </div>
                    <div class="m_5407888534858610778gmail_signature"><br>
                    </div>
                    <div class="m_5407888534858610778gmail_signature"> 
                        27<span style="white-space:pre-wrap">  </span>  
                       if (msg:len >= max_len) {<br>
                    </div>
                    <div class="m_5407888534858610778gmail_signature"> 
                        28<span style="white-space:pre-wrap">  </span>  
                           sl_send_reply("513", "Message too big");</div>
                    <div class="m_5407888534858610778gmail_signature"> 
                        29<span style="white-space:pre-wrap">  </span>  
                           exit;</div>
                    <div class="m_5407888534858610778gmail_signature"> 
                        30<span style="white-space:pre-wrap">  </span>  
                       };</div>
                    <div class="m_5407888534858610778gmail_signature"><br>
                    </div>
                    <div class="m_5407888534858610778gmail_signature">Full
                      config here:</div>
                    <div class="m_5407888534858610778gmail_signature"><br>
                    </div>
                    <div class="m_5407888534858610778gmail_signature"><a
href="https://travis-ci.org/sippy/voiptests/jobs/260374909"
                        target="_blank" moz-do-not-send="true">https://travis-ci.org/sippy/<wbr>voiptests/jobs/260374909</a><br>
                    </div>
                    <div class="m_5407888534858610778gmail_signature"><br>
                    </div>
                    <div class="m_5407888534858610778gmail_signature">-Max</div>
                  </div>
                </div>
                <br>
                <fieldset
                  class="m_5407888534858610778mimeAttachmentHeader"></fieldset>
                <br>
                <pre>______________________________<wbr>_________________
Devel mailing list
<a class="m_5407888534858610778moz-txt-link-abbreviated" href="mailto:Devel@lists.opensips.org" target="_blank" moz-do-not-send="true">Devel@lists.opensips.org</a>
<a class="m_5407888534858610778moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/devel</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>