[Asterisk-Users] CallerID name lookup AGI script

C F shmaltz at gmail.com
Sun May 8 09:50:49 MST 2005


On 5/8/05, Jay Milk <jay at skimmilk.net> wrote:
> Mine does business lookups properly, and also uses a mySQL database to
> cache results (and allows you to store your own results):
> 
> http://www.muware.com/asterisk/
> 
> And yes, it does both google and 411.com, and falls back to telcodata.us
> to get CO information if the other two come back empty.  Since it's
> already on there, it stores the address in the DB as well, if google or
> 411 return it.
> 

A not so nice way of looking up the name to a ${CALLERIDNUM}. Have an
asterisk box connected to a pots line, since your pots provider will
always do a CNAM lookup for you, you could take the incoming
${CALLERIDNUM} and set it as the outgoing CallerIDNUM and call the
pots line, your local telco will attach the name to that number.
Capture it in asterisk, store it in a database, and the lookup didn't
even cost you a cent, since it was never answered. However it takes
around 4 seconds for this to complete on an incoming call this means
around 2 extra rings. Since I'm assuming that the incoming is thru
VoIP or PRI, and you usualy get the setup of the call before the first
ring on either of the above technologies, it should'nt be too big of a
problem.



More information about the asterisk-users mailing list