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.

18 lines
620 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. # © 2014-2016 Trever Adams
  5. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  6. from openerp import http
  7. class FreeSWITCHClick2dialController(http.Controller):
  8. _cp_path = '/freeswitch_click2dial'
  9. @http.route(
  10. '/freeswitch_click2dial/get_record_from_my_channel/',
  11. type='json', auth='public')
  12. def get_record_from_my_channel(self, **kw):
  13. res = http.request.env['freeswitch.server'].get_record_from_my_channel()
  14. return res