]> git.ipfire.org Git - thirdparty/asterisk.git/commit
bridge_channel: don't set cause code on channel during bridge delete if already set
authorMike Bradeen <mbradeen@sangoma.com>
Tue, 18 Feb 2025 22:17:07 +0000 (15:17 -0700)
committerMike Bradeen <mbradeen@sangoma.com>
Wed, 19 Feb 2025 16:46:40 +0000 (16:46 +0000)
commit4a563b6b8d0357202762610642e827db7c21a282
tree2822065d8be75c3961a5890e05b31526fcb3b1e6
parenta935133eebd58d7725c3519c87c9f46d1e9d6dec
bridge_channel: don't set cause code on channel during bridge delete if already set

Due to a potential race condition via ARI when hanging up a channel hangup with cause
while also deleting a bridge containing that channel, the bridge delete can over-write
the hangup cause code resulting in Normal Call Clearing instead of the set value.

With this change, bridge deletion will only set the hangup code if it hasn't been
previously set.

Resolves: #1124
main/bridge_channel.c