Upgrade from 0.7b to 0.8:

1. Update PHP-files:

    Copy gsphonebook-0.8/html/* recursively over your old installation.

2. Update Python-files:

    Copy gsphonebook-0.8/python/gsphonebookd.py over your old gsphonebookd.py.

--------------------------------------------------------------------------------
Upgrade from 0.7a to 0.7b:

1. Update PHP-files:

    Copy gsphonebook-0.7b/html/* recursively over your old installation.

--------------------------------------------------------------------------------
Upgrade from 0.7 to 0.7a:

1. Update PHP-files:

    Copy gsphonebook-0.7a/html/* recursively over your old installation.

2. Update Python-files:

    Copy gsphonebook-0.7a/python/gsphonebookd.py over your old gsphonebookd.py.

--------------------------------------------------------------------------------
Upgrade from 0.6 to 0.7:

1. Update PHP-files:

    Copy gsphonebook-0.7/html/* recursively over your old installation.

2. Update Python-files:

    Copy gsphonebook-0.7/python/gsphonebookd.py over your old gsphonebookd.py.

--------------------------------------------------------------------------------
Upgrade from 0.5a to 0.6:

1. Update PHP-files:

    Copy gsphonebook-0.6/html/* recursively over your old installation.

    Add the following lines to your config.php:
----------------------------------------------------------------------
/* Relative or absolut path to the directory with the GS idle screen files.
   This can but doesn't have to be within the web root */
$idledir = "idlescreens";
----------------------------------------------------------------------

2. Update Python-files:

    Copy gsphonebook-0.6/python/gsphonebookd.py over your old gsphonebookd.py.

    Add the following line to your config.py:

        idle_sipnotify = 'grandstream-idle-screen-refresh'

If you want the callinfo display on the Grandstream Idle Screen to work you
also have to do the following:

3. Update Asterisk Manager User:
    Update the appropriate user in /etc/asterisk/manager.conf to have
    'command' write-privileges:

        write = command

4. Follow step 9 in INSTALL.txt

--------------------------------------------------------------------------------
Upgrade from 0.5 to 0.5a:

1. Update PHP-files:

    Copy gsphonebook-0.5a/html/* recursively over your old installation.

--------------------------------------------------------------------------------
Upgrade from 0.4 to 0.5:

1. Update database schema:
    Execute as user 'postgres':
    $ psql gsphonebook < database-0.4-to-0.5.pgsql

2. Update PHP-files:

    Copy gsphonebook-0.5/html/* recursively over your old installation.

3. Update Python-files:

    Copy gsphonebook-0.5/python/gsphonebookd.py over your old gsphonebookd.py.

4. Upgrade options under "Administration".

--------------------------------------------------------------------------------
Upgrade from 0.3 to 0.4:

1. Update database schema:
    Execute as user 'postgres':
    $ psql gsphonebook < database-0.3-to-0.4.pgsql

2. Update PHP-files:

    Copy gsphonebook-0.4/html/* recursively over your old installation.

3. Update Python-files:

    Copy gsphonebook-0.4/python/gsphonebookd.py over your old gsphonebookd.py.

--------------------------------------------------------------------------------
Upgrade from 0.2 to 0.3:

1. Update database schema:
    Execute as user 'postgres':
    $ psql gsphonebook < database-0.2-to-0.3.pgsql

2. Update PHP-files:

    Copy gsphonebook-0.3/html/* recursively over your old installation.

3. *OPTIONAL* for call information and history:

    Install gsphonebookd.py as described in INSTALL.txt, section 8.

    Additionally the asterisk manager user you set up before needs additional
    read permissions. Add the following line to /etc/asterisk/manager.conf to
    the gsphonebook-user:

    read = call, system

--------------------------------------------------------------------------------
Upgrade from 0.1 to 0.2:

1. Update database schema:
    Execute as user 'postgres':

    $ psql gsphonebook -c "ALTER TABLE users ADD callerid text"

2. Update PHP-files:

    Copy gsphonebook-0.2/html/* recursively over your old installation.

3. Update config.php:

    Add the following lines to your config.php:
----------------------------------------------------------------------
/* How long should browser sessions last? */
$session_timeout = 21600;

/* Enable XAJAX-debugging? */
$debug = false;
----------------------------------------------------------------------

4. For click-to-dial to work follow the explanation in INSTALL.txt
