<html><head></head><body><div
style="font-family: Verdana;font-size: 12.0px;"><div>I am
afraid i do not know how to write that.
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding:
10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word;
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b>
Thursday, June 11, 2015 at 2:05 PM<br/>
<b>From:</b> "A J Stiles"
<asterisk_list@earthshod.co.uk><br/>
<b>To:</b> "Asterisk Users Mailing List - Non-Commercial
Discussion" <asterisk-users@lists.digium.com><br/>
<b>Subject:</b> Re: [asterisk-users] asterisk & google
contacts</div>
<div name="quoted-content">On Thursday 11 Jun 2015, tux john
wrote:<br/>> Hello everyone. i am running an asterisk server and i would like to
have<br/>
> the contacts from google. so every inbound call with fetch the caller
ID<br/>
> from google contacts and present it to my screen.<br/>
<br/>
This is really three problems, as follows:<br/>
<br/>
(1) Accessing the Google Contacts API to retrieve someone's details based
on<br/>
their phone number.<br/>
(2) Passing the incoming caller's number to an AGI script.<br/>
(3) Displaying the details retrieved from Google on your screen.<br/>
<br/>
<br/>
Presuming you already know how to write a program to look up a Google<br/>
contact's details from their phone number, you just need to turn that into
an<br/>
AGI script. Then, in your dialplan, pass the incoming number to that
script.<br/>
<br/>
If you want Asterisk itself to have anything to do with the Google data,
you<br/>
will have to return them by setting channel variables within the script.
Or<br/>
if you are going to use some external means to pass the data to the user,
then<br/>
you can have your script fork itself, detach and return straight
away.<br/>
<br/>
<br/>
--<br/>
AJS<br/>
<br/>
Note: Originating address only accepts e-mail from list! If replying
off-<br/>
list, change address to asterisk1list at earthshod dot co dot uk .<br/>
<br/>
--<br/>
_____________________________________________________________________<br/>
-- Bandwidth and Colocation Provided by <a
href="http://www.api-digital.com"
target="_blank">http://www.api-digital.com</a> --<br/>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br/>
<a href="http://www.asterisk.org/hello"
target="_blank">http://www.asterisk.org/hello</a><br/>
<br/>
asterisk-users mailing list<br/>
To UNSUBSCRIBE or update options visit:<br/>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div>
</div>
</div>
</div></div></body></html>