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
Contact: <sip:1000@101.40.128.122:34260>
To: "1001"<sip:1001@47.93.228.87>
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