Google Contacts

Catalog of dial plans
bobpaul
Posts: 3
Joined: Thu Feb 16, 2012 4:17 am

Google Contacts

Post by bobpaul » Sun Feb 19, 2012 7:41 am

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.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Google Contacts

Post by Aaron » Wed Feb 22, 2012 10:18 am

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.

zaggazow
Posts: 1
Joined: Sat Jan 28, 2012 8:17 pm

Re: Google Contacts

Post by zaggazow » Thu Mar 01, 2012 3:09 am

I would be quite interested in that.

danielbliss
Posts: 16
Joined: Sun Mar 06, 2011 11:26 pm

Re: Google Contacts

Post by danielbliss » Thu Apr 12, 2012 12:18 am

zaggazow wrote:I would be quite interested in that.
Me too!

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Google Contacts

Post by Aaron » Thu Apr 12, 2012 10:51 am

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.

bo33b
Posts: 4
Joined: Wed Sep 26, 2012 11:41 pm

Re: Google Contacts

Post by bo33b » Wed Sep 26, 2012 11:50 pm

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
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Google Contacts

Post by Aaron » Thu Sep 27, 2012 11:07 am

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.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Google Contacts

Post by Aaron » Sun Oct 28, 2012 10:13 am

A rudimentary Google Contact lookup function has now been added to the SIPSorcery dialplan. See http://www.sipsorcery.com/mainsite/Help ... leContacts.

bo33b
Posts: 4
Joined: Wed Sep 26, 2012 11:41 pm

Re: Google Contacts

Post by bo33b » Sun Oct 28, 2012 1:27 pm

Awesome! Nice work Aaron. I will try to test this soon and I'll leave feedback here.

MikeTelis
Posts: 1582
Joined: Wed Jul 30, 2008 6:48 am

Re: Google Contacts

Post by MikeTelis » Mon Oct 29, 2012 3:16 am

Tested, worked like a charm. Great feature, thanks Aaron!

Post Reply