<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Thanks, George Joseph!<br>
<br>
Now a lot clearer the reasons for this behavior.<br>
It turns out that in the case of devices there are two ways to
understand that they are "alive":<br>
1. Registration from device to server<br>
2. qualify from the server to the client<br>
And the second way does not seems superfluous. Since calling to
the device this way will be used. if qualify doesn't working, then
this call will not take place.<br>
<br>
Most likely the problem is that the device is behind two NAT (from
your ISP and your own router).<br>
Can you advise how to configure the client in this case? Is it
necessary to use a stun (did not seem to help, and it only works
in the case of RTP) or proxy?<br>
<br>
Thanks.<br>
<br>
21.03.2016 23:32, George Joseph пишет:<br>
</div>
<blockquote
cite="mid:CAHKv19B-p8oBXSjvVQuDh41gu2U+5M7ce3O_Vdkiom9QwMaXMg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif"><br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Mar 21, 2016 at 11:58 AM,
Dmitriy Serov <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:serov.d.p@gmail.com" target="_blank">serov.d.p@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Good
day.<br>
<br>
Asterisk 13.7.2, res_pjsip.<br>
There is a problem of loss of registration of several
devices. This happens not on all devices, but problem
devices a lot.<br>
Below is the log of registration of a contact of one
device.<br>
<br>
Is suspect two things:<br>
1. delete a contact after the contact is added. But, like,
it's a feature of code that may already be fixed.<br>
2. deleting a contact much earlier than the 90 seconds
specified during the registration<br>
<br>
Would be grateful for any clues.<br>
<br>
Dmitriy Serov.<br>
<br>
expiration settings:<br>
[common-aor](!)<br>
type=aor<br>
qualify_frequency=60<br>
default_expiration=120<br>
maximum_expiration=600<br>
minimum_expiration=90<br>
<br>
log:<br>
[2016-03-21 20:39:58] VERBOSE[30251]
res_pjsip_registrar.c: Added contact '<a
moz-do-not-send="true"
href="http://sip:17367@46.39.229.18:37910"
rel="noreferrer" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sip:17367@46.39.229.18:37910">sip:17367@46.39.229.18:37910</a></a>'
to AOR '17367' with expiration of 90 seconds<br>
</blockquote>
<div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif;display:inline">The client just
registered</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[2016-03-21
20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/<a moz-do-not-send="true"
href="http://sip:17367@46.39.229.18:37910"
rel="noreferrer" target="_blank">sip:17367@46.39.229.18:37910</a>
has been created<br>
</blockquote>
<div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif;display:inline">We added a new
contact</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[2016-03-21
20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/<a moz-do-not-send="true"
href="http://sip:17367@46.39.229.18:27143"
rel="noreferrer" target="_blank">sip:17367@46.39.229.18:27143</a>
has been deleted<br>
</blockquote>
<div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif;display:inline">We deleted the old
contact</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[2016-03-21
20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/<a moz-do-not-send="true"
href="http://sip:17367@46.39.229.18:37910"
rel="noreferrer" target="_blank">sip:17367@46.39.229.18:37910</a>
is now Reachable. RTT: 41.882 msec<br>
</blockquote>
<div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif;display:inline">We qualified the
contact successfully</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[2016-03-21
20:41:01] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/<a moz-do-not-send="true"
href="http://sip:17367@46.39.229.18:37910"
rel="noreferrer" target="_blank">sip:17367@46.39.229.18:37910</a>
is now Unreachable. RTT: 0.000 msec<br>
</blockquote>
<div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif">At the next qualify, we couldn't
reach the contact</div>
</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[2016-03-21
20:41:06] VERBOSE[3827] res_pjsip_registrar.c: Added
contact '<a moz-do-not-send="true"
href="http://sip:17367@46.39.229.18:60105"
rel="noreferrer" target="_blank">sip:17367@46.39.229.18:60105</a>'
to AOR '17367' with expiration of 90 seconds<br>
</blockquote>
<div>
<div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif;display:inline">The client just
registered</div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif;display:inline">(again)</div>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[2016-03-21
20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/<a moz-do-not-send="true"
href="http://sip:17367@46.39.229.18:60105"
rel="noreferrer" target="_blank">sip:17367@46.39.229.18:60105</a>
has been created<br>
</blockquote>
<div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif;display:inline">We added a new
contact</div>
</div>
<div> [2016-03-21 20:41:06] VERBOSE[28019]
res_pjsip/pjsip_configuration.c: Contact 17367/<a
moz-do-not-send="true"
href="http://sip:17367@46.39.229.18:37910"
rel="noreferrer" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sip:17367@46.39.229.18:37910">sip:17367@46.39.229.18:37910</a></a>
has been deleted</div>
<div>
<div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif;display:inline">We deleted the old
contact</div>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[2016-03-21
20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/<a moz-do-not-send="true"
href="http://sip:17367@46.39.229.18:60105"
rel="noreferrer" target="_blank">sip:17367@46.39.229.18:60105</a>
is now Reachable. RTT: 44.031 msec<br>
</blockquote>
<div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif;display:inline">We qualified the
contact successfully</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[2016-03-21
20:42:09] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/<a moz-do-not-send="true"
href="http://sip:17367@46.39.229.18:60105"
rel="noreferrer" target="_blank">sip:17367@46.39.229.18:60105</a>
is now Unreachable. RTT: 0.000 msec<br>
</blockquote>
<div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif">At the next qualify, we couldn't
reach the contact</div>
</div>
<div><br>
</div>
<div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif">This looks like a client that's
going to sleep or a firewall that's timing out
connections. Asterisk is only deleting the contact on
the next successful register because it's replacing it.
You need to figure out why the qualify is failing and
why the client keeps registering.</div>
<div class="gmail_default" style="font-family:'arial
narrow',sans-serif"><br>
</div>
</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>