[SR-Users] Session timer issue

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 13 11:24:02 CEST 2017


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 at 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 at 101.40.128.122:34260>
> To: "1001"<sip:1001 at 47.93.228.87>
> From: "pc"<sip:1000 at 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 at 47.93.228.87>;tag=f27196751f2f83b7cedd2e1f5efe4626.6254
> From: "pc"<sip:1000 at 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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170613/f0cd7b7c/attachment.html>


More information about the sr-users mailing list