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.

17 lines
570 B

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