Sorry to revamp an old thread.
I have a bunch of cisco 7811 phones which I have successfully integrated with freepbx and they are connected and calls made. All softkeys are working well.
The only challenge is getting the phonebook directory to work.
I have included the directory.php file in the /var/www/html folder and it is visible via a browser, but the cisco phones still do not recognise it. Says, “contact not found” when I press the directory button om the phones
Could you please help with a working directory.php or directory.xml file?
It’s always best to start with a fresh post when encountering an issue like this. Here are some steps to help you troubleshoot a potential mismatch between a button press on a phone and the expected script execution on your server:
1. Monitor the Apache Logs:
Start by tailing your Apache error logs. The usual location is /var/log/httpd/error_log. Use the following command:
tail -f /var/log/httpd/error_log
Press the button on your phone and observe the log output. Look for any error messages or requests that might indicate whether the phone is reaching the server and the intended script correctly.
2. Verify URL Accuracy:
Double-check that the URL configured on the phone to trigger the script is exactly the same as the one you would use to access it from a web browser on your computer. Pay close attention to the hostname (or IP address), the path, and any parameters included.
Sometimes, phones may modify or add unexpected elements to the URL.
3. Network Considerations (if applicable):
If your phone and server are on different networks, ensure that any firewalls or network configurations are not blocking the phone’s request from reaching your server.
I have been monitoring the apache log, and funny enough, there is no error. The phone actually accesses the file, but doesn’t load it.
I even went as far of creating a dummy phonebook.xml as well as directory.php files.
The phones see them (from my apache log) but still says “Contacts not found”.
I have included a screenshot of my apache error and access log.
-Access log
Hello good, I am very interested in your configuration files, since I have two Cisco IP phones (CP-7841 and CP-8841) and what I am not able to work in either of the two models is the agenda, thank you very much, thank you very much, And sorry for my English I am Spanish.
This is the SEP file for the 8865 phone. Working well
NB: !0.100.60.1 - Gateway
10.100.60.5 - IP PBX server IP
I created a cisco folder in my /var/www/html/ directory where I created the phone directory files ( a “menu.xml” file and some directory xml files).
authPAssword - is the password created for that extension on freepbx gui interface
authName - 408 is the phone extension number created on freepbx gui as well.
Good you found the solution, and so to hear the same as I did.
First a DirMenu.xml and then Sub directories from there.
Then I have not much to add.
However I red more people push the menu xml files in /var/www/html
and they should be in /tftboot folder, that’s designed for it.
If you did it like this:
in the SEPmac.xml <directoryURL>http://192.168.2.101:84/phonebooks/DirMenu.xml</directoryURL>
In this case FreePBX is on 192.168.2.101 and Port: 84 is reserved for http acces into /tftpboot
so my files reside in: /tftpboot/phonebooks
I will test this in my lab and see how it goes. Thank you.
One challenge I have, when dialing from phone B (jack) for example, to phone A (jill). On phone B, I dial 100 (the extension number for Jill) and on phone A, I receive the call with all the contact details of the caller (phone B) showing. But on phone B (who is the caller), I don’t see the contact details of the recipient “in-call” (Jill), even though it exists in my address book.
So it just displays the recipient’s extension number only.
Have you experienced this? Any thoughts on what could have caused it?
I just tested quick with my SPA504G Sip firmware. It has no contacts, but does report the
name of the extention I dial on the screen. No sure why you don’t get that.
Totally slipped my mind. What can I do for you to test?
I am confident that what you discribe is, working as intend.
So you’re phones know the names of users because of what you filled in at the Extensions tab,
and that can be overrulled by the: Subscriber Information > Display Name: XXXX that has been
filled in the webinterface/SEPmac from the phone.
At least that is how Cisco’s SPA504G and the 88xx know oneother.
You for sure don’t have to add users to you’re Adressbook because the phone won’t use it as a
CallerID lookup-source.