]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ari: Ignore invisible bridges when listing bridges.
authorJoshua C. Colp <jcolp@sangoma.com>
Thu, 23 Sep 2021 14:13:17 +0000 (11:13 -0300)
committerJoshua Colp <jcolp@sangoma.com>
Thu, 23 Sep 2021 14:19:28 +0000 (09:19 -0500)
commit35a94ec708a40a6ceeaf43a9c18d563bd748cacd
treec5a18c87e39004ba25748d221ef6409a61a40c4e
parent13ec11759550c8b9f8c3f8b0cd4230dbd9a762a9
ari: Ignore invisible bridges when listing bridges.

When listing bridges we go through the ones present in
ARI, get their snapshot, turn it into JSON, and add it
to the payload we ultimately return.

An invisible "dial bridge" exists within ARI that would
also try to be added to this payload if the channel
"create" and "dial" routes were used. This would ultimately
fail due to invisible bridges having no snapshot
resulting in the listing of bridges failing.

This change makes it so that the listing of bridges
ignores invisible ones.

ASTERISK-29668

Change-Id: I14fa4b589b4657d1c2a5226b0f527f45a0cd370a
res/ari/resource_bridges.c