2012-06-04 16:58:40 +02:00
<configuration name= "cidlookup.conf" description= "cidlookup Configuration" >
<settings >
<!-- comment out url to not setup a url based lookup -->
2016-01-09 02:15:45 +01:00
<!-- <param name="url" value="http://query.voipcnam.com/query.php?api_key=MYAPIKEY&number=${caller_id_number}"/> -->
2014-08-10 19:45:38 +02:00
2012-06-04 16:58:40 +02:00
<!-- comment out whitepages - apikey to not use whitepages.com, you must
get an API key from http://developer.whitepages.com/ -->
2016-01-16 05:11:38 +01:00
<!-- <param name="whitepages - apikey" value="MYAPIKEY"/> -->
2012-06-04 16:58:40 +02:00
<!-- set to false to not cache (in memcache) results from the url query -->
<param name= "cache" value= "true" />
<!-- expire is in seconds -->
<param name= "cache-expire" value= "86400" />
2013-09-14 22:43:51 +02:00
<param name= "odbc-dsn" value= "$${dsn_system}" />
2015-01-11 09:11:50 +01:00
<!-- <param name="odbc - dsn" value="/var/www/fusionpbx/secure/fusionpbx.db"/> -->
2012-06-04 16:58:40 +02:00
<!-- comment out sql to not setup a database (directory) lookup -->
<param name= "sql" value= "
2020-01-16 22:29:26 +01:00
SELECT trim(concat(v_contacts.contact_name_given, ' ',v_contacts.contact_name_family,' (',v_contacts.contact_organization,')')) AS name, v_contact_phones.phone_number AS number
2012-10-19 21:24:06 +02:00
FROM v_contacts, v_contact_phones
2020-01-16 22:29:26 +01:00
WHERE v_contact_phones.contact_uuid = v_contacts.contact_uuid AND v_contact_phones.phone_number = '${caller_id_number}'
2012-10-19 21:24:06 +02:00
LIMIT 1
2012-06-04 16:58:40 +02:00
"/>
2016-01-09 02:15:45 +01:00
2016-03-11 14:24:27 +01:00
<!-- comment out citystate - sql to not setup a database (city/state)
2012-06-04 16:58:40 +02:00
lookup -->
2012-10-19 21:24:06 +02:00
<!--
2012-06-04 16:58:40 +02: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
"/>
2012-10-19 21:24:06 +02:00
-->
2012-06-04 16:58:40 +02:00
</settings>
</configuration>