<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 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 href="http://sip:17367@46.39.229.18:37910" rel="noreferrer" target="_blank">sip:17367@46.39.229.18:37910</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 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 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 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 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 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 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 href="http://sip:17367@46.39.229.18:37910" rel="noreferrer" target="_blank">sip:17367@46.39.229.18:37910</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 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 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>