add option 'a' to chanisavail.
authorMichiel van Baak <michiel@vanbaak.info>
Fri, 23 May 2008 17:12:04 +0000 (17:12 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Fri, 23 May 2008 17:12:04 +0000 (17:12 +0000)
commit8f45823ddafdbafe2a87250276d67959f0631a82
treedc36a7772bf686519680cac82b775d5f7f288f2b
parent41ad55749dddd198df7757af9e0f8a15955bc526
add option 'a' to chanisavail.
If you give chanisavail a list of channels, it will only
return the first available channel.
When this option is set, it will return all the available
channels from the given list.

(closes issue #12248)
Reported by: dagmoller
Patches:
      app_chanisavail-snv.patch-v2.txt uploaded by dagmoller (license 436)
   - major changes by me because russellb pointed out some buffer overflows
     and codeguideline issues.
 Converted it all to the ast_str_* api
Tested by: dagmoller, mvanbaak

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@118101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
apps/app_chanisavail.c