Summary: | ASTERISK-26619: Both AST_ARGS and ASTARGS used in /etc/init.d script | ||
Reporter: | Telford Tendys (lnx-bsp) | Labels: | |
Date Opened: | 2016-11-22 16:59:25.000-0600 | Date Closed: | 2016-11-28 06:24:47.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | General |
Versions: | 1.8.32.3 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | OS: CentOS release 6.8 Package: asterisk-1.8.32.3-2.el6.x86_64 Build Host: buildhw-12.phx2.fedoraproject.org Source RPM: asterisk-1.8.32.3-2.el6.src.rpm | Attachments: | |
Description: | Two different variable names are used for the same purpose in the script /etc/init.d/asterisk
{quote} if [ $AST_USER ] ; then AST_ARGS="{color:red}$AST_ARGS{color} -U $AST_USER" fi if [ $AST_GROUP ] ; then AST_ARGS="{color:red}$AST_ARGS{color} -G $AST_GROUP" fi if [ $AST_CONFIG ]; then ASTARGS="{color:green}$ASTARGS{color} -C $AST_CONFIG" elif [ $ALTCONF ]; then ASTARGS="{color:green}$ASTARGS{color} -C $ALTCONF" fi {quote} Very likely this is a mistake. In testing it shows that changing the value of AST_USER inside /etc/sysconfig/asterisk has no effect on the running program because the arguments are lost in the script. | ||
Comments: | By: Asterisk Team (asteriskteam) 2016-11-22 16:59:26.415-0600 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. By: Rusty Newton (rnewton) 2016-11-23 16:00:55.233-0600 Asterisk 1.8 hasn't accepted bug fixes for about two years. Does the problem exist in a currently supported version of Asterisk (13,14)? I gave it a quick glance and I don't see the issue in current versions. https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions By: Telford Tendys (lnx-bsp) 2016-11-23 18:54:15.986-0600 Hi, thanks for taking a look. Packaged asterisk is a lot easier, and CentOS-6 is still very commonly used. You have to expect conservative distributions to lag behind the latest because when it comes to production there's absolutely no substitute to stability and testing. I really want to avoid building from source and messing around like that. Maintenance information seems to point back to Digium... perhaps this is no longer maintained at all ?!? RedHat maintains a separate Bugzilla website so I will put a message over there. Possibly they will accept a maintenance patch. Not sure exactly who is responsible for this anymore. {quote} [root@pbx ~]# rpm --query centos-release centos-release-6-8.el6.centos.12.3.x86_64 [root@pbx ~]# yum update Loaded plugins: fastestmirror Setting up Update Process Loading mirror speeds from cached hostfile * base: mirror.as24220.net * epel: mirror.intergrid.com.au * extras: ftp.swin.edu.au * updates: mirror.as24220.net No Packages marked for Update [root@pbx ~]# yum install asterisk Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.as24220.net * epel: mirror.intergrid.com.au * extras: ftp.swin.edu.au * updates: mirror.as24220.net Package asterisk-1.8.32.3-2.el6.x86_64 already installed and latest version Nothing to do [root@pbx ~]# yum info asterisk Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.as24220.net * epel: mirror.intergrid.com.au * extras: ftp.swin.edu.au * updates: mirror.as24220.net Installed Packages Name : asterisk Arch : x86_64 Version : 1.8.32.3 Release : 2.el6 Size : 11 M Repo : installed From repo : epel Summary : The Open Source PBX URL : http://www.asterisk.org/ License : GPLv2 Description : Asterisk is a complete PBX in software. It runs on Linux and provides : all of the features you would expect from a PBX and more. Asterisk : does voice over IP in three protocols, and can interoperate with : almost all standards-based telephony equipment using relatively : inexpensive hardware. {quote} By: Telford Tendys (lnx-bsp) 2016-11-23 19:11:01.542-0600 I searched inside Redhat's Bugzilla. Seems there was a bug with identical problem back in 2011 for RHEL-6 (almost identical to CentOS-6) and asterisk package version asterisk-1.8.6.0-4.fc16 https://bugzilla.redhat.com/show_bug.cgi?id=666081 Unfortunately, although supposedly fixed, I see exactly the same confusion between AST_ARGS and ASTARGS variable names. Seems like it never really got fixed... I will go to the Bugzilla and try my luck. Thanks again... By: Telford Tendys (lnx-bsp) 2016-11-27 22:40:12.680-0600 Someone else has already reported a new bug in Redhat's Buzilla. https://bugzilla.redhat.com/show_bug.cgi?id=1309986 Added a back-link to that and also a specific version of the package where the bug can be found. By: Joshua C. Colp (jcolp) 2016-11-28 06:24:47.487-0600 As mentioned by [~rnewton] 1.8 is no longer supported and upon further research the use of AST_ARGS was likely introduced by Redhat. That variable does not exist in vanilla 1.8 anywhere in the tree. |