Hi,<br><br>I'm trying to figure out how it works without a deadlock...<br><br>The zt_fixup function do a mutex_lock using p->lock handler. (ast_mutex_lock(&p->lock);)<br><br>Within the mutex block, the zt_indicate function can be called:
<br><br> if (newchan->_state == AST_STATE_RINGING) <br> zt_indicate(newchan, AST_CONTROL_RINGING);<br><br>But, within zt_indicate function, the ast_mutex_lock(&p->lock); is called again.<br><br>Is this correct?
<br><br><br>Thanks in advance<br><br>Paulo<br><br><br><br>