Trever L. Adams
8 years ago
22 changed files with 383 additions and 177 deletions
-
144asterisk_click2dial/README.rst
-
67asterisk_click2dial/__openerp__.py
-
10asterisk_click2dial/asterisk_click2dial.py
-
1asterisk_click2dial/scripts/set_name_agi.py
-
20asterisk_click2dial/static/src/js/asterisk_click2dial.js
-
8base_phone/fields.py
-
10base_phone/models/phone_common.py
-
2base_phone/models/res_partner.py
-
10base_phone/static/src/js/phone_widget.js
-
6base_phone/wizard/number_not_found.py
-
86base_phone_popup/README.rst
-
26base_phone_popup/__openerp__.py
-
70crm_phone/README.rst
-
14crm_phone/__openerp__.py
-
8crm_phone/crm_phone.py
-
5crm_phone/wizard/create_crm_phonecall.py
-
8freeswitch_click2dial/README.rst
-
2freeswitch_click2dial/__openerp__.py
-
4freeswitch_click2dial/controller.py
-
21freeswitch_click2dial/freeswitch_click2dial.py
-
16freeswitch_click2dial/scripts/get_caller_name.py
-
20freeswitch_click2dial/static/src/js/freeswitch_click2dial.js
@ -0,0 +1,144 @@ |
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
|||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
|||
:alt: License: AGPL-3 |
|||
|
|||
======================= |
|||
Asterisk-Odoo connector |
|||
======================= |
|||
|
|||
The technical name of this module is *asterisk_click2dial*, but this module |
|||
implements much more than a simple *click2dial*! This module adds 3 |
|||
functionalities: |
|||
|
|||
1) It adds a *Dial* button in the partner form view so that users can directly |
|||
dial a phone number through Asterisk. This feature is usually known as |
|||
*click2dial*. |
|||
|
|||
2) It adds the ability to show the name of the calling party on the screen of |
|||
your IP phone on incoming phone calls if the presented phone number is |
|||
present in the partner/leads/employees/... of Odoo. |
|||
|
|||
3) It adds a phone icon (*Open Caller*) in the top menu bar |
|||
(next to the Preferences) to get the partner/lead/candidate/registrations |
|||
corresponding to the calling party in one click. |
|||
|
|||
Installation |
|||
============ |
|||
|
|||
To install this module, you need to: |
|||
|
|||
* Click on the module and install it |
|||
|
|||
Configuration |
|||
============= |
|||
|
|||
To configure this module, you need to: |
|||
|
|||
* Settings > Technical > Asterisk Servers. |
|||
* Setup you server. |
|||
* Configure users under Settings > Users > $USER > Telephony tab. |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
To use this module, you need to: |
|||
|
|||
* See scripts/* (as mentioned below in section 2 of Usage) to see how to set |
|||
caller and callee name. |
|||
|
|||
* Click on Dial next to any phone number covered by associated modules. |
|||
|
|||
1) *click2dial*. Here is how it works : |
|||
|
|||
* In Odoo, the user clicks on the *Dial* button next to a phone number |
|||
field in the partner view. |
|||
|
|||
* Odoo connects to the Asterisk Manager Interface and Asterisk makes the |
|||
user's phone ring. |
|||
|
|||
* The user answers his own phone (if he doesn't, the process stops here). |
|||
|
|||
* Asterisk dials the phone number found in Odoo in place of the user. |
|||
|
|||
* If the remote party answers, the user can talk to his correspondent. |
|||
|
|||
2) Using Odoo to provide Caller ID Name in Asterisk. To understand how to |
|||
use this, please see the scripts mentioned below, which should be installed |
|||
per the instructions in the script on the Odoo/Odoo server. This works for |
|||
incoming and outgoing calls, per instructions in the script. |
|||
|
|||
|
|||
* On incoming phone calls, the Asterisk dialplan executes an AGI script |
|||
"set_name_incoming_timeout.sh". |
|||
|
|||
* The "set_name_incoming_timeout.sh" script calls the "set_name_agi.py" |
|||
script with a short timeout. |
|||
|
|||
* The "set_name_agi.py" script will make an XML-RPC request on the Odoo |
|||
server to try to find the name of the person corresponding to the phone |
|||
number presented by the calling party. |
|||
|
|||
* If it finds the name, it is set as the CallerID name of the call, so as |
|||
to be presented on the IP phone of the user. |
|||
|
|||
It also works on outgoing calls, so as to display the name of the callee on |
|||
the SIP phone of the caller. For that, you should use the script |
|||
"set_name_outgoing_timeout.sh". |
|||
|
|||
3) *Open Caller* Here is how it works : |
|||
|
|||
* When the user clicks on the phone icon, Odoo sends a query to the |
|||
Asterisk Manager Interface to get a list of the current phone calls. |
|||
|
|||
* If it finds a phone call involving the user's phone, it gets the phone |
|||
number of the calling party. |
|||
|
|||
* It searches the phone number of the calling party in the |
|||
Partners/Leads/Candidates/Registrations of Odoo. If a record matches, |
|||
it takes you to the form view of this record. If no record matchs, it |
|||
opens a wizard which proposes to create a new Partner with the presented |
|||
phone number as *Phone* or *Mobile* number or update an existing Partner. |
|||
|
|||
It is possible to get a pop-up of the record corresponding to the calling |
|||
party without any action from the user via the module *base_phone_popup*. |
|||
|
|||
A detailed documentation for this module is available on the Akretion Web site: |
|||
http://www.akretion.com/products-and-services/openerp-asterisk-voip-connector |
|||
|
|||
Known issues / Roadmap |
|||
====================== |
|||
|
|||
* None |
|||
|
|||
Bug Tracker |
|||
=========== |
|||
|
|||
Bugs are tracked on `GitHub Issues |
|||
<https://github.com/OCA/connector-telephony/issues>`_. In case of trouble, please |
|||
check there if your issue has already been reported. If you spotted it first, |
|||
help us smashing it by providing a detailed and welcomed feedback. |
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Akretion |
|||
* Odoo Community Association (OCA) |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
OCA, or the Odoo Community Association, is a nonprofit organization whose |
|||
mission is to support the collaborative development of Odoo features and |
|||
promote its widespread use. |
|||
|
|||
To contribute to this module, please visit http://odoo-community.org. |
|||
|
@ -0,0 +1,86 @@ |
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
|||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
|||
:alt: License: AGPL-3 |
|||
|
|||
================= |
|||
Base Phone Pop-up |
|||
================= |
|||
|
|||
When the user receives a phone call, Odoo can automatically open the |
|||
corresponding partner/lead/employee/... in a pop-up without any action from |
|||
the user. |
|||
|
|||
Installation |
|||
============ |
|||
|
|||
To install this module, you need to: |
|||
|
|||
* Click on the module and install it |
|||
|
|||
The module *web_action_request* can be downloaded with Mercurial: |
|||
|
|||
hg clone http://bitbucket.org/anybox/web_action_request |
|||
|
|||
It depends on 2 other modules, *web_longpolling* and *web_socketio*, that can |
|||
be downloaded with this command: |
|||
|
|||
hg clone http://bitbucket.org/anybox/web_socketio |
|||
|
|||
You will find some hints in this documentation : |
|||
https://bitbucket.org/anybox/web_action_request |
|||
|
|||
Warning : proxying WebSockets is only supported since Nginx 1.3.13 ; the |
|||
feature provided by this module won't work with older versions of Nginx. |
|||
|
|||
TODO : document this new feature on the Akretion Web site : |
|||
http://www.akretion.com/products-and-services/openerp-asterisk-voip-connector |
|||
|
|||
Configuration |
|||
============= |
|||
|
|||
To configure this module, you need to: |
|||
|
|||
* Configure users under Settings > Users > $USER |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
* Install, configure user, use. |
|||
|
|||
Known issues / Roadmap |
|||
====================== |
|||
|
|||
* None |
|||
|
|||
Bug Tracker |
|||
=========== |
|||
|
|||
Bugs are tracked on `GitHub Issues |
|||
<https://github.com/OCA/connector-telephony/issues>`_. In case of trouble, please |
|||
check there if your issue has already been reported. If you spotted it first, |
|||
help us smashing it by providing a detailed and welcomed feedback. |
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Akretion |
|||
* Odoo Community Association (OCA) |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
OCA, or the Odoo Community Association, is a nonprofit organization whose |
|||
mission is to support the collaborative development of Odoo features and |
|||
promote its widespread use. |
|||
|
|||
To contribute to this module, please visit http://odoo-community.org. |
|||
|
@ -0,0 +1,70 @@ |
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
|||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
|||
:alt: License: AGPL-3 |
|||
|
|||
========= |
|||
CRM Phone |
|||
========= |
|||
|
|||
This module validate phone numbers in the CRM module, just like the |
|||
*base_phone* module valide phone numbers in the Partner form. Please refer to |
|||
the description of the *base_phone* module for more information. |
|||
|
|||
This module is independant from the Asterisk and FreeSWITCH connectors. |
|||
|
|||
Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> |
|||
for any help or question about this module. |
|||
|
|||
Installation |
|||
============ |
|||
|
|||
To install this module, you need to: |
|||
|
|||
* Click on the module and install it |
|||
|
|||
Configuration |
|||
============= |
|||
|
|||
* None beyond *base_phone* configuration. |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
|
|||
Known issues / Roadmap |
|||
====================== |
|||
|
|||
* None |
|||
|
|||
Bug Tracker |
|||
=========== |
|||
|
|||
Bugs are tracked on `GitHub Issues |
|||
<https://github.com/OCA/connector-telephony/issues>`_. In case of trouble, please |
|||
check there if your issue has already been reported. If you spotted it first, |
|||
help us smashing it by providing a detailed and welcomed feedback. |
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Akretion |
|||
* Odoo Community Association (OCA) |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
OCA, or the Odoo Community Association, is a nonprofit organization whose |
|||
mission is to support the collaborative development of Odoo features and |
|||
promote its widespread use. |
|||
|
|||
To contribute to this module, please visit http://odoo-community.org. |
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue