{"action":"opened","issue":{"url":"https://api.github.com/repos/OCA/connector-telephony/issues/93","repository_url":"https://api.github.com/repos/OCA/connector-telephony","labels_url":"https://api.github.com/repos/OCA/connector-telephony/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/OCA/connector-telephony/issues/93/comments","events_url":"https://api.github.com/repos/OCA/connector-telephony/issues/93/events","html_url":"https://github.com/OCA/connector-telephony/issues/93","id":164806931,"number":93,"title":"Anonymous Calls create a error","user":{"login":"christophdb","id":7803347,"avatar_url":"https://avatars.githubusercontent.com/u/7803347?v=3","gravatar_id":"","url":"https://api.github.com/users/christophdb","html_url":"https://github.com/christophdb","followers_url":"https://api.github.com/users/christophdb/followers","following_url":"https://api.github.com/users/christophdb/following{/other_user}","gists_url":"https://api.github.com/users/christophdb/gists{/gist_id}","starred_url":"https://api.github.com/users/christophdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christophdb/subscriptions","organizations_url":"https://api.github.com/users/christophdb/orgs","repos_url":"https://api.github.com/users/christophdb/repos","events_url":"https://api.github.com/users/christophdb/events{/privacy}","received_events_url":"https://api.github.com/users/christophdb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-11T10:32:48Z","updated_at":"2016-07-11T10:32:48Z","closed_at":null,"body":"Hi everybody,\r\nthe latest tree (https://github.com/OCA/connector-telephony/tree/df392ae1af939488628a509e4de1a7ca28d58a02) leads to an error if somebody is calling anonymous. The problem is within number_not_found.py in the line:\r\nparsed_num = phonenumbers.parse(convert.get('phone'))\r\n\r\nphonenumbers can not work with something that is not a number. \r\n\r\nA quick and dirty will would be to insert a try and except:\r\n<pre>\r\ntry:\r\n    parsed_num = phonenumbers.parse(convert.get('phone'))\r\nexcept Exception, e:\r\n    number_type = 'unkown'\r\n    res['e164_number'] = ''\r\n    res['number_type'] = 'phone'\r\n    return res\r\n</pre>\r\n\r\nThis works and there is no error message, but as soon as you want to create a partner odoo shows an error that this is not a valid phonenumber.\r\n\r\nSo in my opinion, there should be a check for anonymous calls, showing just a minimal window with the content: anonymous call. Do you want to create a partner or search for a partner.\r\nBest regards\r\nChristoph\r\n"}}
{"actor":{"display_login":"christophdb"}}