Browse Source

FIX old/new API call

pull/34/head
Alexis de Lattre 10 years ago
parent
commit
785f6f2a01
  1. 3
      asterisk_click2dial/asterisk_click2dial.py

3
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)

Loading…
Cancel
Save