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.
14 lines
496 B
14 lines
496 B
# -*- coding: utf-8 -*-
|
|
# (c) 2014 Alexis de Lattre <alexis.delattre@akretion.com>
|
|
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
|
|
|
|
import openerp
|
|
|
|
|
|
class FreeSWITCHClick2dialController(openerp.addons.web.http.Controller):
|
|
_cp_path = '/freeswitch_click2dial'
|
|
|
|
@openerp.addons.web.http.jsonrequest
|
|
def get_record_from_my_channel(self, req):
|
|
FreeswitchServer = req.session.model('freeswitch.server')
|
|
return FreeswitchServer.get_record_from_my_channel()
|