<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi,</div><div><br></div><div>IIR means If I Remember.</div><div><br></div><div>Are you also using keepalives sent by clients? I often read that NATs don't refresh their mapping on incoming traffic, you may want to take a look at client keepalives.</div><div><br></div><div>Mickael</div><div><br>On 21 באפר 2015, at 07:38, xuefeng zhang <<a href="mailto:zhangxuefeng1007@gmail.com">zhangxuefeng1007@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi Daniel,<div><br></div><div>I understand your reply.The kamailio can set the "IIR" to send the OPTIONS packets period.</div><div>But I don't found out the knowledge of the "IIR".</div><div><br></div><div>Would you give me some things how to do it.</div><div><br></div><div>Thanks!</div><div><br></div><div>Xuefeng Zhang</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-20 18:10 GMT+08:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">IIR, the keepalives are sent stateless, so no transactions are create<br>
for them. Just OPTIONS packets sent out, resulting in less load on<br>
kamailio (well, comparing with normal transactional forwarding). The<br>
mechanism behind detecting offline users with keepalives is based on a<br>
counter kept in memory for the location record, which is reset if the<br>
reply to OPTIONS comes back. If there are three (or so) keepalives sent<br>
out and none was replied, then the record is removed. Practically there<br>
is no retransmission for those keepalive requests, no special states,<br>
just this counter in memory per location record. Given this, (again<br>
iirc), this feature doesn't work with db_mode set to database only.<br>
<br>
Cheers,<br>
Daniel<br>
<div class="HOEnZb"><div class="h5"><br>
On 20/04/15 10:46, Mickael Marrache wrote:<br>
> Didn't know about that, it's interesting.<br>
><br>
> I'm curious about the load impact of this feature, since keepalives are<br>
> generally sent every 30 sec.<br>
><br>
> -----Original Message-----<br>
> From: sr-users [mailto:<a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>] On Behalf Of<br>
> Daniel Grotti<br>
> Sent: Monday, April 20, 2015 11:40 AM<br>
> To: <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> Subject: Re: [SR-Users] Expect the kamailio's sip account is unregistered<br>
> state when the client app is shutdown<br>
><br>
> Hi,<br>
> you may want to use:<br>
><br>
> <a href="http://www.kamailio.org/docs/modules/4.2.x/modules/nathelper.html#nathelper" target="_blank">http://www.kamailio.org/docs/modules/4.2.x/modules/nathelper.html#nathelper</a>.<br>
> p.keepalive_timeout<br>
><br>
><br>
> --<br>
> Daniel Grotti<br>
> VoIP Engineer<br>
><br>
><br>
> Sipwise GmbH<br>
> Europaring F15 | 2345 Brunn am Gebirge, Austria | <a href="http://www.sipwise.com" target="_blank">www.sipwise.com</a><br>
><br>
> On 04/20/2015 10:34 AM, Filip Malenka wrote:<br>
>> Thank you for information..<br>
>> What can Kamailio do about clients, that exit abnormally (e.g. crash, turn<br>
> off, ..) which do unregister properly? Can Kamailio send this "expire=0" on<br>
> behalf of these clients?<br>
>> Can Kamailio determine that a client got offline based on e.g. TLS<br>
> connection or other "heartbeats"?<br>
>> On 20.04.2015 10:16, Daniel Grotti wrote:<br>
>>> Hi,<br>
>>> here you are:<br>
>>><br>
>>> <a href="https://tools.ietf.org/html/rfc3665#section-2.4" target="_blank">https://tools.ietf.org/html/rfc3665#section-2.4</a><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Daniel Grotti<br>
>>> VoIP Engineer<br>
>>><br>
>>><br>
>>> Sipwise GmbH<br>
>>> Europaring F15 | 2345 Brunn am Gebirge, Austria | <a href="http://www.sipwise.com" target="_blank">www.sipwise.com</a><br>
>>><br>
>>> On 04/20/2015 10:10 AM, Mickael Marrache wrote:<br>
>>>> Hi,<br>
>>>><br>
>>>><br>
>>>><br>
>>>> You need to configure your client to un register when the app is closed.<br>
>>>><br>
>>>><br>
>>>><br>
>>>> For that, your client must send a REGISTER with Expires: 0.<br>
>>>><br>
>>>><br>
>>>><br>
>>>> Mickael<br>
>>>><br>
>>>><br>
>>>><br>
>>>> *From:*sr-users [mailto:<a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>] *On<br>
>>>> Behalf Of *xuefeng zhang<br>
>>>> *Sent:* Monday, April 20, 2015 10:58 AM<br>
>>>> *To:* Daniel-Constantin Mierla; Kamailio (SER) - Users Mailing List<br>
>>>> *Subject:* [SR-Users] Expect the kamailio's sip account is<br>
>>>> unregistered state when the client app is shutdown<br>
>>>><br>
>>>><br>
>>>><br>
>>>> Hi Daniel,<br>
>>>><br>
>>>><br>
>>>><br>
>>>> When the client's app is closed,the sip account may be registered<br>
>>>> state,because the expired time may have some rest time.I want to<br>
>>>> implement when the client's app is closed,the account also unregister.<br>
>>>><br>
>>>><br>
>>>><br>
>>>> How can I implement this function?Would you give me some advices?<br>
>>>><br>
>>>><br>
>>>><br>
>>>> Thanks!<br>
>>>><br>
>>>><br>
>>>><br>
>>>> Xuefeng Zhang<br>
>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing<br>
>>>> list <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>>>> <a 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><br>
>>>><br>
>>> _______________________________________________<br>
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing<br>
>>> list <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>>> <a 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><br>
>>><br>
>><br>
>> _______________________________________________<br>
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing<br>
>> list <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>> <a 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><br>
>><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a 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><br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a 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><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Daniel-Constantin Mierla<br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Kamailio World Conference, May 27-29, 2015<br>
Berlin, Germany - <a href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a 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><br>
</div></div></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list</span><br><span><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></span><br><span><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></span><br></div></blockquote></body></html>