<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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 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 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 class="moz-txt-link-rfc2396E" href="sip:1001@47.93.228.87"><sip:1001@47.93.228.87></a></div>
<div>From: "pc"<a 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 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 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 class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a 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 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>