2009-04-10 23:14:17 -04:00
|
|
|
<configuration name="cidlookup.conf" description="cidlookup Configuration">
|
|
|
|
<settings>
|
2009-07-07 22:38:35 -04:00
|
|
|
<!-- comment out url to not setup a url based lookup -->
|
2009-04-10 23:14:17 -04:00
|
|
|
<param name="url" value="http://query.voipcnam.com/query.php?api_key=MYAPIKEY&number=${caller_id_number}"/>
|
2009-07-07 22:38:35 -04:00
|
|
|
|
2009-09-30 13:23:01 -04:00
|
|
|
<!-- comment out whitepages-apikey to not use whitepages.com, you must
|
|
|
|
get an API key from http://developer.whitepages.com/ -->
|
|
|
|
<param name="whitepages-apikey" value="MYAPIKEY"/>
|
|
|
|
|
2009-07-07 22:38:35 -04:00
|
|
|
<!-- set to false to not cache (in memcache) results from the url query -->
|
2009-04-10 23:14:17 -04:00
|
|
|
<param name="cache" value="true"/>
|
2009-07-07 22:38:35 -04:00
|
|
|
<!-- expire is in seconds -->
|
2009-04-10 23:14:17 -04:00
|
|
|
<param name="cache-expire" value="86400"/>
|
|
|
|
|
|
|
|
<param name="odbc-dsn" value="phone:phone:phone"/>
|
2009-07-07 22:38:35 -04:00
|
|
|
|
|
|
|
<!-- comment out sql to not setup a database (directory) lookup -->
|
2009-04-10 23:14:17 -04:00
|
|
|
<param name="sql" value="
|
2009-07-07 22:34:37 -04:00
|
|
|
SELECT name||' ('||type||')' AS name
|
|
|
|
FROM phonebook p JOIN numbers n ON p.id = n.phonebook_id
|
|
|
|
WHERE n.number='${caller_id_number}'
|
|
|
|
LIMIT 1
|
|
|
|
"/>
|
2009-07-07 22:38:35 -04:00
|
|
|
<!-- comment out citystate-sql to not setup a database (city/state)
|
|
|
|
lookup -->
|
2009-07-07 22:34:37 -04:00
|
|
|
<param name="citystate-sql" value="
|
|
|
|
SELECT ratecenter||' '||state as name
|
|
|
|
FROM npa_nxx_company_ocn
|
|
|
|
WHERE npa = ${caller_id_number:1:3} AND nxx = ${caller_id_number:4:3}
|
|
|
|
LIMIT 1
|
|
|
|
"/>
|
2009-04-10 23:14:17 -04:00
|
|
|
</settings>
|
|
|
|
</configuration>
|