mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 19:20:35 +00:00
Return error when no rows are deleted for AMI DBDelTree
(closes issue AST-654) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@340224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -36,6 +36,10 @@ Configuration Files:
|
|||||||
- dnsmgr.conf
|
- dnsmgr.conf
|
||||||
- dsp.conf
|
- dsp.conf
|
||||||
|
|
||||||
|
AMI:
|
||||||
|
- DBDelTree now correctly returns an error when 0 rows are deleted just as
|
||||||
|
the DBDel action does.
|
||||||
|
|
||||||
SIP
|
SIP
|
||||||
===
|
===
|
||||||
- A new option "tonezone" for setting default tonezone for the channel driver
|
- A new option "tonezone" for setting default tonezone for the channel driver
|
||||||
|
@@ -840,7 +840,7 @@ static int manager_dbdeltree(struct mansession *s, const struct message *m)
|
|||||||
else
|
else
|
||||||
res = ast_db_deltree(family, NULL);
|
res = ast_db_deltree(family, NULL);
|
||||||
|
|
||||||
if (res < 0)
|
if (res <= 0)
|
||||||
astman_send_error(s, m, "Database entry not found");
|
astman_send_error(s, m, "Database entry not found");
|
||||||
else
|
else
|
||||||
astman_send_ack(s, m, "Key tree deleted successfully");
|
astman_send_ack(s, m, "Key tree deleted successfully");
|
||||||
|
Reference in New Issue
Block a user