Change directory location for XML script

flexou

Joined
Nov 20, 2009
Messages
7
Likes
0
Points
0
#1
Hello

Excuse me for my English.
I will present my little problem.
I installed the scripts for Aastra especially for the directory.
My problem is, I would like the file "Contacts.txt" normally located at the following location /var/cache/Aastra, or on a share on a Windows 2003 server.
I know it must change the file asterisk.conf but despite all my efforts not to run.

Help me :)
 

aastra1

Joined
Mar 5, 2009
Messages
46
Likes
0
Points
0
#2
You are right you need to modify the "Contacts" section and change the location parameter in /var/www/html/aastra/config/asterisk.conf

for instance

[Contacts]
# Directory location of the csv text file (default is the cache directory /var/cache/aastra)
location=/mnt1

You must make sure that the location is a unix path for a netwoprk drive and that this path is accessible in read mode to the "asterisk" user which is the HTTP user. One way to check that is to go to the console as root, then
> su asterisk
> vi /mnt1/contacts.txt (to follow my previous example)
If you cannot edit the file, the php script will not either. So that is the first check.

Also you might want to configure the debug mode (server.conf) and check the debug file located at /var/cache/aastra, it will tell you what happens when you run the script.

Hope this helps.

Regards

aastra1
 

flexou

Joined
Nov 20, 2009
Messages
7
Likes
0
Points
0
#3
Thank you aastra1 !
it's ok :)
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,565
Latest member
omarmenichetti
Top