]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_chanisavail.c: Simplify dialplan using ChanIsAvail.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 30 Dec 2019 19:13:46 +0000 (13:13 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 7 Jan 2020 01:11:58 +0000 (19:11 -0600)
commitfe3cce816c3bc390a47ac25c868e357fccc96443
tree482acb8e4f0fb3a2ed5fc3294067420646f2cc28
parentcee68ea4f2370d4a9228941f46a925e13b42846a
app_chanisavail.c: Simplify dialplan using ChanIsAvail.

Dialplan has to be careful about passing an empty device list or empty
positions in the list.  As a result, dialplan has to check for these
conditions before using ChanIsAvail.  Simplify dialplan by making
ChanIsAvail handle these conditions gracefully.

* Made tolerate empty positions in the device list.

* Simplified the code and eliminated some unnecessary indention.

ASTERISK-28638

Change-Id: I9e4b67e2cbf26b2417c2d03485b8568e898931d3
apps/app_chanisavail.c
doc/CHANGES-staging/app_chanisavail_empty_device_list.txt [new file with mode: 0644]