SCCP segfault when local and remote end hangup call at the same time
Given I have an SCCP phone
Given this phone is in communication with someone else
When the SCCP phone hangup at the same time as the other phone
Then asterisk might segfault
There is a race condition between the "pbx_thread" of the call and the "thread_session" of the SCCP phone.
To easily reproduce this problem, add a "sleep(1)" in the "do_hangup" function, just after the "if (subchan->channel)" condition.