Summary: | ASTERISK-11629: Incorrect /etc/init.d/asterisk | ||
Reporter: | reinerotto (reinerotto) | Labels: | |
Date Opened: | 2008-03-12 17:17:40 | Date Closed: | 2008-03-14 15:01:17 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/BuildSystem |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | File /etc/init.d/asterisk contains the follwoing: #BEGIN-INIT-INFO #REQUIRED-START: zaptel But this is not good enough. Should be like #REQUIRED-START: zaptel $network $named Assuming, the /etc/init.d/asterisk with #REQUIRED-START: zaptel is used, as distributed by SuSE, the following happens: On my system asterisk is started automatically after boot. Because of SuSE at least, asterisk is started before the network is up. This prevents asterisk/SIP to register with my provider, because DNS not available at that moment. Because of another bug, I will also report, asterisk then enters a loop, trying to register, but always fails, even in case network and DNS are running. Only solution then to restart asterisk. Modification of /etc/init.d/asterisk to #REQUIRED-START: zaptel $network $named fixes that problem. ****** ADDITIONAL INFORMATION ****** This behaviour might not be observed on other distributions of LINUX; however, then it is simply "good luck". So it is worth to be reported as a bug. | ||
Comments: | By: Digium Subversion (svnbot) 2008-03-14 15:00:31 Repository: asterisk Revision: 108792 U branches/1.4/contrib/init.d/rc.suse.asterisk ------------------------------------------------------------------------ r108792 | russell | 2008-03-14 15:00:28 -0500 (Fri, 14 Mar 2008) | 4 lines Update the SuSE init script to start networking before asterisk, as well. (closes issue ASTERISK-11629, reported by and change suggested by reinerotto) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=108792 By: Digium Subversion (svnbot) 2008-03-14 15:00:57 Repository: asterisk Revision: 108793 _U trunk/ U trunk/contrib/init.d/rc.suse.asterisk ------------------------------------------------------------------------ r108793 | russell | 2008-03-14 15:00:56 -0500 (Fri, 14 Mar 2008) | 12 lines Merged revisions 108792 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r108792 | russell | 2008-03-14 15:04:35 -0500 (Fri, 14 Mar 2008) | 4 lines Update the SuSE init script to start networking before asterisk, as well. (closes issue ASTERISK-11629, reported by and change suggested by reinerotto) ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=108793 By: Digium Subversion (svnbot) 2008-03-14 15:01:17 Repository: asterisk Revision: 108794 _U branches/1.6.0/ U branches/1.6.0/contrib/init.d/rc.suse.asterisk ------------------------------------------------------------------------ r108794 | russell | 2008-03-14 15:01:16 -0500 (Fri, 14 Mar 2008) | 20 lines Merged revisions 108793 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r108793 | russell | 2008-03-14 15:04:56 -0500 (Fri, 14 Mar 2008) | 12 lines Merged revisions 108792 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r108792 | russell | 2008-03-14 15:04:35 -0500 (Fri, 14 Mar 2008) | 4 lines Update the SuSE init script to start networking before asterisk, as well. (closes issue ASTERISK-11629, reported by and change suggested by reinerotto) ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=108794 |