mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 22:30:28 +00:00
func_odbc.conf.sample: Add example lookup
Change-Id: Ia05aab1f579597963d2ea23920d2210cfcb97c84
This commit is contained in:
@@ -91,16 +91,16 @@
|
|||||||
dsn=mysql1
|
dsn=mysql1
|
||||||
readsql=${ARG1}
|
readsql=${ARG1}
|
||||||
|
|
||||||
; ODBC_ANTIGF - A blacklist.
|
; ODBC_ANTISOLICIT - A blacklist for known solicitors.
|
||||||
[ANTIGF]
|
[ANTISOLICIT]
|
||||||
dsn=mysql1,mysql2 ; Use mysql1 as the primary handle, but fall back to mysql2
|
dsn=mysql1,mysql2 ; Use mysql1 as the primary handle, but fall back to mysql2
|
||||||
; if mysql1 is down. Supports up to 5 comma-separated
|
; if mysql1 is down. Supports up to 5 comma-separated
|
||||||
; DSNs. "dsn" may also be specified as "readhandle" and
|
; DSNs. "dsn" may also be specified as "readhandle" and
|
||||||
; "writehandle", if it is important to separate reads and
|
; "writehandle", if it is important to separate reads and
|
||||||
; writes to different databases.
|
; writes to different databases.
|
||||||
readsql=SELECT COUNT(*) FROM exgirlfriends WHERE callerid='${SQL_ESC(${ARG1})}'
|
readsql=SELECT COUNT(*) FROM known_solicitors WHERE callerid='${SQL_ESC(${ARG1})}'
|
||||||
syntax=<callerid>
|
syntax=<callerid>
|
||||||
synopsis=Check if a specified callerid is contained in the ex-gf database
|
synopsis=Check if a specified callerid is contained in the known solicitors database
|
||||||
|
|
||||||
; ODBC_PRESENCE - Retrieve and update presence
|
; ODBC_PRESENCE - Retrieve and update presence
|
||||||
[PRESENCE]
|
[PRESENCE]
|
||||||
|
|||||||
Reference in New Issue
Block a user