Hello
Before I bother calling a PHP script through AGI just to read a number
and rewrite the CID name... I was wondering if Asterisk could be
configured so that DB() uses a SQL server instead of the usual
BerkeleyDB?
===========;rewrite CIDNAME if found in DB
exten =>
cid,1,Set(CALLERIDNAME=${IF($["${CALLERID(name)}"=""]?<No
CID
name>:${CALLERID(name)})})
exten =>
cid,n,Set(CALLERIDNAME=${IF($["${DB(cidname/${CALLERIDNUM})}"=""]?${CALLERIDNAME}:${DB(cidname/${CALLERIDNUM})})})
===========
Thank you.
Tilghman Lesher
2008-Jan-16 18:10 UTC
[asterisk-users] Can DB() use SQLite instead of BerkeleyDB?
On Wednesday 16 January 2008 10:02:12 Vincent wrote:> Before I bother calling a PHP script through AGI just to read a number > and rewrite the CID name... I was wondering if Asterisk could be > configured so that DB() uses a SQL server instead of the usual > BerkeleyDB?No, it cannot. You could use func_odbc to formulate your own queries, though. -- Tilghman