PIAF 1.2 New Install Problems/Fixes

rpm10k

New Member
Joined
Apr 30, 2008
Messages
4
Reaction score
0
I am new to PIAF but have been using Asterisk based PBX's for years now.
I installed 1.2 yesterday evening (05/01/08) to evaluate it and before I even configured anything I wanted to make sure I was running the latest software, so the first thing I did was 'yum update', then 'update-scripts', then 'update-source' and finally 'update fixes'.
The only password I set/changed besides for root was for webmin.

While configuring the system I ran into problems because I could not upload into the system recordings. I don't remember the exact error message from the web interface, but it was because the rights are wrong for /var/lib/asterisk/sounds/custom
I do not know what they should be but I fixed the error by running 'chmod -R 775 /var/lib/asterisk/sounds/custom' but I will be looking at another system later today to see what the rights should be.

After getting the system configured and working, the next problem I found was with the Call Detail Reports. They were empty.
I found that /etc/asterisk/cdr_mysql.conf was the problem. It seems to have been replaced by the 'update-source' with a "generic" file (nothing but commented out lines).
I put the following lines into cdr_mysql.conf

[global]
hostname=localhost
dbname=asteriskcdrdb
table=cdr
password=amp109
user=asteriskuser

And then for good measure I ran 'amportal restart'.

I don’t know of any other issues with a new/clean install of PIAF 1.2, but these will fix those that do exist.

RPM10K
 
Not to blame anyone else :lol: but update-source loads new Asterisk code and, in the past, they've made a career out of screwing up permissions. We'll take a look at the CDR issue. It was fixed back in December, but it may have fallen through the cracks in the latest release. Thanks for the report!!
Code:
; Modified by TAK Dec 25,2007
; (C) PBX in a Flash Project
; Note - if the database server is hosted on the same machine as the
; asterisk server, you can achieve a local Unix socket connection by
; setting hostname=localhost
;
; port and sock are both optional parameters.  If hostname is specified
; and is not "localhost", then cdr_mysql will attempt to connect to the
; port specified or use the default port.  If hostname is not specified
; or if hostname is "localhost", then cdr_mysql will attempt to connect
; to the socket file specified by sock or otherwise use the default socket
; file.
;
[global]
hostname=localhost
dbname=asteriskcdrdb
table=cdr
password=amp109 
user=asteriskuser
;port=3306
;sock=/tmp/mysql.sock
;userfield=1
 
:mad5: Grrrrrrr

In actual fact the new install-pbx script has all of the patches from update-fixes installed in it. The fact that this is occurring tells me that something post install is causing the problems.I am looking into it and will hopefully kill whatever ti is. In the meantime I have updated the update-fixes that will correct these problems. Simply run update-scripts then update-fixes and you should be OK

Tom
 

Members online

Forum statistics

Threads
26,686
Messages
174,406
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