[Asterisk-Dev] Signal timing can bring down Asterisk

Armin Schindler armin at melware.de
Tue Aug 16 05:20:26 MST 2005


On Tue, 16 Aug 2005, Kristian Nielsen wrote:
...
> The two threads may race for the HANGUP event, but that only means that
> you must be prepared to handle multiple hangup events (at least one from
> each end) simultaneously. Your CAPI thread must NOT call ast_hangup(),

What is the problem by calling ast_hangup()? Many channel drivers do call 
ast_hangup() in their own (additional) threads when an event like 
hangup occurs.
If ast_hangup() is wrong, how should the event of a hangup shall be signaled 
to the pbx ?

Armin




More information about the asterisk-dev mailing list