Displaying 1 result from an estimated 1 matches for "googlename".
2005 Apr 09
3
CallerID name lookup AGI script
...eaner if I used the Google API rather than screen
scraping with curl/perl. Please feel free to take a shot at making any of
those modifications.
Here's a snippet from my extensions.conf where it gets called:
exten => s,1,AGI(callerid.agi|${CALLERIDNUM})
exten => s,2,SetCallerId,"${googlename} <${CALLERIDNUM}>"
exten => s,3,Dial(${PHONES},30,r)
exten => s,4,Answer
exten => s,5,Wait(2)
exten => s,6,Voicemail(u3001)
exten => s,7,Hangup
And here's the script:
#!/usr/bin/perl
use Asterisk::AGI;
$AGI = new Asterisk::AGI;
$number = $ARGV[0];
if ($number =~...