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)
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: 1Jun 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: 90Jun 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#012Jun 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: 1594 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.0Via: SIP/2.0/UDP 192.168.1.104:34260;branch=z9hG4bK-d87543-020579432b285a66-1--d87543-;rportMax-Forwards: 70Contact: <sip:1000@101.40.128.122:34260>To: "1001"<sip:1001@47.93.228.87>From: "pc"<sip:1000@47.93.228.87>;tag=5a6d113bCall-ID: MDZjOGY5OGYzYWQ0YmE2MGJmN2U5Y2YwNDYzOTliNDI.CSeq: 1 INVITESession-Expires: 95Min-SE: 90Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFOContent-Type: application/sdpSupported: timerUser-Agent: eyeBeam release 1011d stamp 40820Content-Length: 444
v=0o=- 2 2 IN IP4 192.168.1.104s=CounterPath eyeBeam 1.5
SIP/2.0 422 Session Timer Too SmallVia: SIP/2.0/UDP 192.168.1.104:34260;branch=z9hG4bK-d87543-020579432b285a66-1--d87543-;rport=34260;received=101.40.128.122To: "1001"<sip:1001@47.93.228.87>;tag=f27196751f2f83b7cedd2e1f5efe4626.6254From: "pc"<sip:1000@47.93.228.87>;tag=5a6d113bCall-ID: MDZjOGY5OGYzYWQ0YmE2MGJmN2U5Y2YwNDYzOTliNDI.CSeq: 1 INVITEMin-SE: 60Server: 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 flagsetflag(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