In article <DU+bccNssYgDFw2C@celandine.oak-wood.co.uk>,
Chris Hastie <lists@oak-wood.co.uk> wrote:> Hello
>
> I've just installed Asterisk 1.2 onto a FreeBSD system and it is mostly
> working well.
>
> But it dies at 2am every morning. Not quite a complete death, but it
> seems to loose any ability to communicate with the rest of the world. In
> /var/log/messages I just see endless entries like this:
>
> Nov 21 02:00:13 WARNING[18841] chan_sip.c: No such host: voipfone.co.uk
> Nov 21 02:00:13 WARNING[18841] chan_sip.c: Probably a DNS error for
registration to
> 30113205@voipfone.co.uk, trying
> REGISTER again (after 20 seconds)
>
> An attempt to connect to the console leaves asterisk eating up CPU
> cycles and this in /var/log/messages
>
> Nov 20 11:51:25 WARNING[94218] asterisk.c: Accept returned -1: Too many
open files
>
> A message which reoccurs several hundred times a second.
>
> Can anyone either solve this problem for me completely, or at least give
> me a hint as to the significance of 02:00? Is this an Asterisk thing
> (most of my configurations are as per install samples), or an underlying
> OS thing?
Firstly, look and see what the "too many open files" are:
# lsof -p94218
(or whatever the complaining PID is). I'm assuming FreeBSD has lsof.
I don't know, as I use Linux.
Next, examine the cron jobs that happen at 2am, to see if any of them
could explain anything.
Failing that, it could be that something ishappening at your provider
everyday at 2am and Asterisk is not coping with it gracefully.
You could also try specifying 212.187.162.178 temporarily instead of
voipfone.co.uk - that would tell you whether the problem is DNS related.
Cheers
Tony
--
Tony Mountifield
Work: tony@softins.co.uk - http://www.softins.co.uk
Play: tony@mountifield.org - http://tony.mountifield.org