WARNING : if you upgrade your asterisk_click2dial module to this version, you should also update the script "get_cid_name.py" on your Asterisk server to this version.
The imports now use the new openerp paths.
Convert self.pool.get('obj') to self.pool['obj'] so that it crashes exactly where it should.
Add a field 'resource' on res.users, which is used in "SIP/resource", instead of "SIP/internal_number", which was not correct. YOU NEED TO UPDATE YOUR DATA !
Thanks to Ludovic Gasc for pointing this lib to me during PyconFR 2012 in Paris !
Fix a bug with Open Calling Partner when CallerID has non-ASCII chars.
Move all code of wizard to wizard directory.
IMPORTANT : when you upgrade to this revision, run the wizard "Reformat all phone numbers" from Settings > Configuration > Asterisk.
- add support for SCCP phones
- adds dial_suffix to allow some tweaking for SCCP phones
- move menu entry of asterisk servers to Settings >Configuration > Asterisk servers
- strip (0) from phone number in all scenarios
Added by me : re-org of res.users form view, to separate standard parameters from advanced/optional ones.
- when you do a click2dial, it now triggers a wizard that proposes to create a CRM phone call (instead of directly creating the CRM phone call)
- Add option on res_users for users who don't want to trigger the wizard when they do a click2dial
- Add FR translation
- update module description and module category
asterisk_click2dial :
- update module category
New design of the pop-up "open calling partner" when the calling number is not found
When calling number is not found, now also proposes to update an existing contact
Update French translation
Update module description
- now parses answers received from Asterisk and display errors to the user
- now properly encodes the requests sent to Asterisk in ASCII (AMI doesn't support other charsets unfortunately)
- required fields are now required=True
- Single constraint function for all asterisk.server fields
- Fields that shouldn't have non-ascii caracters are not validated if they have non-ASCII caracters (including CallerID)
- clean-up error message code
- if no Asterisk server is defined for a user, it takes the first Asterisk serve
r defined
- methods now always return something
- we now handle the fact that phone numbers may contain spaces or special chars such in OpenERP, which is often the case in real life
- check input number
Added "active" field on asterisk.server object.
In order to access all the Asterisk servers, included the desactivated ones,
I added a view dedicated to the object asterisk.server, which is accessible
under Administration > Configuration.
- option to allow the use of phone numbers in National format,
as discussed with Albert. This option is on the definition of the server.
-> required a large change of the reformat number process
- added exact link to documentation in module description
- some clean-up