Skip to content
Snippets Groups Projects
Commit 83a94535 authored by Wenpeng Song's avatar Wenpeng Song Committed by Grzegorz Sluja
Browse files

Channel reference count correction for transfer

Crash due to a race condition between this ref correction
https://dev.iopsys.eu/voice/asterisk/-/blob/devel/channels/chan_pjsip.c#L2088-2095
and the unref under chan_voicemngr_attended_call_transfer
https://dev.iopsys.eu/voice/asterisk-chan-voicemngr/-/blob/devel/src/channels/chan_voicemngr.c?ref_type=heads#L5646-5651.
When the correction happened and finished before the unref during the transfer, which leading
the result of ref=1 after the unref, then the crash happened during hangup the channel, add an
extra correction for ref<2 could resolve this issue.
parent fff0e96b
No related branches found
No related tags found
2 merge requests!222Add "expire != 0" restriction to V001,!187Syslog addition example. Taking syslog v001 as an example, the framework of syslog addition is shown.
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment