[asterisk-users] DB_DELETE

Richard Mudgett rmudgett at digium.com
Sat Aug 9 18:04:12 CDT 2014


On Sat, Aug 9, 2014 at 5:08 PM, Joseph Towery <techyjt at bellsouth.net> wrote:

> Hello,
>
> I have Asterisk version: Asterisk SVN-branch-11-r420435
>
> I have the following code:
>
> exten => 303,1,NoOp(Dialing ${EXTEN})
>         same => n,NoOp(DBKey = ${DBKey})
>         same => n,DB_DELETE(office/${DBKey})
>         same => n,Playback(auth-thankyou)
>         same => n,Hangup()
>
> And I get the following error:
>
> [2014-08-09 18:00:30] WARNING[4338][C-00000067]: pbx.c:4869
> pbx_extension_helper: No application 'DB_DELETE' for extension (LocalSets,
> 303, 3)
>   == Spawn extension (LocalSets, 303, 3) exited non-zero on
> 'SIP/0015652CABE8_1-0000006c'
>
> I checked func_db.c and the code is in place for DB_DELETE.
>

DB_DELETE is a function not a dialplan application.

Use:
same => n,Set(DB_DELETE(office/${DBKey})=)
or
same => n,Set(DELETED_VALUE=${DB_DELETE(office/${DBKey})})

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140809/870cef00/attachment.html>


More information about the asterisk-users mailing list