OK quick walk through:
Download Open79XX XML Directory from here:
https://sourceforge.net/projects/open79xxdir/files/OpenXMLDir/1.2/openxmldir_1.2.tar.gz/download
extract to /var/www/html/xmldir
chown -R asterisk.asterisk /var/www/html/xmldir
Change all the CiscoIPPhoneGraphicMenu tags to just CiscoIPPhoneMenu, so that the menus work on the non-colour SPA phones that can’t display graphics:
cd /var/www/html/xmldir/PhoneUI/templates
sed -i ‘s/CiscoIPPhoneGraphicMenu/CiscoIPPhoneMenu/g’ *
edit the main menu to remove the ‘Memos’ (unless you want that), and to make the Search option accessible from the first screen. Also get rid of the user registrations list stuff:
> vim img_menu.php
change the parts that start at 1.Main to look like this:
<MenuItem>
<Name>Main</Name>
<URL>".$URLBase."menuItems.php?name=".$MAC."</URL>
</MenuItem>
<MenuItem>
<Name>Search for Contacts</Name>
<URL>".$URLBase."searchdirectory.php?global=true&find=contact&name=",$MAC."</URL>
</MenuItem>
(This will give you simply ‘Main’ and ‘Search for Contacts’ on the phone, so that you don’t have to go through two other submenus to to do a global search).
save that file
cd /var/www/html/xmldir/PhoneUI/lib
vim urlbase.php
change the line near the top to:
$url_end = 'xmldir/PhoneUI/';^M
save that file (esc, : , wq , enter)
> mysql -u root -p
not sure what the distro root mysql password is. You can try mysql without the -u and -p
create database xmldir;
quit
browse to > http://<ip-of-pbx>/xmldir/install.php
choose localhost and your database credentials and the database name you just created - xmldir
then on the SPA phones in the phones config file:
<XML_Directory_Service_Name group="Phone/XML_Service">Central Directory</XML_Directory_Service_Name>
<XML_Directory_Service_URL group="Phone/XML_Service">http://ip-address-of-pbx/xmldir/PhoneUI/index.php</XML_Directory_Service_URL>