I have a simple call forwarding setup using version 1.4.17. When turning off forwarding, asterisk says it doesn’t know about DB_DELETE, when I use DBdel, it works fine. Yet the CLI shows the DB_DELETE function exists.
=== extensions.conf ===
exten => _*72X.,1,Set(DB(callfwd/${CALLERID(num)})=${EXTEN:3})
;exten => *73,1,DBdel(callfwd/${CALLERID(num)}) ; this works
exten => *73,1,DB_DELETE(callfwd/${CALLERID(num)}) ; this doesn’t
[2008-09-26 19:33:00] WARNING[1528] pbx.c: No application ‘DB_DELETE’ for extension (from-cust, *73, 1)
[2008-09-26 19:33:00] VERBOSE[1528] logger.c: == Spawn extension (from-cust, *73, 1) exited non-zero on ‘SIP/2009-b69dbf88’
=== CLI ===
ast1*CLI> core show version
Asterisk 1.4.17 built by root @ ast1.myhost.com on a i686 running Linux on 2008-07-09 21:47:00 UTC
ast1*CLI> core show functions like DB
Matching Custom Functions:
DB DB(/) Read from or write to the Asterisk database
DB_DELETE DB_DELETE(/) Return a value from the database and delete it
DB_EXISTS DB_EXISTS(/) Check to see if a key exists in the Asterisk database
3 matching custom functions installed.