This method will allow for two different CID lookups..
1) CIDNAME asterisk DB entry
2) via Anywho.com
It requires patching the file:
/var/www/html/admin/did.php
Look for:
if (#answer == "1") {
$addarray[] = array('ext-
did',$account,$i++,'Answer','','','0');
$addarray[] = array('ext-
did',$account,$i++,'Wait','$wait','','0');
Change to:
if (#answer == "1") {
$addarray[] = array('ext-
did',$account,$i++,'LookupCIDName','','','0');
$addarray[] = array('ext-
did',$account,$i++,'AGI,calleridnamelookup.agi','','',
'0');
$addarray[] = array('ext-
did',$account,$i++,'Answer','','','0');
$addarray[] = array('ext-
did',$account,$i++,'Wait','$wait','','0');
Create the directory:
/var/spool/asterisk/calleridlookups
Copy:
/usr/src/asterisk-perl-
0.08/examples/calleridnamelookup.agi
to:
/var/lib.asterisk/agi-bin
I haven't figured out how to get this working from
the FXO side though.... It works for DID routing.