|
Hi, http://track.sipfoundry.org/browse/XX-7882 says that if you have a contact in your gmail account with 2 email addresses defined as (in this order, it is important): email1 - HOME email2 - WORK when you import (either directly from your Gmail account or via an exported csv) you get: email1 as primary email email2 as alternate email which, in the originator's opinion is wrong, instead WORK mail should be the primary and HOME should be alternate. The reason this happens is that google treats the first email address as primary. In Google Data APIs Client Library (that we are using to import directly from the google account) there is a public boolean getPrimary() method for com.google.gdata.data.extensions.Email class. We replicate this behavior in our CSV importer (org.sipfoundry.sipxconfig.phonebook.GooglePhonebookCsvHeader) by matching the first email value (csv key: E-mail 1 - Value) to the primary email and the second email value (csv key: E-mail 2 - Value) to the alternate email. We can choose to treat WORK email address as primary and HOME address as alternate but then we would have another possible issue: if a contact has 2 emails marked both as HOME, we would set one of them (the first) as the alternate email. Then we would have an alternate email but with no primary, which would be strange. There is no perfect way to solve this issue, since Gmail contact and our address book entry are differently designed. Any thoughts? Regards, Cristi |
_______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev sipXecs IP PBX -- http://www.sipfoundry.org/
