<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br>Hi Daniel, thank you for looking into this. I understand what you are saying and what is happening is very similar.<br>&nbsp;The linksys is set to 10 secs, so around 8 secs it sends a new registration. Kamailio replies with 30 but the linksys <br>ignores it and keeps sending the registration every 8 secs. But the fact is that the AOR is being updated every <br>8 seconds, as you can see below [at the bottom of the email], which can be a problem with a lot of customers <br>and registration interval of 2-3 secs.<br><br><br>mysql&gt; select username,contact,received,expires,cseq,last_modified,user_agent from location where username = '300';<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>| username | contact&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | received | expires&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | cseq&nbsp; | last_modified&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | user_agent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>| 300&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | sip:300@192.168.1.6:41264 | NULL&nbsp;&nbsp;&nbsp;&nbsp; | 2011-08-19 07:47:54 | 21584 | 2011-08-19 07:47:24 | Linksys/PAP2T-5.1.6(LS) |<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>1 row in set (0.00 sec)<br><br>mysql&gt; select username,contact,received,expires,cseq,last_modified,user_agent from location where username = '300';<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>| username | contact&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | received | expires&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | cseq&nbsp; | last_modified&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | user_agent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>| 300&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | sip:300@192.168.1.6:41264 | NULL&nbsp;&nbsp;&nbsp;&nbsp; | 2011-08-19 07:48:02 | 21585 | 2011-08-19 07:47:32 | Linksys/PAP2T-5.1.6(LS) |<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>1 row in set (0.00 sec)<br><br>mysql&gt; select username,contact,received,expires,cseq,last_modified,user_agent from location where username = '300';<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>| username | contact&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | received | expires&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | cseq&nbsp; | last_modified&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | user_agent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>| 300&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | sip:300@192.168.1.6:41264 | NULL&nbsp;&nbsp;&nbsp;&nbsp; | 2011-08-19 07:48:10 | 21586 | 2011-08-19 07:47:40 | Linksys/PAP2T-5.1.6(LS) |<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>1 row in set (0.00 sec)<br><br>mysql&gt; select username,contact,received,expires,cseq,last_modified,user_agent from location where username = '300';<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>| username | contact&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | received | expires&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | cseq&nbsp; | last_modified&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | user_agent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>| 300&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | sip:300@192.168.1.6:41264 | NULL&nbsp;&nbsp;&nbsp;&nbsp; | 2011-08-19 07:48:18 | 21587 | 2011-08-19 07:47:48 | Linksys/PAP2T-5.1.6(LS) |<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>1 row in set (0.00 sec)<br><br>mysql&gt; select username,contact,received,expires,cseq,last_modified,user_agent from location where username = '300';<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>| username | contact&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | received | expires&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | cseq&nbsp; | last_modified&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | user_agent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>| 300&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | sip:300@192.168.1.6:41264 | NULL&nbsp;&nbsp;&nbsp;&nbsp; | 2011-08-19 07:48:26 | 21588 | 2011-08-19 07:47:56 | Linksys/PAP2T-5.1.6(LS) |<br>+----------+---------------------------+----------+---------------------+-------+---------------------+-------------------------+<br>1 row in set (0.00 sec)<br><br><br>REGISTER sip:192.168.1.194 SIP/2.0<br>Via: SIP/2.0/UDP 192.168.1.6:41264;branch=z9hG4bK-9b668c64<br>From: 300 &lt;sip:300@192.168.1.194&gt;;tag=b5ca67bbbdf6bco0<br>To: 300 &lt;sip:300@192.168.1.194&gt;<br>Call-ID: f9529c78-63628117@172.31.196.45<br>CSeq: 21584 REGISTER<br>Max-Forwards: 70<br>Authorization: Digest username="300",realm="192.168.1.194",nonce="Tk5OZ05OTTsZu75W6fbHxQjiBwnTxMwHdJ7+cYA=",uri="sip:192.168.1.194",algorithm=MD5,response="14e9fb5fe39d959ad92fc08f0aed1539"<br>Contact: 300 &lt;sip:300@192.168.1.6:41264&gt;;expires=10<br>User-Agent: Linksys/PAP2T-5.1.6(LS)<br>Content-Length: 0<br>Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER<br>Supported: x-sipura, replaces<br><br><br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 192.168.1.6:41264;branch=z9hG4bK-9b668c64<br>From: 300 &lt;sip:300@192.168.1.194&gt;;tag=b5ca67bbbdf6bco0<br>To: 300 &lt;sip:300@192.168.1.194&gt;;tag=b27e1a1d33761e85846fc98f5f3a7e58.c5d8<br>Call-ID: f9529c78-63628117@172.31.196.45<br>CSeq: 21584 REGISTER<br>Contact: &lt;sip:300@192.168.1.6:41264&gt;;expires=30<br>Server: kamailio (3.1.4 (x86_64/linux))<br>Content-Length: 0<br><br>REGISTER sip:192.168.1.194 SIP/2.0<br>Via: SIP/2.0/UDP 192.168.1.6:41264;branch=z9hG4bK-5777b8c<br>From: 300 &lt;sip:300@192.168.1.194&gt;;tag=b5ca67bbbdf6bco0<br>To: 300 &lt;sip:300@192.168.1.194&gt;<br>Call-ID: f9529c78-63628117@172.31.196.45<br>CSeq: 21585 REGISTER<br>Max-Forwards: 70<br>Authorization: Digest username="300",realm="192.168.1.194",nonce="Tk5OZ05OTTsZu75W6fbHxQjiBwnTxMwHdJ7+cYA=",uri="sip:192.168.1.194",algorithm=MD5,response="14e9fb5fe39d959ad92fc08f0aed1539"<br>Contact: 300 &lt;sip:300@192.168.1.6:41264&gt;;expires=10<br>User-Agent: Linksys/PAP2T-5.1.6(LS)<br>Content-Length: 0<br>Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER<br>Supported: x-sipura, replaces<br><br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 192.168.1.6:41264;branch=z9hG4bK-5777b8c<br>From: 300 &lt;sip:300@192.168.1.194&gt;;tag=b5ca67bbbdf6bco0<br>To: 300 &lt;sip:300@192.168.1.194&gt;;tag=b27e1a1d33761e85846fc98f5f3a7e58.7c3e<br>Call-ID: f9529c78-63628117@172.31.196.45<br>CSeq: 21585 REGISTER<br>Contact: &lt;sip:300@192.168.1.6:41264&gt;;expires=30<br>Server: kamailio (3.1.4 (x86_64/linux))<br>Content-Length: 0<br><br>REGISTER sip:192.168.1.194 SIP/2.0<br>Via: SIP/2.0/UDP 192.168.1.6:41264;branch=z9hG4bK-e85319a5<br>From: 300 &lt;sip:300@192.168.1.194&gt;;tag=b5ca67bbbdf6bco0<br>To: 300 &lt;sip:300@192.168.1.194&gt;<br>Call-ID: f9529c78-63628117@172.31.196.45<br>CSeq: 21586 REGISTER<br>Max-Forwards: 70<br>Authorization: Digest username="300",realm="192.168.1.194",nonce="Tk5OZ05OTTsZu75W6fbHxQjiBwnTxMwHdJ7+cYA=",uri="sip:192.168.1.194",algorithm=MD5,response="14e9fb5fe39d959ad92fc08f0aed1539"<br>Contact: 300 &lt;sip:300@192.168.1.6:41264&gt;;expires=10<br>User-Agent: Linksys/PAP2T-5.1.6(LS)<br>Content-Length: 0<br>Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER<br>Supported: x-sipura, replaces<br><br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 192.168.1.6:41264;branch=z9hG4bK-e85319a5<br>From: 300 &lt;sip:300@192.168.1.194&gt;;tag=b5ca67bbbdf6bco0<br>To: 300 &lt;sip:300@192.168.1.194&gt;;tag=b27e1a1d33761e85846fc98f5f3a7e58.a8fb<br>Call-ID: f9529c78-63628117@172.31.196.45<br>CSeq: 21586 REGISTER<br>Contact: &lt;sip:300@192.168.1.6:41264&gt;;expires=30<br>Server: kamailio (3.1.4 (x86_64/linux))<br>Content-Length: 0<br><br><br><br>this is how the AOR in memory looks like if the linksys is set to 3 secs, it sends it roughly every 1 sec<br><br>[root@mia-sbc-registrar1 sbin]# ./kamctl ul show<br>Domain:: location table=512 records=1 max_slot=1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AOR:: 300<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Contact:: sip:300@192.168.1.6:41264 Q=<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Expires:: 29<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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p;&nbsp;&nbsp; Socket:: udp:192.168.1.194:5060<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Methods:: 4767<br>[root@mia-sbc-registrar1 sbin]# ./kamctl ul show<br>Domain:: location table=512 records=1 max_slot=1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AOR:: 300<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Contact:: sip:300@192.168.1.6:41264 Q=<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Expires:: 29<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Callid:: f9529c78-63628117@172.31.196.45<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cseq:: 21799<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User-agent:: Linksys/PAP2T-5.1.6(LS)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State:: CS_DIRTY<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags:: 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cflag:: 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Socket:: udp:192.168.1.194:5060<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Methods:: 4767<br>[root@mia-sbc-registrar1 sbin]# ./kamctl ul show<br>Domain:: location table=512 records=1 max_slot=1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AOR:: 300<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Contact:: sip:300@192.168.1.6:41264 Q=<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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nbsp;&nbsp; Cflag:: 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Socket:: udp:192.168.1.194:5060<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Methods:: 4767<br>[root@mia-sbc-registrar1 sbin]# ./kamctl ul show<br>Domain:: location table=512 records=1 max_slot=1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AOR:: 300<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Contact:: sip:300@192.168.1.6:41264 Q=<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Expires:: 30<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Callid:: f9529c78-63628117@172.31.196.45<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cseq:: 21801<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; User-agent:: Linksys/PAP2T-5.1.6(LS)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State:: CS_DIRTY<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags:: 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cflag:: 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Socket:: udp:192.168.1.194:5060<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Methods:: 4767<br>[root@mia-sbc-registrar1 sbin]# ./kamctl ul show<br><br><br><br><br><br><br><div>
<div>&nbsp;</div></div><br><br><div><hr id="stopSpelling">Date: Fri, 19 Aug 2011 13:04:29 +0200<br>From: miconda@gmail.com<br>To: sr-users@lists.sip-router.org<br>CC: fborot@hotmail.com<br>Subject: Re: [SR-Users] min expires question<br><br>
  
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
    
  
  
    Hello,<br>
    <br>
    On 8/18/11 6:20 PM, Fabian Borot wrote:
    <blockquote cite="mid:SNT110-W2657EB082285BD40AC8D77CD2B0@phx.gbl">
      <style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>
      <div dir="ltr">
        Hello<br>
        <br>
        This is how my registrar module is configured, hoping that
        min-expires set to 30 wont allow registration attempts more
        often than 30 seconds, but if I configure a UAC to register
        every 15 seconds I see that kamailio allows it. Shouldn't it
        reply with "422 Session Interval Too Small" or "423 Interval Too
        Brief"?<br>
      </div>
    </blockquote>
    it will not allow a REGISTER with Expires value less than 30sec. But
    even the phone sends a REGISTER with Expires 3600 (for example), it
    can send again in 10 sec another REGISTER with Expires 3600. In
    order to see if there is something incorrect, send us full REGISTER
    requests and the replies.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote cite="mid:SNT110-W2657EB082285BD40AC8D77CD2B0@phx.gbl">
      <div dir="ltr"><br>
        # ----- registrar params -----<br>
        modparam("registrar", "default_expires", 120)<br>
        modparam("registrar", "min_expires", 30)<br>
        modparam("registrar", "method_filtering", 1)<br>
        /* uncomment the next line to disable parallel forking via
        location */<br>
        # modparam("registrar", "append_branches", 0)<br>
        /* uncomment the next line not to allow more than 10 contacts
        per AOR */<br>
        #modparam("registrar", "max_contacts", 10)<br>
        <br>
        <br>
        <div>
          <div>&nbsp;131.380336&nbsp; 192.168.1.6 -&gt; 192.168.1.194 SIP Request:
            REGISTER <a class="ecxmoz-txt-link-freetext" target="_blank">sip:192.168.1.194</a><br>
            131.381174 192.168.1.194 -&gt; 192.168.1.6&nbsp; SIP Status: 200
            OK&nbsp;&nbsp;&nbsp; (1 bindings)<br>
            <br>
            144.386014&nbsp; 192.168.1.6 -&gt; 192.168.1.194 SIP Request:
            REGISTER <a class="ecxmoz-txt-link-freetext" target="_blank">sip:192.168.1.194</a><br>
            144.387110 192.168.1.194 -&gt; 192.168.1.6&nbsp; SIP Status: 200
            OK&nbsp;&nbsp;&nbsp; (1 bindings)<br>
            <br>
            157.395358&nbsp; 192.168.1.6 -&gt; 192.168.1.194 SIP Request:
            REGISTER <a class="ecxmoz-txt-link-freetext" target="_blank">sip:192.168.1.194</a><br>
            157.396340 192.168.1.194 -&gt; 192.168.1.6&nbsp; SIP Status: 200
            OK&nbsp;&nbsp;&nbsp; (1 bindings)<br>
            <br>
            170.404905&nbsp; 192.168.1.6 -&gt; 192.168.1.194 SIP Request:
            REGISTER <a class="ecxmoz-txt-link-freetext" target="_blank">sip:192.168.1.194</a><br>
            170.405771 192.168.1.194 -&gt; 192.168.1.6&nbsp; SIP Status: 200
            OK&nbsp;&nbsp;&nbsp; (1 bindings)<br>
            <br>
            183.414375&nbsp; 192.168.1.6 -&gt; 192.168.1.194 SIP Request:
            REGISTER <a class="ecxmoz-txt-link-freetext" target="_blank">sip:192.168.1.194</a><br>
            183.415217 192.168.1.194 -&gt; 192.168.1.6&nbsp; SIP Status: 200
            OK&nbsp;&nbsp;&nbsp; (1 bindings)<br>
            <br>
            txs fborot<br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="ecxmimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="ecxmoz-signature">-- 
Daniel-Constantin Mierla -- <a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a class="ecxmoz-txt-link-freetext" href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a>
<a class="ecxmoz-txt-link-freetext" href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a class="ecxmoz-txt-link-freetext" href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre></div>                                               </div></body>
</html>