2
0

cidlookup.conf.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <configuration name="cidlookup.conf" description="cidlookup Configuration">
  2. <settings>
  3. <!-- comment out url to not setup a url based lookup -->
  4. <param name="url" value="http://query.voipcnam.com/query.php?api_key=MYAPIKEY&amp;number=${caller_id_number}"/>
  5. <!-- comment out whitepages-apikey to not use whitepages.com, you must
  6. get an API key from http://developer.whitepages.com/ -->
  7. <param name="whitepages-apikey" value="MYAPIKEY"/>
  8. <!-- set to false to not cache (in memcache) results from the url query -->
  9. <param name="cache" value="true"/>
  10. <!-- expire is in seconds -->
  11. <param name="cache-expire" value="86400"/>
  12. <param name="odbc-dsn" value="phone:phone:phone"/>
  13. <!-- comment out sql to not setup a database (directory) lookup -->
  14. <param name="sql" value="
  15. SELECT name||' ('||type||')' AS name
  16. FROM phonebook p JOIN numbers n ON p.id = n.phonebook_id
  17. WHERE n.number='${caller_id_number}'
  18. LIMIT 1
  19. "/>
  20. <!-- comment out citystate-sql to not setup a database (city/state)
  21. lookup -->
  22. <param name="citystate-sql" value="
  23. SELECT ratecenter||' '||state as name
  24. FROM npa_nxx_company_ocn
  25. WHERE npa = ${caller_id_number:1:3} AND nxx = ${caller_id_number:4:3}
  26. LIMIT 1
  27. "/>
  28. </settings>
  29. </configuration>