]> 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:44 +0000 (19:11 -0600)
commit62a8750d2dbe62123bd326e1dc5dbaa8812a2e5e
tree5dbea1bc7d23b5a9bb81905a0b2531f8fc7787d2
parente5446d7ffcdee34e106524e9b6647d6ba1e0e8ca
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]