Duplicates in amportal.conf

HiltonT

New Member
Joined
Jan 12, 2008
Messages
7
Reaction score
0
Hi All,

I've seen an issue in the /etc/amportal.conf file whereby there is one line that is duplicated, and it being a password line, it could cause some issues.

Line 15: AMPDBPASS=...

This same line (uncommented) is repeated right down the bottom of this config file. The result is that if you change the first instance and not the second, your password won't actually be updated correctly as it is redefined later in the configuration file.
 
if it's got a # in front of it, then it's a comment - and only the last one will take as it is parsed from top to bottom.
 
Duplicate Entries in /etc/amportal.conf

Looks like AMPDBUSER and AMPDBPASS both are in the file twice. The duplicates are toward the end of the file beginning on line 135. For clarity and to avoid future problems, you might want to comment out those two lines:
Code:
#AMPDBUSER=asteriskuser
#AMPDBPASS=amp109
AMPDBNAME=asterisk
ASTETCDIR=/etc/asterisk
ASTMODDIR=/usr/lib/asterisk/modules
ASTVARLIBDIR=/var/lib/asterisk
ASTAGIDIR=/var/lib/asterisk/agi-bin
ASTSPOOLDIR=/var/spool/asterisk 
ASTRUNDIR=/var/run/asterisk
ASTLOGDIR=/var/log/asterisk
 
if it's got a # in front of it, then it's a comment - and only the last one will take as it is parsed from top to bottom.

Hi p,

Yes, and that is probably why I made specific mention of the uncommented Line 15 and the uncommented repeat of this line further down in the file. :)
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top