[asterisk-users] Can DB() use SQLite instead of BerkeleyDB?

Vincent vincent.delporte at bigfoot.com
Wed Jan 16 10:02:12 CST 2008


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.




More information about the asterisk-users mailing list