[asterisk-users] Asterisk 1.2.12.1 dies after asterisk -rx and never comes up again
Hi list! I recently upgraded to FreePBX 2.1.3 although I am not sure if this has something to do with it. I do a nightly restart of Asterisk, just in case. This has been working fine months but since a few days asterisk seems to die and I am not able to restart it again, I keep getting a socket in use message. This is on Asterisk 1.2.12.1, Zaptel 1.2.9.1 and Libpri 1.2.3 This is a snippet from the log (full logging enabled) Oct 11 01:05:01 VERBOSE[12923] logger.c: -- Remote UNIX connection Oct 11 01:05:01 VERBOSE[726] logger.c: Beginning asterisk restart Oct 11 01:05:01 VERBOSE[726] logger.c: Executing last minute cleanups Oct 11 01:05:01 VERBOSE[726] logger.c: == Destroying musiconhold processes Oct 11 01:05:01 VERBOSE[726] logger.c: Asterisk cleanly ending (0). Oct 11 01:05:01 VERBOSE[726] logger.c: Preparing for Asterisk restart... Oct 11 01:05:01 VERBOSE[726] logger.c: Restarting Asterisk NOW... Oct 11 01:05:01 VERBOSE[6546] logger.c: Asterisk Event Logger Started /var/log/asterisk/event_log Oct 11 01:05:01 VERBOSE[6546] logger.c: Asterisk Dynamic Loader loading preload modules: Oct 11 01:05:01 VERBOSE[6546] logger.c: == Parsing '/etc/asterisk/modules.conf': Oct 11 01:05:01 VERBOSE[6546] logger.c: = = Parsing '/etc/asterisk/modules.conf': Found Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Ping Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Events Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Logoff Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Hangup Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Status Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Setvar Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Getvar Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Redirect Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Originate Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Command Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action ExtensionState Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action AbsoluteTimeout Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action MailboxStatus Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action MailboxCount Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action ListCommands Oct 11 01:05:01 VERBOSE[6546] logger.c: == Parsing '/etc/asterisk/manager.conf': Oct 11 01:05:01 VERBOSE[6546] logger.c: = = Parsing '/etc/asterisk/manager.conf': Found Oct 11 01:05:01 WARNING[6546] manager.c: Unable to bind socket: Address already in use Ideas anyone? ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk 1.2.12.1 dies after asterisk -rx and never comes up again
On Wed, Oct 11, 2006 at 09:14:55AM +0200, Remco Barendse wrote: Hi list! I recently upgraded to FreePBX 2.1.3 although I am not sure if this has something to do with it. I do a nightly restart of Asterisk, just in case. Why? This has been working fine months but since a few days asterisk seems to die and I am not able to restart it again, I keep getting a socket in use message. = Parsing '/etc/asterisk/manager.conf': Found Oct 11 01:05:01 WARNING[6546] manager.c: Unable to bind socket: Address already in use Asterisk is already running. Probably the wonders , or a misuse of- safe_asterisk. Alternatively, netstat -lntp | grep 5038 -- Tzafrir Cohen sip:[EMAIL PROTECTED] icq#16849755 iax:[EMAIL PROTECTED] +972-50-7952406 jabber:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.xorcom.com ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk 1.2.12.1 dies after asterisk -rx and never comes up again
On Wed, 11 Oct 2006, Tzafrir Cohen wrote: On Wed, Oct 11, 2006 at 09:14:55AM +0200, Remco Barendse wrote: Hi list! I recently upgraded to FreePBX 2.1.3 although I am not sure if this has something to do with it. I do a nightly restart of Asterisk, just in case. Why? Sometimes the internet connection is dropped and asterisk doesn't do a dns lookup and provider re-rest quickly enough so all calls are going out via expensive ISDN. Also I sometimes seem to have some trouble after re-loading FreePBX too often I get things like extensions being marked as busy/not available. = Parsing '/etc/asterisk/manager.conf': Found Oct 11 01:05:01 WARNING[6546] manager.c: Unable to bind socket: Address already in use Asterisk is already running. I don't think so, asterisk -r will throw me an error that * is not running. If * would be running I would get console I guess? Probably the wonders , or a misuse of- safe_asterisk. Alternatively, netstat -lntp | grep 5038 Thanks, I'll try that when the problem occurs again Cheers! Remco ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk 1.2.12.1 dies after asterisk -rx and never comes up again
I quits on my as well, when I try to make a second call. There is a bug report on it: http://bugs.digium.com/view.php?id=7972 -- #Joseph On Wed, 2006-10-11 at 09:14 +0200, Remco Barendse wrote: Hi list! I recently upgraded to FreePBX 2.1.3 although I am not sure if this has something to do with it. I do a nightly restart of Asterisk, just in case. This has been working fine months but since a few days asterisk seems to die and I am not able to restart it again, I keep getting a socket in use message. This is on Asterisk 1.2.12.1, Zaptel 1.2.9.1 and Libpri 1.2.3 This is a snippet from the log (full logging enabled) Oct 11 01:05:01 VERBOSE[12923] logger.c: -- Remote UNIX connection Oct 11 01:05:01 VERBOSE[726] logger.c: Beginning asterisk restart Oct 11 01:05:01 VERBOSE[726] logger.c: Executing last minute cleanups Oct 11 01:05:01 VERBOSE[726] logger.c: == Destroying musiconhold processes Oct 11 01:05:01 VERBOSE[726] logger.c: Asterisk cleanly ending (0). Oct 11 01:05:01 VERBOSE[726] logger.c: Preparing for Asterisk restart... Oct 11 01:05:01 VERBOSE[726] logger.c: Restarting Asterisk NOW... Oct 11 01:05:01 VERBOSE[6546] logger.c: Asterisk Event Logger Started /var/log/asterisk/event_log Oct 11 01:05:01 VERBOSE[6546] logger.c: Asterisk Dynamic Loader loading preload modules: Oct 11 01:05:01 VERBOSE[6546] logger.c: == Parsing '/etc/asterisk/modules.conf': Oct 11 01:05:01 VERBOSE[6546] logger.c: = = Parsing '/etc/asterisk/modules.conf': Found Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Ping Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Events Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Logoff Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Hangup Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Status Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Setvar Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Getvar Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Redirect Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Originate Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action Command Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action ExtensionState Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action AbsoluteTimeout Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action MailboxStatus Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action MailboxCount Oct 11 01:05:01 VERBOSE[6546] logger.c: == Manager registered action ListCommands Oct 11 01:05:01 VERBOSE[6546] logger.c: == Parsing '/etc/asterisk/manager.conf': Oct 11 01:05:01 VERBOSE[6546] logger.c: = = Parsing '/etc/asterisk/manager.conf': Found Oct 11 01:05:01 WARNING[6546] manager.c: Unable to bind socket: Address already in use Ideas anyone? ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk 1.2.12.1 dies after asterisk -rx and never comes up again
On 10/11/06 21:15 Joseph said the following: I quits on my as well, when I try to make a second call. There is a bug report on it: http://bugs.digium.com/view.php?id=7972 this seems like a configuration error within FreePBX and isnt really a bug in asterisk. -- Regards, /\_/\ All dogs go to heaven. [EMAIL PROTECTED](0 0) http://www.openmalaysiablog.com/ +==oOO--(_)--OOo==+ | for a in past present future; do| | for b in clients employers associates relatives neighbours pets; do | | echo The opinions here in no way reflect the opinions of my $a $b. | | done; done | +=+ ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk 1.2.12.1 dies after asterisk -rx and never comes up again
On Wed, Oct 11, 2006 at 11:25:08AM +0200, Remco Barendse wrote: On Wed, 11 Oct 2006, Tzafrir Cohen wrote: On Wed, Oct 11, 2006 at 09:14:55AM +0200, Remco Barendse wrote: Hi list! I recently upgraded to FreePBX 2.1.3 although I am not sure if this has something to do with it. I do a nightly restart of Asterisk, just in case. Why? Sometimes the internet connection is dropped and asterisk doesn't do a dns lookup and provider re-rest quickly enough so all calls are going out via expensive ISDN. So detect a connection change and then restart, by the way of 'asterisk -rx restart now' (or 'restart when convinient', depending on whether you care about local calls or remote calls). Assuming a restart is really needed, rather than a reload. A simple nightly restart means that on the avarage you'll be half a day too late. How can you detect that both (a) DNS lookup failed with Asterisk and (b) DNS lookup is already OK elsewhere? Also I sometimes seem to have some trouble after re-loading FreePBX too often I get things like extensions being marked as busy/not available. = Parsing '/etc/asterisk/manager.conf': Found Oct 11 01:05:01 WARNING[6546] manager.c: Unable to bind socket: Address already in use Asterisk is already running. I don't think so, asterisk -r will throw me an error that * is not running. If * would be running I would get console I guess? Maybe asterisk is in some sort of restart loop? Probably the wonders , or a misuse of- safe_asterisk. Alternatively, netstat -lntp | grep 5038 Thanks, I'll try that when the problem occurs again -- Tzafrir Cohen sip:[EMAIL PROTECTED] icq#16849755 iax:[EMAIL PROTECTED] +972-50-7952406 jabber:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.xorcom.com ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk 1.2.12.1 dies after asterisk -rx and never comes up again
On 10/11/06, Dinesh Nair [EMAIL PROTECTED] wrote: On 10/11/06 21:15 Joseph said the following: I quits on my as well, when I try to make a second call. There is a bug report on it: http://bugs.digium.com/view.php?id=7972 this seems like a configuration error within FreePBX and isnt really a bug in asterisk. It might be a config issue, but I think you'd agree that a config issue should never segfault the app, and in that respect, we're going to need to do something to get this fixed. -- Bird's The Word Technologies, Inc. http://www.btwtech.com/ ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk 1.2.12.1 dies after asterisk -rx and never comes up again
I think at best its a bug with the safe_asterisk script and at worst could be a bug with asterisk itself. I can't see how this is a configuration issue with freepbx. --- Shidan On 10/11/06, Dinesh Nair [EMAIL PROTECTED] wrote: On 10/11/06 21:15 Joseph said the following: I quits on my as well, when I try to make a second call. There is a bug report on it: http://bugs.digium.com/view.php?id=7972 this seems like a configuration error within FreePBX and isnt really a bug in asterisk. -- Regards, /\_/\ All dogs go to heaven. [EMAIL PROTECTED](0 0) http://www.openmalaysiablog.com/ +==oOO--(_)--OOo==+ | for a in past present future; do| | for b in clients employers associates relatives neighbours pets; do | | echo The opinions here in no way reflect the opinions of my $a $b. | | done; done | +=+ ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk 1.2.12.1 dies after asterisk -rx and never comes up again
Sometimes the internet connection is dropped and asterisk doesn't do a dns lookup and provider re-rest quickly enough so all calls are going out via expensive ISDN. So detect a connection change and then restart, by the way of 'asterisk -rx restart now' (or 'restart when convinient', depending on whether you care about local calls or remote calls). Assuming a restart is really needed, rather than a reload. A simple nightly restart means that on the avarage you'll be half a day too late. How can you detect that both (a) DNS lookup failed with Asterisk and (b) DNS lookup is already OK elsewhere? I don't but asterisk is a little impatient resolving server names. Even when the box is rebooting and someone is trying to dial out when asterisk has just started the resolve will be too slow and all calls will go out via PSTN. I wish I could force asterisk to keep trying to resolve every 5 minutes or so. I don't think so, asterisk -r will throw me an error that * is not running. If * would be running I would get console I guess? Maybe asterisk is in some sort of restart loop? I'll do some further testing over the weekend, for some reason i cannot immediately remember i prefer to do that outside business hours :) Thanks!! ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users