Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] DB_DELETE


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
techyjt at bellsouth.net
Guest





PostPosted: Sat Aug 09, 2014 5:09 pm    Post subject: [asterisk-users] DB_DELETE Reply with quote

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.


Thanks,


Joey
Back to top
rmudgett at digium.com
Guest





PostPosted: Sat Aug 09, 2014 6:04 pm    Post subject: [asterisk-users] DB_DELETE Reply with quote

On Sat, Aug 9, 2014 at 5:08 PM, Joseph Towery <techyjt@bellsouth.net (techyjt@bellsouth.net)> wrote:
Quote:
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
Back to top
techyjt at bellsouth.net
Guest





PostPosted: Sat Aug 09, 2014 6:14 pm    Post subject: [asterisk-users] DB_DELETE Reply with quote

Thanks so much. I should have figured that one out, but references online didn't show the Set command. Spent 2 hours I will never get back.



On Saturday, August 9, 2014 7:04 PM, Richard Mudgett <rmudgett@digium.com> wrote:



On Sat, Aug 9, 2014 at 5:08 PM, Joseph Towery <techyjt@bellsouth.net (techyjt@bellsouth.net)> wrote:
Quote:
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
Back to top
mjordan at digium.com
Guest





PostPosted: Sun Aug 10, 2014 4:10 pm    Post subject: [asterisk-users] DB_DELETE Reply with quote

On Sat, Aug 9, 2014 at 6:14 PM, Joseph Towery <techyjt@bellsouth.net> wrote:
Quote:
Thanks so much. I should have figured that one out, but references online
didn't show the Set command. Spent 2 hours I will never get back.


Which online references?

If it is on the Asterisk wiki, we'll try to get the documentation fixed.

--
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services