[Home]

Summary:ASTERISK-28332: Variable ALTCONF ignored when service is used in Debian
Reporter:Cirillo Ferreira (cirillor@lbv.org.br)Labels:
Date Opened:2019-03-08 14:29:01.000-0600Date Closed:2019-03-18 05:34:59
Priority:MinorRegression?No
Status:Closed/CompleteComponents:General
Versions:13.25.0 16.2.1 Frequency of
Occurrence
Related
Issues:
Environment:Linux XXXXX 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/LinuxAttachments:
Description:The variable ALTCONF is ignored when defined at file /etc/default/asterisk.

The start command prints following message:

{code}
root@XXXXX:/var/log/asterisk# service asterisk start
root@XXXXX:/var/log/asterisk# service asterisk status
● asterisk.service - LSB: Asterisk PBX
  Loaded: loaded (/etc/init.d/asterisk)
  Active: active (running) since Fri 2019-03-08 17:02:16 -03; 1s ago
 Process: 4239 ExecStop=/etc/init.d/asterisk stop (code=exited, status=0/SUCCESS)
 Process: 4267 ExecStart=/etc/init.d/asterisk start (code=exited, status=0/SUCCESS)
  CGroup: /system.slice/asterisk.service
          └─4279 /usr/sbin/asterisk -C "/etc/asterisk/asterisk.conf" -g -v -F

Mar 08 17:02:16 XXXXX asterisk[4267]: Starting Asterisk PBX: asteriskUnable to open specified master config file '"/etc/asterisk/asteris...defaults
Mar 08 17:02:16 XXXXX asterisk[4267]: .
Mar 08 17:02:16 XXXXX systemd[1]: Started LSB: Asterisk PBX.
Hint: Some lines were ellipsized, use -l to show in full.
{code}

If we consider that can't has space in the path of file, then
the workaround is to remove the quotes around ALTCONF at file /etc/init.d/asterisk

{code}
       if [ $ALTCONF ]; then
               ASTARGS="$ASTARGS -C \"$ALTCONF\""
       fi
{code}
to
{code}
       if [ $ALTCONF ]; then
               ASTARGS="$ASTARGS -C $ALTCONF"
       fi
{code}
Comments:By: Asterisk Team (asteriskteam) 2019-03-08 14:29:02.557-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].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

By: Friendly Automation (friendly-automation) 2019-03-18 05:35:01.426-0500

Change 11147 merged by Joshua Colp:
Variable ALTCONF ignored when service is used in Debian

[https://gerrit.asterisk.org/c/asterisk/+/11147|https://gerrit.asterisk.org/c/asterisk/+/11147]

By: Friendly Automation (friendly-automation) 2019-03-18 05:36:37.758-0500

Change 11125 merged by Friendly Automation:
Variable ALTCONF ignored when service is used in Debian

[https://gerrit.asterisk.org/c/asterisk/+/11125|https://gerrit.asterisk.org/c/asterisk/+/11125]

By: Friendly Automation (friendly-automation) 2019-03-18 06:01:49.060-0500

Change 11148 merged by Joshua Colp:
Variable ALTCONF ignored when service is used in Debian

[https://gerrit.asterisk.org/c/asterisk/+/11148|https://gerrit.asterisk.org/c/asterisk/+/11148]