Hitting tab without typing any part of a channel name resulted in no results.
This now results in getting a full list of active channels, just as it did
in previous versions of Asterisk.
Review: https://reviewboard.asterisk.org/r/818/
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@281529
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
return NULL;
}
- if (!(iter = ast_channel_iterator_by_name_new(word, strlen(word)))) {
+ if (ast_strlen_zero(word)) {
+ iter = ast_channel_iterator_all_new();
+ } else {
+ iter = ast_channel_iterator_by_name_new(word, strlen(word));
+ }
+
+ if (!iter) {
return NULL;
}