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.

59 lines
2.9 KiB

  1. # -*- encoding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # Asterisk Click2dial module for OpenERP
  5. # Copyright (C) 2010 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': 'Asterisk Click2dial',
  23. 'version': '0.2',
  24. 'category': 'Generic Modules/Others',
  25. 'license': 'AGPL-3',
  26. 'description': """This module adds a 'dial' button in the partner address
  27. view so that users can directly dial a phone number through Asterisk. This feature is usually known as 'click2dial'.
  28. Here is how it works :
  29. 1) In OpenERP, the user clicks on the 'dial' button next to a phone number field in the Partner address view.
  30. 2) Asterisk makes the user's phone ring.
  31. 3) The user answers his own phone (if he doesn't, the process stops here).
  32. 4) Asterisk dials the phone number found in OpenERP in place of the user.
  33. 5) If the remote party answers, the user can talk to his correspondent.
  34. This module also adds the ability to show the name of the calling party on incoming phone calls if the presented
  35. phone number is present in the Partner addresses of OpenERP.
  36. Here is how it works :
  37. 1) On incoming phone calls, the Asterisk dialplan executes an AGI "get_cid_name_timeout.sh".
  38. 2) The "get_cid_name_timeout.sh" script calls the "get_cid_name.py" script with a short timeout.
  39. 3) The "get_cid_name.py" script will make an XML-RPC request on the OpenERP server to try to find the name
  40. of the person corresponding to the phone number presented by the calling party.
  41. 4) If it finds the name, it is add as CallerID name of the call, so as to be presented on the IP phone
  42. of the user.
  43. A detailed documentation for this module is available on the Akretion Web site : http://www.akretion.com/en/products-and-services/openerp-asterisk-voip-connector """,
  44. 'author': 'Alexis de Lattre',
  45. 'website': 'http://www.akretion.com/',
  46. 'depends': ['base'],
  47. 'init_xml': [],
  48. 'update_xml': ['asterisk_server_view.xml', 'res_users_view.xml', 'res_partner_view.xml', 'security/asterisk_server_security.xml'],
  49. 'demo_xml': ['asterisk_click2dial_demo.xml'],
  50. 'installable': True,
  51. 'active': False,
  52. }