<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Thank you, Matt.</p>
<p>Is it possible that Asterisk (by mistake or misconfiguration or
something else) stops sending REGISTER requests or is it possible
for the ISP server to send some kind of SIP-message to stop
Asterisk's registering attempts (I'm not very familiar with all
SIP message types)?<br>
</p>
<br>
<div class="moz-cite-prefix">On 10/10/2017 03:11 PM, Matt Riddell
(lists) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:215B2053-F75D-46E9-A57C-2E0DF47B694F@venturevoip.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Maybe the provider has added an extra gateway and it is not
processing accounts correctly.
<div><br>
</div>
<div>If they had one before and now two then 40-60% registration
fails would show that. <br>
<br>
<div id="AppleMailSignature"><span style="font-family:
UICTFontTextStyleBody; -webkit-text-size-adjust: auto;">Kind
regards,</span>
<div><span style="font-family: UICTFontTextStyleBody;
-webkit-text-size-adjust: auto;"><br>
</span></div>
<div><span style="font-family: UICTFontTextStyleBody;
-webkit-text-size-adjust: auto;">Matt</span></div>
</div>
<div><br>
On Oct 10, 2017, at 06:27, Dmitriy Ermakov <<a
href="mailto:demonihin@gmail.com" moz-do-not-send="true">demonihin@gmail.com</a>>
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<p>Hello!</p>
<p>Could you help me with Asterisk 11.21.2 and AsteriskNow
platform.</p>
<p>The problem is:</p>
<p>My Asterisk PBX has SIP (chan_sip) trunk to provider.</p>
<p>Asterisk periodically loses trunk registratrion:</p>
<p><b>sip show registry:</b></p>
<p><i>Host dnsmgr
Username Refresh State
Reg.Time </i><i><br>
</i><i>X.X.X.X:5060 N
<LOGIN> 105 Unregistered </i><b><br>
</b></p>
<p>This happens sometimes once per 4 hours, sometimes once
per a week.</p>
<p>I don't see any patterns.</p>
<p><b>sip.conf:</b></p>
<p>registerattempts=0</p>
<p>registertimeout=20</p>
<p><b>peer confifuration:</b><br>
</p>
<p>[XXXX-friend]<br>
disallow=all<br>
host=192.168.1.1<br>
defaultuser=<phone number><br>
fromuser=<phone number><br>
callerid=<phone number><br>
secret=<ISP secret><br>
type=friend<br>
qualify=yes<br>
allow=ulaw<br>
allow=alaw<br>
nat=no<br>
rtpkeepalive=10<br>
dtmfmode=rfc2833<br>
insecure=port,invite<br>
context=from-trunk-ISP1<br>
fromdomain=<ISP domain><br>
</p>
<p><b>registration string:</b></p>
<p>register=<phone number>:<ISP secret>@<ISP
domain>/<phone number></p>
<p><b>where:</b></p>
<p><phone number> is our ISP-provided phone number</p>
<p><ISP secret> is our ISP-provided SIP secret</p>
<p><ISP domain> is our ISP SIP server IP address</p>
<p>I don't have NAT between the ISP and my server (the ISP
server IP address is in Asterisk's sip.conf Localnet
scope) but as I can see there is ISP's routers between my
Asterisk and the ISP SIP server.<br>
</p>
<p>There is not any firewall between the ISP and my
Asterisk. The firewall rules on Asterisk host allow any
traffic from host to the ISP and allow 5060/UDP from ISP
to Asterisk host.</p>
<p><br>
</p>
<p>When I restart Asterisk I can see successful registration
to the ISP. And it works. I can make calls in any
direction but after some time I have the "Unregistered"
status and calls don't work.</p>
<p>When I make tcpdump I can see about 40-60% failed
REGISTER attempts (401 forbidden) and 100% failed OPTIONS
attempts (is it qualify packets?) with 401 forbidden.</p>
<p>The interesting thing is: the last REGISTER packet from
my Asterisk to the ISP has "OK" response and there was not
any REGISTER attempts after this packet, only OPTIONS
packets.<br>
</p>
<p>The second interesting thing is: this ISP has been
working for about 6 or even 12 months before this problem
happened.</p>
<p><br>
</p>
<p>What should I check to understand and solve my problem?</p>
<p><br>
</p>
<p>P.S. I'm sorry for my bad English(<br>
</p>
<pre class="moz-signature" cols="72">--
Dmitriy Ermakov</pre>
</div>
</blockquote>
<blockquote type="cite">
<div><span>-- </span><br>
<span>_____________________________________________________________________</span><br>
<span>-- Bandwidth and Colocation Provided by <a
href="http://www.api-digital.com" moz-do-not-send="true">http://www.api-digital.com</a>
--</span><br>
<span></span><br>
<span>Check out the new Asterisk community forum at: <a
href="https://community.asterisk.org/"
moz-do-not-send="true">https://community.asterisk.org/</a></span><br>
<span></span><br>
<span>New to Asterisk? Start here:</span><br>
<span> <a
href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started"
moz-do-not-send="true">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a></span><br>
<span></span><br>
<span>asterisk-users mailing list</span><br>
<span>To UNSUBSCRIBE or update options visit:</span><br>
<span> <a
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
moz-do-not-send="true">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span></div>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
С уважением, Дмитрий Ермаков</pre>
</body>
</html>