Hi,<br><br>I adopt a code recently of a channel driver. I found inside hangup callback a call to sleep(1). Is it the correct way to wait a while inside the hangup callback since ast_safe_sleep returns immediately because the hangup flag is already set?
<br><br>After all, there is no need to wait 1 second there so I changed to a while that waits a flag to be set and while is inside the loop I call the usleep function waiting 50ms each interaction. <br><br>Thanks in advance
<br><br>Paulo<br clear="all"><br><br>