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.

98 lines
4.2 KiB

  1. # -*- coding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # FreeSWITCH Click2dial module for OpenERP
  5. # Copyright (C) 2010-2014 Alexis de Lattre <alexis@via.ecp.fr>
  6. #
  7. # This program is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU Affero General Public License as
  9. # published by the Free Software Foundation, either version 3 of the
  10. # License, or (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Affero General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Affero General Public License
  18. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. #
  20. ##############################################################################
  21. {
  22. 'name': 'FreeSWITCH Click2dial',
  23. 'version': '0.4',
  24. 'category': 'Phone',
  25. 'license': 'AGPL-3',
  26. 'summary': 'FreeSWITCH-OpenERP connector',
  27. 'description': """
  28. FreeSWITCH-OpenERP connector
  29. ==========================
  30. The technical name of this module is *freeswitch_click2dial*, but this module
  31. implements much more than a simple *click2dial* ! This module adds 3
  32. functionalities:
  33. 1) It adds a *Dial* button in the partner form view so that users can directly
  34. dial a phone number through FreeSWITCH. This feature is usually known as
  35. *click2dial*. Here is how it works :
  36. * In OpenERP, the user clicks on the *Dial* button next to a phone number
  37. field in the partner view.
  38. * OpenERP connects to the FreeSWITCH Event Socket and FreeSWITCH makes the
  39. user's phone ring.
  40. * The user answers his own phone (if he doesn't, the process stops here).
  41. * FreeSWITCH dials the phone number found in OpenERP in place of the user.
  42. * If the remote party answers, the user can talk to his correspondent.
  43. 2) It adds the ability to show the name of the calling party on the screen of
  44. your IP phone on incoming phone calls if the presented phone number is
  45. present in the partner/leads/employees/... of OpenERP. To understand how to
  46. use this, please see get_caller_name.py, which should be installed per the
  47. instructions in the script on the OpenERP/Odoo server. This works for
  48. incoming and outgoing calls, per instructions in the script.
  49. 3) It adds a phone icon (*Open Caller*) in the top menu bar
  50. (next to the Preferences) to get the partner/lead/candidate/registrations
  51. corresponding to the calling party in one click. Here is how it works :
  52. * When the user clicks on the phone icon, OpenERP sends a query to the
  53. FreeSWITCH Manager Interface to get a list of the current phone calls
  54. * If it finds a phone call involving the user's phone, it gets the phone
  55. number of the calling party
  56. * It searches the phone number of the calling party in the
  57. Partners/Leads/Candidates/Registrations of OpenERP. If a record matches,
  58. it takes you to the form view of this record. If no record matchs, it
  59. opens a wizard which proposes to create a new Partner with the presented
  60. phone number as *Phone* or *Mobile* number or update an existing Partner.
  61. It is possible to get a pop-up of the record corresponding to the calling
  62. party without any action from the user via the module *base_phone_popup*.
  63. A detailed documentation for this module is available on the Akretion Web site:
  64. http://www.akretion.com/products-and-services/openerp-freeswitch-voip-connector
  65. """,
  66. 'author': "Trever L. Adams,Akretion,Odoo Community Association (OCA)",
  67. 'website': 'https://github.com/treveradams/connector-telephony',
  68. 'depends': ['base_phone'],
  69. 'external_dependencies': {'python': ['ESL']},
  70. 'data': [
  71. 'freeswitch_server_view.xml',
  72. 'res_users_view.xml',
  73. 'security/ir.model.access.csv',
  74. 'web_freeswitch_click2dial.xml',
  75. ],
  76. 'demo': ['freeswitch_click2dial_demo.xml'],
  77. 'qweb': ['static/src/xml/*.xml'],
  78. 'css': ['static/src/css/*.css'],
  79. 'application': True,
  80. 'installable': True,
  81. 'active': False,
  82. }