2009-04-11 03:14:17 +00:00
|
|
|
<configuration name="cidlookup.conf" description="cidlookup Configuration">
|
|
|
|
<settings>
|
|
|
|
<param name="url" value="http://query.voipcnam.com/query.php?api_key=MYAPIKEY&number=${caller_id_number}"/>
|
|
|
|
<param name="cache" value="true"/>
|
|
|
|
<param name="cache-expire" value="86400"/>
|
|
|
|
|
|
|
|
<param name="odbc-dsn" value="phone:phone:phone"/>
|
|
|
|
<param name="sql" value="
|
2009-07-08 02:34:37 +00: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
|
|
|
|
"/>
|
|
|
|
<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-11 03:14:17 +00:00
|
|
|
</settings>
|
|
|
|
</configuration>
|