<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 21 March 2016 at 20:32, George Joseph <span dir="ltr"><<a href="mailto:george.joseph@fairview5.com" target="_blank">george.joseph@fairview5.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">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></span><div><div style="font-family:'arial narrow',sans-serif;display:inline">​The client just registered​</div> </div><span class=""><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></span><div><div style="font-family:'arial narrow',sans-serif;display:inline">​We added a new contact​</div> </div><span class=""><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></span><div><div style="font-family:'arial narrow',sans-serif;display:inline">​We deleted the old contact​</div> </div><span class=""><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></span><div><div style="font-family:'arial narrow',sans-serif;display:inline">​We qualified the contact successfully​</div> </div><span class=""><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></span><div><div style="font-family:'arial narrow',sans-serif">​At the next qualify, we couldn't reach the contact</div></div><span class=""><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></span><div><div><div style="font-family:'arial narrow',sans-serif;display:inline">​The client just registered​</div> <div style="font-family:'arial narrow',sans-serif;display:inline">​(again)​</div></div></div><span class=""><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></span><div><div style="font-family:'arial narrow',sans-serif;display:inline">​We added a new contact​</div> </div><span class=""><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></span><div><div><div style="font-family:'arial narrow',sans-serif;display:inline">​We deleted the old contact​</div> </div></div><span class=""><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></span><div><div style="font-family:'arial narrow',sans-serif;display:inline">​We qualified the contact successfully​</div> </div><span class=""><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></span><div><div style="font-family:'arial narrow',sans-serif">​At the next qualify, we couldn't reach the contact</div></div><div><br></div><div><div 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 style="font-family:'arial narrow',sans-serif"><br></div></div><div><br></div></div></div></div>
<br><br></blockquote><div><br></div><div>Check if the router or firewall has a UDP port timeout option and increase it by a lot (I usually up it to an hour).</div><div> <br></div></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><pre>Ishfaq Malik 
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)161 660 2350
f: +44 (0)161 660 9825
e: <a href="mailto:ish@pack-net.co.uk" target="_blank">ish@pack-net.co.uk</a>
w: <a href="http://www.pack-net.co.uk" target="_blank">http://www.pack-net.co.uk</a>

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street 
Manchester, M1 2JW
COMPANY REG NO. 04920552
</pre></div></div></div></div>
</div></div>