[App_rpt-users] Node becomes unregistered after many weeks (no reply from registration server)
Mike Hugo
ka6oij at arrl.net
Thu Jan 22 01:18:29 UTC 2015
Hi Doug,
Thanks for your quick reply.
I thought it could be DNS issue but when I looked at the network trace I
see the node doing a DNS lookup right before it issues the IAX2 command and
getting a proper DNS reply back with the registration node IP address that
it seams to be using. I also compare the trace before and after I reboot
the box and it both cases the registration server it trying to use are the
same. It really does look like the registration server is just ignoring
the request unless the UDP packet is getting lost somewhere else. Am I
missing something in how the DNS could be impacting this?
I guess hitting the reboot switch is just faster than typing the command
but you have a good suggestion in verifying it next time around and getting
a network trace to see what is different with a reload vs. the normal poll
that is failing and if that works. I am annoyed with myself in that I
didn't have the network trace running this time around when I rebooted the
box to see what was being sent. I'll have to wait until next time it
happens to validate the reload command and then reboot if reload doesn't
work.
I am curious though why my node is doing the DNS lookup each time even
though I don't have the DNS config file. Regardless I'm not going to argue
as it makes sense to do a DNS lookup each time otherwise it would be hard
for the registration server to ever move.
Mike
On Wed, Jan 21, 2015 at 3:56 PM, Doug Crompton <doug at crompton.com> wrote:
> Mike,
>
> This sometimes happens although I have not seen it lately on any of my
> systems nor has anyone else reported it. On the BBB we did add a
> dnsmgr.conf file in /etc/asterisk with the following :
>
> [general]
> enable=yes ; enable creation of managed DNS lookups
> ; default is 'no'
> refreshinterval=300 ; refresh managed DNS lookups every <n> seconds
> ; default is 300 (5 minutes)
>
> You might try that. It can be a dns issue. Also when it happens go into
> the client and issue an 'iax2 reload' command. That will often fix it.
> Check it with an 'iax2 show registry' command. If it does then you could
> execute that command on a regular basis from a script. If that does not fix
> it there should be no need to reboot the system though as astres.sh at the
> linux prompt will restart asterisk and should clear the problem without a
> reboot. If it does not then you might have network or dns issues with your
> Linux system.
>
>
>
> *73 DougWA3DSPhttp://www.crompton.com/hamradio
> <http://www.crompton.com/hamradio>*
>
>
> ------------------------------
> Date: Wed, 21 Jan 2015 15:27:41 -0800
> From: ka6oij at arrl.net
> To: app_rpt-users at ohnosec.org
> Subject: [App_rpt-users] Node becomes unregistered after many weeks (no
> reply from registration server)
>
>
> I've seen this problem on various nodes now for a while and finally had a
> minute to actually grab ethernet packets from the WAN side of the firewall
> to see if I could dig deeper to figure out what is breaking after sometime.
> This is not a major problem since a reboot fixes it but more of a
> curiosity. I tried to search the forums to see if this had been asked
> before but didn't find anything of help.
>
> The issue is that after a node sits unused for a long time it becomes
> unregistered. I'm not sure how long a long time is but it is in weeks. A
> reboot of the box always bring is back.
>
> Today I went looking on the WAN side of the firewall and I can see the box
> sending IAX2 packets out to the registration server but the registration
> server never replying. I used the WAN side so as to rule out local network
> issues. As far as I can tell the IAX registration UDP packet looks fine to
> me. The contents of the failed one look the same to a successful one. It
> appears to be sending the REGREQ message and waiting 2 seconds before
> resending the same REGREQ message again and waiting 10 seconds and
> repeating once more after 10 seconds. Finally waiting 28 seconds and
> starting again with a new REGREG message with a new Source Call. When it
> works the REGREQ is replied to from the registration server with a CALL
> TOKEN, etc and the rest of the IAX handshake and authentication happens.
>
> Not sure if helps in figuring this out but when the node is in this state
> the call to get nodes.pl is rejected. Call to uhandler are replied with
> "OK!".
>
> Since it takes a long time to reproduce this issue I'm wondering if I
> should be looking for something else the next time this happens. The fact
> that a reboot always bring it back implies that there is something else on
> the local node that is causing this to break and the registration server to
> ignore the IAX requests on purpose.
>
>
>
> Mike
>
>
>
> _______________________________________________ App_rpt-users mailing list
> App_rpt-users at ohnosec.org
> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users To unsubscribe
> from this list please visit
> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down
> to the bottom of the page. Enter your email address and press the
> "Unsubscribe or edit options button" You do not need a password to
> unsubscribe, you can do it via email confirmation. If you have trouble
> unsubscribing, please send a message to the list detailing the problem.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20150121/c759bd07/attachment.html>
More information about the App_rpt-users
mailing list