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.

16 lines
546 B

  1. # -*- coding: utf-8 -*-
  2. # © 2014-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
  3. # © 2015-2016 Juris Malinens (port to v9)
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. from openerp import http
  6. class AsteriskClick2dialController(http.Controller):
  7. @http.route(
  8. '/asterisk_click2dial/get_record_from_my_channel/',
  9. type='json', auth='public')
  10. def get_record_from_my_channel(self, **kw):
  11. res = http.request.env['asterisk.server'].get_record_from_my_channel()
  12. return res