<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>so, checking in the code for that log messages, it appears that
      min_se parameter has to be at least 90, you have 60:<br>
    </p>
    <p>modparam("sst", "min_se", 60)<br>
    </p>
    Can you change and see if works ok? If yes, then I will add some
    checks in the code to detect the situation at start up.<br>
    <br>
    Somehow is also mentioned in a docs examples:<br>
    <br>
      -
<a class="moz-txt-link-freetext" href="https://kamailio.org/docs/modules/5.0.x/modules/sst.html#sst.f.sstCheckMin">https://kamailio.org/docs/modules/5.0.x/modules/sst.html#sst.f.sstCheckMin</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 14.06.17 15:31, sgy wrote:<br>
    </div>
    <blockquote
      cite="mid:5b88bd61.1067e.15ca6cd9b4f.Coremail.nucsgy@163.com"
      type="cite">
      <div
        style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><br>
        <div>HI Daniel,</div>
        <div><br>
        </div>
        <div>I checkout the latest codes, compile and install it, please
          refer to the following logs.</div>
        <div><br>
        </div>
        <div>Related logs:</div>
        <div>
          <div>Jun 14 21:26:07 iZ2ze3uk97m2bfv681kyx4Z
            /usr/local/sbin/kamailio[6926]: DEBUG: sanity
            [sanity_mod.c:256]: w_sanity_check(): sanity checks result:
            1</div>
          <div>Jun 14 21:26:07 iZ2ze3uk97m2bfv681kyx4Z
            /usr/local/sbin/kamailio[6926]: DEBUG: sst
            [sst_handlers.c:668]: ki_sst_check_min(): Session-Expires:
            95; MIN-SE</div>
          <div>: 90</div>
          <div>Jun 14 21:26:07 iZ2ze3uk97m2bfv681kyx4Z
            /usr/local/sbin/kamailio[6926]: DEBUG: sst
            [sst_handlers.c:683]: ki_sst_check_min(): Sending 422:
            Min-SE: 60#015</div>
          <div>#012</div>
          <div>Jun 14 21:26:07 iZ2ze3uk97m2bfv681kyx4Z
            /usr/local/sbin/kamailio[6926]: DEBUG: sl [sl.c:282]:
            send_reply(): reply in stateless mode (sl)</div>
          <div>Jun 14 21:26:07 iZ2ze3uk97m2bfv681kyx4Z
            /usr/local/sbin/kamailio[6926]: DEBUG: sst
            [sst_handlers.c:688]: ki_sst_check_min(): Done returning
            true (1)</div>
          <div>Jun 14 21:26:07 iZ2ze3uk97m2bfv681kyx4Z
            /usr/local/sbin/kamailio[6926]: ERROR: <script>: 422
            Session Timer Too Small reply sent.</div>
          <div>Jun 14 21:26:07 iZ2ze3uk97m2bfv681kyx4Z
            /usr/local/sbin/kamailio[6926]: DEBUG: <core>
            [core/receive.c:281]: receive_msg(): request-route executed
            in: 15</div>
          <div>94 usec</div>
        </div>
        <div><br>
        </div>
        <br>
        <br>
        <br>
        <div style="position:relative;zoom:1">--<br>
          <div>Best Regards,</div>
          <div>Shengy</div>
        </div>
        <br>
        At 2017-06-13 17:24:02, "Daniel-Constantin Mierla"
        <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a> wrote:<br>
        <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex;
          MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
          <p>Hello,</p>
          <p>can you pull again the latest master, re-compile and
            install, then set debug=3 in kamailio cfg and test again?</p>
          <p>I pushed a patch that should print a log message with the
            values for session expire and min-se when rejecting with
            422. I couldn't spot something wrong at a quick look at the
            code, but the values could be wrong and I want to double
            check.</p>
          <p>You can send the relevant log messages from syslog once you
            do the test with such an invite.</p>
          <p>Cheers,<br>
            Daniel<br>
          </p>
          <br>
          <div class="moz-cite-prefix">On 12.06.17 16:53, sgy wrote:<br>
          </div>
          <blockquote
            cite="mid:28eeafc8.11bd9.15c9ccbf346.Coremail.nucsgy@163.com"
            type="cite">
            <div
              style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
              <div>Hi All,</div>
              <div>   As I know, if session timer of request is less
                than server's Min-SE, the server will reply with its
                Min-SE, but the following packet confuse me, anyone can
                show me why?</div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>INVITE <a moz-do-not-send="true"
                  class="moz-txt-link-freetext"
                  href="sip:1001@47.93.228.87">sip:1001@47.93.228.87</a>
                SIP/2.0</div>
              <div>Via: SIP/2.0/UDP
192.168.1.104:34260;branch=z9hG4bK-d87543-020579432b285a66-1--d87543-;rport</div>
              <div>Max-Forwards: 70</div>
              <div>Contact: <a moz-do-not-send="true"
                  class="moz-txt-link-rfc2396E"
                  href="sip:1000@101.40.128.122:34260"><sip:1000@101.40.128.122:34260></a></div>
              <div>To: "1001"<a moz-do-not-send="true"
                  class="moz-txt-link-rfc2396E"
                  href="sip:1001@47.93.228.87"><sip:1001@47.93.228.87></a></div>
              <div>From: "pc"<a moz-do-not-send="true"
                  class="moz-txt-link-rfc2396E"
                  href="sip:1000@47.93.228.87"><sip:1000@47.93.228.87></a>;tag=5a6d113b</div>
              <div>Call-ID: MDZjOGY5OGYzYWQ0YmE2MGJmN2U5Y2YwNDYzOTliNDI.</div>
              <div>CSeq: 1 INVITE</div>
              <div><b>Session-Expires: 95</b></div>
              <div><b>Min-SE: 90</b></div>
              <div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
                NOTIFY, MESSAGE, SUBSCRIBE, INFO</div>
              <div>Content-Type: application/sdp</div>
              <div>Supported: timer</div>
              <div>User-Agent: eyeBeam release 1011d stamp 40820</div>
              <div>Content-Length: 444</div>
              <div><br>
              </div>
              <div>v=0</div>
              <div>o=- 2 2 IN IP4 192.168.1.104</div>
              <div>s=CounterPath eyeBeam 1.5</div>
              <div><br>
              </div>
              <div>
                <div>SIP/2.0 422 Session Timer Too Small</div>
                <div>Via: SIP/2.0/UDP
192.168.1.104:34260;branch=z9hG4bK-d87543-020579432b285a66-1--d87543-;rport=34260;received=101.40.128.122</div>
                <div>To:
                  "1001"<a moz-do-not-send="true"
                    class="moz-txt-link-rfc2396E"
                    href="sip:1001@47.93.228.87"><sip:1001@47.93.228.87></a>;tag=f27196751f2f83b7cedd2e1f5efe4626.6254</div>
                <div>From: "pc"<a moz-do-not-send="true"
                    class="moz-txt-link-rfc2396E"
                    href="sip:1000@47.93.228.87"><sip:1000@47.93.228.87></a>;tag=5a6d113b</div>
                <div>Call-ID:
                  MDZjOGY5OGYzYWQ0YmE2MGJmN2U5Y2YwNDYzOTliNDI.</div>
                <div>CSeq: 1 INVITE</div>
                <div><b>Min-SE: 60</b></div>
                <div>Server: kamailio (5.1.0-dev3 (x86_64/linux))</div>
                <div>Content-Length: 0</div>
                <div><br>
                </div>
              </div>
              <br>
              <div>My config:</div>
              <div>
                <div>modparam("dialog", "dlg_flag", 4)</div>
                <div>modparam("dialog", "db_url", DBURL)</div>
                <div>modparam("dialog", "db_mode", 1)</div>
                <div>modparam("dialog", "default_timeout", 80)</div>
                <div>modparam("dialog", "timeout_avp", "$avp(i:10)")</div>
                <div><br>
                </div>
                <div>modparam("sst", "timeout_avp", "$avp(i:10)")</div>
                <div><b>modparam("sst", "min_se", 60)</b></div>
                <div>modparam("sst", "sst_flag", 6)</div>
              </div>
              <div><br>
              </div>
              <div>
                <div>       if (method=="INVITE") {</div>
                <div>                if (sstCheckMin("1")) {</div>
                <div>                        xlog("L_ERR", "422 Session
                  Timer Too Small reply sent.\n");</div>
                <div>                        exit;</div>
                <div>                }</div>
                <div>                setflag(4); # set the dialog flag</div>
                <div>                setflag(6); # Set the sst flag</div>
                <div>        }</div>
              </div>
              <br>
              <div style="position:relative;zoom:1">--<br>
                <div>Best Regards,</div>
                <div>Shengy</div>
              </div>
            </div>
            <br>
            <br>
            <span title="neteasefooter">
              <p> </p>
            </span><br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
          </blockquote>
          <br>
          <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
        </blockquote>
      </div>
      <br>
      <br>
      <span title="neteasefooter">
        <p> </p>
      </span>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>