]> 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:37 +0000 (09:19 -0500)
commit0aac38c0acb7ce274c77ef1c00265718729e83ac
treef2b506bc108df35860c2b253324808766fa7deea
parentd9001300217b28b7e463df6664bfaeea0fe3a765
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