Change directory location for XML script

Discussion in 'IP Phones' started by flexou, Nov 20, 2009.

  1. flexou

    Joined:
    Nov 20, 2009
    Messages:
    7
    Likes Received:
    0
    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 :)
     
  2. aastra1

    Joined:
    Mar 5, 2009
    Messages:
    46
    Likes Received:
    0
    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
     
  3. flexou

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

Share This Page