Hello,

so, checking in the code for that log messages, it appears that min_se parameter has to be at least 90, you have 60:

modparam("sst", "min_se", 60)

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.

Somehow is also mentioned in a docs examples:

  - https://kamailio.org/docs/modules/5.0.x/modules/sst.html#sst.f.sstCheckMin

Cheers,
Daniel

On 14.06.17 15:31, sgy wrote:

HI Daniel,

I checkout the latest codes, compile and install it, please refer to the following logs.

Related logs:
Jun 14 21:26:07 iZ2ze3uk97m2bfv681kyx4Z /usr/local/sbin/kamailio[6926]: DEBUG: sanity [sanity_mod.c:256]: w_sanity_check(): sanity checks result: 1
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
: 90
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
#012
Jun 14 21:26:07 iZ2ze3uk97m2bfv681kyx4Z /usr/local/sbin/kamailio[6926]: DEBUG: sl [sl.c:282]: send_reply(): reply in stateless mode (sl)
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)
Jun 14 21:26:07 iZ2ze3uk97m2bfv681kyx4Z /usr/local/sbin/kamailio[6926]: ERROR: <script>: 422 Session Timer Too Small reply sent.
Jun 14 21:26:07 iZ2ze3uk97m2bfv681kyx4Z /usr/local/sbin/kamailio[6926]: DEBUG: <core> [core/receive.c:281]: receive_msg(): request-route executed in: 15
94 usec




--
Best Regards,
Shengy

At 2017-06-13 17:24:02, "Daniel-Constantin Mierla" <miconda@gmail.com> wrote:

Hello,

can you pull again the latest master, re-compile and install, then set debug=3 in kamailio cfg and test again?

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.

You can send the relevant log messages from syslog once you do the test with such an invite.

Cheers,
Daniel


On 12.06.17 16:53, sgy wrote:
Hi All,
   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?


INVITE sip:1001@47.93.228.87 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.104:34260;branch=z9hG4bK-d87543-020579432b285a66-1--d87543-;rport
Max-Forwards: 70
From: "pc"<sip:1000@47.93.228.87>;tag=5a6d113b
Call-ID: MDZjOGY5OGYzYWQ0YmE2MGJmN2U5Y2YwNDYzOTliNDI.
CSeq: 1 INVITE
Session-Expires: 95
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
Supported: timer
User-Agent: eyeBeam release 1011d stamp 40820
Content-Length: 444

v=0
o=- 2 2 IN IP4 192.168.1.104
s=CounterPath eyeBeam 1.5

SIP/2.0 422 Session Timer Too Small
Via: SIP/2.0/UDP 192.168.1.104:34260;branch=z9hG4bK-d87543-020579432b285a66-1--d87543-;rport=34260;received=101.40.128.122
To: "1001"<sip:1001@47.93.228.87>;tag=f27196751f2f83b7cedd2e1f5efe4626.6254
From: "pc"<sip:1000@47.93.228.87>;tag=5a6d113b
Call-ID: MDZjOGY5OGYzYWQ0YmE2MGJmN2U5Y2YwNDYzOTliNDI.
CSeq: 1 INVITE
Min-SE: 60
Server: kamailio (5.1.0-dev3 (x86_64/linux))
Content-Length: 0


My config:
modparam("dialog", "dlg_flag", 4)
modparam("dialog", "db_url", DBURL)
modparam("dialog", "db_mode", 1)
modparam("dialog", "default_timeout", 80)
modparam("dialog", "timeout_avp", "$avp(i:10)")

modparam("sst", "timeout_avp", "$avp(i:10)")
modparam("sst", "min_se", 60)
modparam("sst", "sst_flag", 6)

       if (method=="INVITE") {
                if (sstCheckMin("1")) {
                        xlog("L_ERR", "422 Session Timer Too Small reply sent.\n");
                        exit;
                }
                setflag(4); # set the dialog flag
                setflag(6); # Set the sst flag
        }

--
Best Regards,
Shengy


 



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com


 


-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com