Wednesday, January 16, 2008

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

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.


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

http://lists.digium.com/mailman/listinfo/asterisk-users

No comments: