]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
config file
authorRupa Schomaker <rupa@rupa.com>
Sat, 11 Apr 2009 03:14:17 +0000 (03:14 +0000)
committerRupa Schomaker <rupa@rupa.com>
Sat, 11 Apr 2009 03:14:17 +0000 (03:14 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12994 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/autoload_configs/cidlookup.conf.xml [new file with mode: 0644]

diff --git a/conf/autoload_configs/cidlookup.conf.xml b/conf/autoload_configs/cidlookup.conf.xml
new file mode 100644 (file)
index 0000000..eb8fdc2
--- /dev/null
@@ -0,0 +1,15 @@
+<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="
+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
+    "/>
+  </settings>
+</configuration>