]> 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)
commit7e694417ad6ff7016b29d113f8ab92334a57313d
tree66cd6d744fd0f526775447adb797f0a5facb4e02
parentaa9d6fb9e37a6f6117230a7da25e33207d53f526
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