<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:'Segoe UI WPC', 'Segoe UI', Tahoma, 'Microsoft Sans Serif', Verdana, sans-serif;font-size:11pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}--></style>
</head>
<body>
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Take a look at the smartCID script available from <a href="http://www.telium.ca/">
www.telium.ca</a><br>
</p>
<p><br>
</p>
<p>It does a web based CID lookup on incoming calls, you can at least use that as a starting point for development...<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div style="color: #282828;">
<hr tabindex="-1" style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size: 11pt;"><b>From:</b> asterisk-users-bounces@lists.digium.com <asterisk-users-bounces@lists.digium.com> on behalf of tux john <atux@null.net><br>
<b>Sent:</b> Thursday, June 11, 2015 9:32 AM<br>
<b>To:</b> Asterisk Users List<br>
<b>Cc:</b> Asterisk Users List<br>
<b>Subject:</b> Re: [asterisk-users] asterisk & google contacts</font>
<div> </div>
</div>
<div>
<div style="font-family: verdana; font-size: 12px;">
<div>I am afraid i do not know how to write that.
<div>
<div name="quote" style="margin: 10px 5px 5px 10px; padding: 10px 0px 10px 10px; border-left-width: 2px; border-left-style: solid; border-left-color: #c3d9e5; word-wrap: break-word;">
<div style="margin: 0px 0px 10px;"><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>
</div>
</div>
</div>
</body>
</html>