| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 528 |
| Technical Name |
phonebook |
| License | LGPL-3 |
| Versions | 15.0 16.0 |
Phonebook for VoIP phones
Make your Odoo contacts available from VoIP phones
This module is used as XML user directory service for different VoIP phones.
Supported IP phones:
- Aastra
- Atcom
- Cisco
- Digium A & D Series
- Fanvil
- Grandstream
- Panasonic
- Polycom
- SNOM
- Yealink
Roadmap
- Odoo 9, 10, 11 and 12 support.
- IP based ACL to restrict access to phonebook only from LAN.
- Support for your phone model can be added on your request...
Support
Bugs, feature requests
For bugs and feature requests please send email to odooist@gmail.com.
Tips & tricks
To talk about Odoo & VoIP integration join our Telegram chat
Phonebook documentation
Contents
Installation & Configuration
If your installation is a single db (using db_filter) you have to do nothing.
If you have many databases then add phonebook to your server_wide_modules setting, e.g.:
; for Odoo 9 and 10 server_wide_modules=web,web_kanban,phonebook ; For Odoo 11 and 12 server_wide_modules=web,phonebook
Settings
Activate Developer mode and go to Settings -> Technical -> Parameters -> Phonebook.
Adjust settings for your environment.
Usage
Open your phone settings and set XML phonebook URL. URL is made of your Odoo server address, db name and phone model.
Let demonstrate it with the following example.
- Odoo server address: http://my.odoo.com:8069
- Database name: demo
- Phone model: Grandstream
For single Odoo db installation (db_filter is used) the following URL is constructed:
- http://my.odoo.com:8069/phonebook/gs/phonebook.xml
For multi database Odoo environments database should be injected in the path:
- http://my.odoo.com:8069/phonebook/demo/gs/phonebook.xml (note demo in the path)
Aastra
Aastra phones download CSV file with contacts via TFTP. So with Aastra phones you should setup a cron script to periodically update file with contacts. Example:
curl -o phonebook.csv http://my.odoo.com:8069/phonebook/demo/aastra/phonebook.csv
Atcom
Atcom phones support HTTP phonebook feature. Example URL: http://my.odoo.com:8069/phonebook/demo/atcom/phonebook.xml
Audiocodes
The Configuration file can include a link to a user-defined Corporate Directory file, using the 'provisioning/corporate_directory_uri' parameter.
For example: provisioning/corporate_directory_uri=phonebook.csv
You need to create a cron script to periodically reload the phonebook from Odoo and put it into provisioning folder.
Example:
curl -o phonebook.csv http://my.odoo.com:8069/phonebook/demo/audiocodes/phonebook.csv
Cisco
Example URL: http://my.odoo.com:8069/phonebook/demo/cisco/phonebook.xml
Digium A-Series
Remote retrieval, as a part of the phone's configuration file, is controlled with the AUTOUPDATE CONFIG MODULE configuration section with the Auto Pbook Url configuration parameter, e.g.:
<<VOIP CONFIG FILE>>Version:2.0000000000 <AUTOUPDATE CONFIG MODULE> Auto Pbook Url :http://my.odoo.com:8069/phonebook/demo/digium_a/phonebook.xml <<END OF FILE>>
Digium D-Series
Contacts files that the phone should load are separate files, defined by DPMA or configured in the phone's main configuration XML file. For DPMA, Contacts files are specified for a phone configuration using the phone configuration parameter: contact as noted above.
Multiple "contact" lines may be used for each phone configuration.
For XML configuration, Contacts files are specified using the <contacts> element.
Example URL: http://my.odoo.com:8069/phonebook/demo/digium_d/phonebook.xml
Fanvil
Go to PHONE -> REMOTE CONTACT -> Remote Phonebook Settings.
Add phonebook URL in the Server URL field. Example URL: http://my.odoo.com:8069/phonebook/demo/fanvil/phonebook.xml
Grandstream
Grandseam phones add phonebook.xml to server URL. So You should specify only the part of URL. Example: http://my.odoo.com:8069/phonebook/demo/gs/.
Panasonic
Set Network -> Application Settings -> Enable Application [YES].
Set Telephone -> Application Settings -> Network Phonebook URL to http://my.odoo.com:8069/phonebook/demo/panasonic/contacts.xml.
Polycom
As Polycom phones cannot get contact book from HTTP you need to create cron script that will periodically download contacts from Odoo and put it in your TFTP server root where your phones are provisoned.
Example:
curl -o 000000000000-directory.xml http://my.odoo.com:8069/phonebook/demo/polycom/phonebook.xml
Refer to Polycom provision documentation for details or contact for support.
SNOM
Add phonebook URL to <setting-files> tag. Example URL: http://my.odoo.com:8069/phonebook/demo/snom/phonebook.xml
According to documentation SNOM phones can store 100-250 directory entries. If you require some way to filter contacts that go to SNOM phones contact me for a discussion.
Yealink
Specify yealink URL. Example: http://my.odoo.com:8069/phonebook/demo/yealink/phonebook.xml
Customization
You can easily customize phone templates.
Go to Settings -> Technical -> User Interface - Views.
Type phonebook in the search fields and press enter. You will see all templates of this module.
Find one that is required and customize it.
VoIP phones documentation
I have collected some links for your convinience. Please let me know if some links get broken.
- Atcom
- Audiocodes
- Grandstream
- Panasonic
- Polycom
- SNOM
- Digium A series
- Digium D series
Changelog
1.5
- Added option to limit phonebook with selected only partners.
1.4
- Addes option to strip formatting characters from phone numbers (in Settings).
1.3
- Response header fix (returns text/xml instead of text/html).
- Settings page and HTTP auth option for phones models supporting this option.
- Aastra phones support added.
- Yealink phones support added.
- Atcom phones support added.
- Panasonic phones support added.
- Digium phones support added.
- Audiocodes phones support added.
1.2
- SNOM phones support added.
- Fanvil phones support added.
- Odoo version 10.0 module release.
1.1
- Polycom phones support added.
1.0
- Initial release with Grandstream support.
Please log in to comment on this module
There are no ratings yet!
module installation problem
I tried to install the module during installation, it shows an error
Error while importing module 'phonebook'.
while parsing /tmp/tmpvlt1k7m_/phonebook/views/res_partner.xml:2
Error while validating view:
Element '' cannot be located in parent view
View error context:
{'file': '/tmp/tmpvlt1k7m_/phonebook/views/res_partner.xml',
'line': 2,
'name': 'Phonebook partner search',
'view': ir.ui.view(8277,),
'view.model': 'res.partner',
'view.parent': ir.ui.view(124,),
'xmlid': 'phonebook_partner_search'}
Re: module installation problem
Hello.
Please contact technical support here - https://odoopbx.com/helpdesk