<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
</HEAD>
<BODY>
Yet another night has passed...<BR>
<BR>
This morning :<BR>
<BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">Verbosity is at least 25</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">asterisk*CLI> sip show peers</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">Name/username Host Dyn Nat ACL Port Status Realtime </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">twinkle-candy/twinkle-can (Unspecified) D 0 UNKNOWN </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">twinkle-jonas/twinkle-jon (Unspecified) D 0 UNKNOWN </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">grandstream/grandstream 192.168.1.13 D 5060 OK (27 ms) </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">3starsnet/092779077 85.119.188.3 N 5060 OK (17 ms) </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">4 sip peers [Monitored: 2 online, 2 offline Unmonitored: 0 online, 0 offline]</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">asterisk*CLI> sip show registry </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">Host Username Refresh State Reg.Time </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">85.119.188.3:5060 092779077 105 </FONT></FONT><FONT COLOR="#0000ff"><FONT SIZE="2"><B>Failed</B></FONT></FONT><FONT COLOR="#0000ff"><FONT SIZE="2"> Mon, 06 Jul 2009 23:37:05</FONT></FONT><BR>
<BR>
Then a 'sip reload' :<BR>
<BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">asterisk*CLI> sip reload</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 7 09:28:15] Reloading SIP</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 7 09:28:15] == Parsing '/etc/asterisk/sip.conf': [Jul 7 09:28:15] Found</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 7 09:28:15] == Parsing '/etc/asterisk/users.conf': [Jul 7 09:28:15] Found</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 7 09:28:15] == Parsing '/etc/asterisk/sip_notify.conf': [Jul 7 09:28:15] Found</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">asterisk*CLI> sip show peers</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">Name/username Host Dyn Nat ACL Port Status Realtime </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">twinkle-candy/twinkle-can (Unspecified) D 0 UNKNOWN </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">twinkle-jonas/twinkle-jon (Unspecified) D 0 UNKNOWN </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">grandstream/grandstream 192.168.1.13 D 5060 OK (9 ms) </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">3starsnet/092779077 85.119.188.3 N 5060 OK (18 ms) </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">4 sip peers [Monitored: 2 online, 2 offline Unmonitored: 0 online, 0 offline]</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">asterisk*CLI> sip show registry</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">Host Username Refresh State Reg.Time </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">85.119.188.3:5060 092779077 105 </FONT></FONT><FONT COLOR="#0000ff"><FONT SIZE="2"><B>Registered</B></FONT></FONT><FONT COLOR="#0000ff"><FONT SIZE="2"> Tue, 07 Jul 2009 09:28:16</FONT></FONT><BR>
<BR>
<BR>
So a 'sip reload' got me registered again... Did not need to restart Asterisk...<BR>
<BR>
/var/log/asterisk/messages :<BR>
<BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 23:37:46] NOTICE[24975] chan_sip.c: Peer 'grandstream' is now UNREACHABLE! Last qualify: 33</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 23:37:46] WARNING[24975] res_config_mysql.c: MySQL RealTime: Failed to query database. Check debug for more info.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 23:38:03] NOTICE[24975] chan_sip.c: Peer '3starsnet' is now UNREACHABLE! Last qualify: 18</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 23:38:03] WARNING[24975] res_config_mysql.c: MySQL RealTime: Failed to query database. Check debug for more info.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 23:39:10] WARNING[24975] chan_sip.c: Maximum retries exceeded on transmission 399240fc5f0fe8fb0e548a152c2c35b6@127.0.0.1 for seqno 248 (Critical Req</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">uest) -- See doc/sip-retransmit.txt.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 23:39:50] NOTICE[24975] chan_sip.c: -- Registration for '092779077@85.119.188.3' timed out, trying again (Attempt #1)</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 23:40:30] WARNING[24975] chan_sip.c: Maximum retries exceeded on transmission 399240fc5f0fe8fb0e548a152c2c35b6@127.0.0.1 for seqno 249 (Critical Req</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">uest) -- See doc/sip-retransmit.txt.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 23:41:10] NOTICE[24975] chan_sip.c: -- Registration for '092779077@85.119.188.3' timed out, trying again (Attempt #2)</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 23:41:50] WARNING[24975] chan_sip.c: Maximum retries exceeded on transmission 399240fc5f0fe8fb0e548a152c2c35b6@127.0.0.1 for seqno 250 (Critical Req</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">uest) -- See doc/sip-retransmit.txt.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 23:42:30] NOTICE[24975] chan_sip.c: -- Registration for '092779077@85.119.188.3' timed out, trying again (Attempt #3)</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">...</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 7 00:55:51] NOTICE[24975] chan_sip.c: -- Registration for '092779077@85.119.188.3' timed out, trying again (Attempt #58)</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 7 00:56:31] WARNING[24975] chan_sip.c: Maximum retries exceeded on transmission 399240fc5f0fe8fb0e548a152c2c35b6@127.0.0.1 for seqno 306 (Critical Req</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">uest) -- See doc/sip-retransmit.txt.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 7 00:57:11] NOTICE[24975] chan_sip.c: -- Registration for '092779077@85.119.188.3' timed out, trying again (Attempt #59)</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 7 00:57:51] WARNING[24975] chan_sip.c: Maximum retries exceeded on transmission 399240fc5f0fe8fb0e548a152c2c35b6@127.0.0.1 for seqno 307 (Critical Req</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">uest) -- See doc/sip-retransmit.txt.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 7 00:58:31] NOTICE[24975] chan_sip.c: -- Registration for '092779077@85.119.188.3' timed out, trying again (Attempt #60)</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 7 00:59:11] WARNING[24975] chan_sip.c: Maximum retries exceeded on transmission 399240fc5f0fe8fb0e548a152c2c35b6@127.0.0.1 for seqno 308 (Critical Req</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">uest) -- See doc/sip-retransmit.txt.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 7 00:59:51] NOTICE[24975] chan_sip.c: -- Registration for '092779077@85.119.188.3' timed out, trying again (Attempt #61)</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 7 00:59:51] NOTICE[24975] chan_sip.c: -- Giving up forever trying to register <A HREF="mailto:'092779077@85.119.188.3">'092779077@85.119.188.3</A>'</FONT></FONT><BR>
<BR>
Trying to register goes on for an hour, every minute...<BR>
I don't know why @ 23:39 registration suddenly fails...<BR>
<BR>
Philipp, in my register-statement I use the IP-address of my SIP-provider, not the hostname.tld.<BR>
<BR>
Jonas.<BR>
<BR>
<BR>
On Mon, 2009-07-06 at 15:14 +0200, Philipp von Klitzing wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi!
> Every morning I check my SIP registry to the SIP-provider. And I must
> conclude that during the night somewhere registry has failed.
>
> I must do a 'sip reload' to get registered again.
Can you ALWAYS solve this with a SIP RELOAD, or is it sometimes necessary
to restart Asterisk?
Anyway, take a look:
<A HREF="https://issues.asterisk.org/view.php?id=15052">https://issues.asterisk.org/view.php?id=15052</A>
<A HREF="https://issues.asterisk.org/view.php?id=15139">https://issues.asterisk.org/view.php?id=15139</A>
<A HREF="https://issues.asterisk.org/view.php?id=14518">https://issues.asterisk.org/view.php?id=14518</A>
<A HREF="https://issues.asterisk.org/view.php?id=12312">https://issues.asterisk.org/view.php?id=12312</A>
Maybe these bugs will be of help to you - try to change the register
address to use the IP address instead of hostname and see if that
improves the situation.
Philipp
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>