From 785f6f2a01bb005fb09af53fde7184106c0a0f42 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 25 Mar 2015 23:50:33 +0100 Subject: [PATCH] FIX old/new API call --- asterisk_click2dial/asterisk_click2dial.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asterisk_click2dial/asterisk_click2dial.py b/asterisk_click2dial/asterisk_click2dial.py index 5e45fff..0babd4d 100644 --- a/asterisk_click2dial/asterisk_click2dial.py +++ b/asterisk_click2dial/asterisk_click2dial.py @@ -404,7 +404,8 @@ class phone_common(orm.AbstractModel): user, ast_server, ast_manager = \ self.pool['asterisk.server']._connect_to_asterisk( cr, uid, context=context) - ast_number = self.convert_to_dial_number(erp_number) + ast_number = self.convert_to_dial_number( + cr, uid, erp_number, context=context) # Add 'out prefix' if ast_server.out_prefix: _logger.debug('Out prefix = %s' % ast_server.out_prefix)