You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
3.8 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
12 years ago
13 years ago
12 years ago
  1. # -*- coding: utf-8 -*-
  2. # © 2010-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  4. {
  5. 'name': 'Asterisk Click2dial',
  6. 'version': '10.0.1.0.0',
  7. 'category': 'Phone',
  8. 'license': 'AGPL-3',
  9. 'summary': 'Asterisk-Odoo connector',
  10. 'description': """
  11. Asterisk-Odoo connector
  12. ==========================
  13. The technical name of this module is *asterisk_click2dial*, but this module
  14. implements much more than a simple *click2dial* ! This module adds 3
  15. functionalities:
  16. 1) It adds a *Dial* button in the partner form view so that users can directly
  17. dial a phone number through Asterisk. This feature is usually known as
  18. *click2dial*. Here is how it works :
  19. * In Odoo, the user clicks on the *Dial* button next to a phone number
  20. field in the partner view.
  21. * Odoo connects to the Asterisk Manager Interface and Asterisk makes the
  22. user's phone ring.
  23. * The user answers his own phone (if he doesn't, the process stops here).
  24. * Asterisk dials the phone number found in Odoo in place of the user.
  25. * If the remote party answers, the user can talk to his correspondent.
  26. 2) It adds the ability to show the name of the calling party on the screen of
  27. your IP phone on incoming phone calls if the presented phone number is
  28. present in the partner/leads/employees/... of Odoo. Here is how it works:
  29. * On incoming phone calls, the Asterisk dialplan executes an AGI script
  30. "set_name_incoming_timeout.sh".
  31. * The "set_name_incoming_timeout.sh" script calls the "set_name_agi.py"
  32. script with a short timeout.
  33. * The "set_name_agi.py" script will make an XML-RPC request on the Odoo
  34. server to try to find the name of the person corresponding to the phone
  35. number presented by the calling party.
  36. * If it finds the name, it is set as the CallerID name of the call, so as
  37. to be presented on the IP phone of the user.
  38. It also works on outgoing calls, so as to display the name of the callee on
  39. the SIP phone of the caller. For that, you should use the script
  40. "set_name_outgoing_timeout.sh".
  41. 3) It adds a phone icon (*Open Caller*) in the top menu bar
  42. (next to the Preferences) to get the partner/lead/candidate/registrations
  43. corresponding to the calling party in one click. Here is how it works :
  44. * When the user clicks on the phone icon, Odoo sends a query to the
  45. Asterisk Manager Interface to get a list of the current phone calls
  46. * If it finds a phone call involving the user's phone, it gets the phone
  47. number of the calling party
  48. * It searches the phone number of the calling party in the
  49. Partners/Leads/Candidates/Registrations of Odoo. If a record matches,
  50. it takes you to the form view of this record. If no record matchs, it
  51. opens a wizard which proposes to create a new Partner with the presented
  52. phone number as *Phone* or *Mobile* number or update an existing Partner.
  53. It is possible to get a pop-up of the record corresponding to the calling
  54. party without any action from the user via the module *base_phone_popup*.
  55. A detailed documentation for this module is available on the Akretion Web site:
  56. http://www.akretion.com/products-and-services/openerp-asterisk-voip-connector
  57. """,
  58. 'author': "Akretion,Odoo Community Association (OCA)",
  59. 'website': 'http://www.akretion.com/',
  60. 'depends': ['base_phone'],
  61. 'external_dependencies': {'python': ['Asterisk']},
  62. 'data': [
  63. 'views/asterisk_server.xml',
  64. 'views/res_users.xml',
  65. 'security/ir.model.access.csv',
  66. 'web_asterisk_click2dial.xml',
  67. ],
  68. 'demo': ['demo/asterisk_click2dial_demo.xml'],
  69. 'qweb': ['static/src/xml/*.xml'],
  70. 'css': ['static/src/css/*.css'],
  71. 'application': True,
  72. 'installable': True,
  73. }