Google Contacts
Google Contacts
Has anyone looked at using the Google Contacts API in a dialplan at all? This seems like a good way to compliment CNAME lookup for inbound calls, especially if you're an android user with most of your contacts stored on Google.
Re: Google Contacts
I have actually done a tiny bit of work with the Google Contacts API. Is your main use likely to be to lookup a contact name based on an incoming caller's caller ID? I think I actually have the code for that somewhere.
Re: Google Contacts
I would be quite interested in that.
-
- Posts: 16
- Joined: Sun Mar 06, 2011 11:26 pm
Re: Google Contacts
Me too!zaggazow wrote:I would be quite interested in that.
Re: Google Contacts
I did check the Google API a while ago. The problem is there is no method to lookup a contact either based on a name or a phone number. So that would mean sipsorcery would somehow have to cache all the contacts and periodically check whether there were any changes, very clunky.
Re: Google Contacts
Hey all, any update on this? I'd be very interested if my dial plan could automatically query my Google Contacts for a number and return a name instead of hard-coding names/numbers like I do now.
@Aaron, did you investigate API v3? It apparently supports full text query of contact data fields. https://developers.google.com/google-ap ... Parameters
Sadly I wouldn't know where to begin with this, so thanks in advance for at least taking another look.
@Aaron, did you investigate API v3? It apparently supports full text query of contact data fields. https://developers.google.com/google-ap ... Parameters
Sadly I wouldn't know where to begin with this, so thanks in advance for at least taking another look.
Re: Google Contacts
You are right there has been a new option added between the v2 and v3 versions of Google's contact API that now looks like it could allow some kind of search based on the incoming caller ID to find a contact. I'll add this feature onto the list and take a look at it as soon as I can. I've already got 3 or 4 other features to get to ahead of this though so it could be a few weeks.
Re: Google Contacts
A rudimentary Google Contact lookup function has now been added to the SIPSorcery dialplan. See http://www.sipsorcery.com/mainsite/Help ... leContacts.
Re: Google Contacts
Awesome! Nice work Aaron. I will try to test this soon and I'll leave feedback here.
Re: Google Contacts
Tested, worked like a charm. Great feature, thanks Aaron!