<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 21/04/15 07:07, Mickael Marrache
wrote:<br>
</div>
<blockquote
cite="mid:EEDC2420-5ED1-4FAA-BCBC-B4569ECD5912@gmail.com"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>Hi,</div>
<div><br>
</div>
<div>IIR means If I Remember.</div>
</blockquote>
indeed, thanks for completing -- it was a result of incomplete
typing as I wanted to use IIRC (if i remember correctly), which is
more standard acronym out there.<br>
<br>
Xuefeng: sending keepalives is done via nathelper module, by seeting
sipping branch flag when processing REGISTER requests - see:<br>
<br>
-
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/4.2.x/modules/nathelper.html#nathelper.p.sipping_bflag">http://kamailio.org/docs/modules/4.2.x/modules/nathelper.html#nathelper.p.sipping_bflag</a><br>
<br>
For a proper example of usage, see the default kamailio.cfg for v4.2
- it has this feature inside, easy to enable with defines:<br>
<br>
#!define WITH_NAT<br>
#!define WITH_NATSIPPING<br>
<br>
Add those lines somewhere at the beginning of kamailio.cfg -- also,
read the comments at the top of the kamailio.cfg, some notes about
this are made there.<br>
<br>
Cheers,<br>
Daniel<br>
<blockquote
cite="mid:EEDC2420-5ED1-4FAA-BCBC-B4569ECD5912@gmail.com"
type="cite">
<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
moz-do-not-send="true"
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
moz-do-not-send="true" 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
moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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
moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>>>> <a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>>> <a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>> <a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://twitter.com/#%21/miconda"
target="_blank">http://twitter.com/#!/miconda</a>
- <a moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></span><br>
<span><a moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>