Phonebook 404 on url

For some reason i get a 404 error on the phonebook url.


phonebook 2

I already tried uninstalling and reinstalling the add-on.
Also tried to create an extra phonebook, but that one didn’t work too.

The Phonebook for security reasons can only be accessed from approved phones such as Yealink, Grandstream, etc.
It is not possible to access from any borowser.

That seems like a good idea to prevent access from other devices to prevent data leakage.
However it would be better to serve a 403 http code. Access denied.
That way i know it is working, but it isn’t allowed to view this page from the device i am using.

Would be really nice to be able to watch the file anyway when logged in at vitalpbx gui to check it.

2 Likes

@admin is the Aastra 67xx series also in this approved list? My phone is getting a 403 error. The permissions of /usr/share/vitalpbx/www/phonebook.php look good at first sight:

vital@vitalpbx:~$ ls -l /usr/share/vitalpbx/www/phonebook.php
-rw-r–r-- 1 www-data www-data 8660 May 7 2024 /usr/share/vitalpbx/www/phonebook.php

My phones spit out the following:
<135>11:04:27.600000 RequestNewApplication: (XML) FUNC: uri: http://192.168.178.86/phonebook.php?pb=cJinsNudN
<135>11:04:27.600000 RequestNewApplication: (XML) FUNC: boundUri: http://192.168.178.86/phonebook.php?pb=cJinsNudN
<135>11:04:27.630000 EvDownloadComplete: (XML) FUNC: EvDownloadComplete status = 0
<135>11:04:27.630000 handleXmlEvent: (XML) FUNC: Handling XML event
<135>11:04:27.630000 handleXmlEvent: (XML) ERROR: No xml screen container for buffer

and Nginx the following:
192.168.178.58 - - [02/Apr/2025:16:55:23 +0200] “GET /phonebook.php HTTP/1.1” 403 87 “-” “Aastra55i MAC:[mac address] V:3.3.1.4358-SIP”

No, the Aastra brand is not supported.

Do you have the XML format for the Aastra Phonebooks?

@miguel thanks for responding. I am not 100% sure but I did find these links just a moment ago:

https://www.mitel.com/document-center/devices-and-accessories/ip-phones/6900-series/6900-sip-phones/51/en/xml-api-for-mitel-sip-phones-firmware-development-guide

Unfortunately, the shared information doesn’t include the Phonebook Structure!

I will have a better look. I am not too familiar with the XML format of Aastra phonebooks. Can you tell/show me ± what I should be looking for?

@miguel attached you can find the xml development guide for the latest firmware version.

https://www.swisstransfer.com/d/79a5613f-8153-4db8-afca-85234bfb3359

On page 23 they start talking on the XML format.

On page 311 they have an appendix about “CSV based Directory”