]> 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:39 +0000 (16:46 +0000)
commita39f3d5adb1b6918225af79eafe6e91723913c2d
tree4d28d2531c31d00fc4f0682cc8b051bf9959b8fd
parentf4d881803a7661e31beb8973da7181c6cf662d59
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