projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
775ffb6
)
Ensure there is a valid tone part before trying to play tones.
author
Joshua Colp
<jcolp@digium.com>
Thu, 26 Feb 2009 15:40:10 +0000
(15:40 +0000)
committer
Joshua Colp
<jcolp@digium.com>
Thu, 26 Feb 2009 15:40:10 +0000
(15:40 +0000)
(closes issue #14558)
Reported by: alecdavis
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@178764
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/indications.c
patch
|
blob
|
history
diff --git
a/main/indications.c
b/main/indications.c
index
1fe01f1
..
5b26ff2
100644
(file)
--- a/
main/indications.c
+++ b/
main/indications.c
@@
-374,6
+374,11
@@
int ast_playtones_start(struct ast_channel *chan, int vol, const char *playlst,
d.nitems++;
}
+ if (!d.nitems) {
+ ast_log(LOG_ERROR, "No valid tone parts\n");
+ return -1;
+ }
+
if (ast_activate_generator(chan, &playtones, &d)) {
ast_free(d.items);
return -1;